bes
Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
DODS_Date_Time_Factory.cc
1
2
// -*- mode: c++; c-basic-offset:4 -*-
3
4
// This file is part of ff_handler a FreeForm API handler for the OPeNDAP
5
// DAP2 data server.
6
7
// Copyright (c) 2005 OPeNDAP, Inc.
8
// Author: James Gallagher <jgallagher@opendap.org>
9
//
10
// This is free software; you can redistribute it and/or modify it under the
11
// terms of the GNU Lesser General Public License as published by the Free
12
// Software Foundation; either version 2.1 of the License, or (at your
13
// option) any later version.
14
//
15
// This software is distributed in the hope that it will be useful, but
16
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18
// License for more details.
19
//
20
// You should have received a copy of the GNU Lesser General Public
21
// License along with this library; if not, write to the Free Software
22
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
//
24
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25
26
// (c) COPYRIGHT URI/MIT 1998
27
// Please read the full copyright statement in the file COPYRIGHT.
28
//
29
// Authors:
30
// jhrg,jimg James Gallagher (jgallagher@gso.uri.edu)
31
32
// Implementation of the DODS_Date_Time_Factory class
33
34
#include "config_ff.h"
35
36
static
char
rcsid[] not_used =
"$Id$"
;
37
38
#include <libdap/Error.h>
39
#include "DODS_Date_Time_Factory.h"
40
41
// Build DODS_Date_Factory and DODS_Time_Factory objects using the DAS
42
// information.
43
44
DODS_Date_Time_Factory::DODS_Date_Time_Factory
(DDS &dds) : _ddf(dds), _dtf(dds)
45
{
46
}
47
48
DODS_Date_Time
49
DODS_Date_Time_Factory::get
()
50
{
51
DODS_Date
d = _ddf.
get
();
52
DODS_Time
t = _dtf.
get
();
53
54
return
DODS_Date_Time
(d, t);
55
}
56
57
// $Log: DODS_Date_Time_Factory.cc,v $
58
// Revision 1.4 2000/10/11 19:37:55 jimg
59
// Moved the CVS log entries to the end of files.
60
// Changed the definition of the read method to match the dap library.
61
// Added exception handling.
62
// Added exceptions to the read methods.
63
//
64
// Revision 1.3 2000/08/31 22:16:53 jimg
65
// Merged with 3.1.7
66
//
67
// Revision 1.2.8.1 2000/08/03 20:18:57 jimg
68
// Removed config_dap.h and replaced it with config_ff.h (in *.cc files;
69
// neither should be included in a header file).
70
// Changed code that calculated leap year information so that it uses the
71
// functions in date_proc.c/h.
72
//
73
// Revision 1.2 1999/05/04 02:55:35 jimg
74
// Merge with no-gnu
75
//
76
// Revision 1.1.10.1 1999/05/01 04:50:20 brent
77
// converted old String.h to the new std C++ <string> code
78
//
79
// Revision 1.1 1999/01/22 20:44:35 jimg
80
// Added
81
//
DODS_Date_Time_Factory::get
DODS_Date_Time get()
Definition
DODS_Date_Time_Factory.cc:49
DODS_Date_Time_Factory::DODS_Date_Time_Factory
DODS_Date_Time_Factory(DDS &dds)
Definition
DODS_Date_Time_Factory.cc:44
DODS_Date_Time
Definition
DODS_Date_Time.h:47
DODS_Date
Definition
DODS_Date.h:108
DODS_Date::get
string get(date_format format=ymd) const
Definition
DODS_Date.cc:429
DODS_Time
Definition
DODS_Time.h:63
DODS_Time::get
string get(bool gmt=true) const
Definition
DODS_Time.cc:294
modules
freeform_handler
DODS_Date_Time_Factory.cc
Generated by
1.13.2