bes
Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
DODS_EndDecimal_Year_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
// dan Daniel Holloway (dholloway@gso.uri.edu)
32
33
// Implementation of the DODS_Decimal_Year_Factory class
34
35
#include "config_ff.h"
36
37
static
char
rcsid[]#include
"config_ff.h"
38
=
"$Id$"
;
39
40
#include <libdap/Error.h>
41
#include "DODS_EndDecimal_Year_Factory.h"
42
43
// Build DODS_EndDate_Factory and DODS_EndTime_Factory objects using the DAS
44
// information.
45
46
DODS_EndDecimal_Year_Factory::DODS_EndDecimal_Year_Factory
(DDS &dds) :
47
_ddf(dds), _dtf(dds)
48
{
49
}
50
51
DODS_Decimal_Year
52
DODS_EndDecimal_Year_Factory::get
()
53
{
54
DODS_Date
d = _ddf.
get
();
55
DODS_Time
t = _dtf.
get
();
56
57
return
DODS_Decimal_Year
(d, t);
58
}
59
60
61
DODS_Date
Definition
DODS_Date.h:108
DODS_Date::get
string get(date_format format=ymd) const
Definition
DODS_Date.cc:429
DODS_Decimal_Year
Definition
DODS_Decimal_Year.h:47
DODS_EndDecimal_Year_Factory::DODS_EndDecimal_Year_Factory
DODS_EndDecimal_Year_Factory(DDS &dds)
Definition
DODS_EndDecimal_Year_Factory.cc:46
DODS_EndDecimal_Year_Factory::get
DODS_Decimal_Year get()
Definition
DODS_EndDecimal_Year_Factory.cc:52
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_EndDecimal_Year_Factory.cc
Generated by
1.13.2