bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
XDOutputFactory.h
1
2// -*- mode: c++; c-basic-offset:4 -*-
3
4// Copyright (c) 2010 OPeNDAP, Inc.
5// Author: James Gallagher <jgallagher@opendap.org>
6//
7// This is free software; you can redistribute it and/or modify it under the
8// terms of the GNU Lesser General Public License as published by the Free
9// Software Foundation; either version 2.1 of the License, or (at your
10// option) any later version.
11//
12// This is distributed in the hope that it will be useful, but WITHOUT ANY
13// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15// more details.
16//
17// You should have received a copy of the GNU Lesser General Public
18// License along with this library; if not, write to the Free Software
19// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20//
21// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
22
23#ifndef xd_output_factory_h
24#define xd_output_factory_h
25
26#include <string>
27
28#include <libdap/BaseTypeFactory.h>
29
30class XDByte;
31class XDInt16;
32class XDUInt16;
33class XDInt32;
34class XDUInt32;
35class XDFloat32;
36class XDFloat64;
37class XDStr;
38class XDUrl;
39class XDArray;
40class XDStructure;
41class XDSequence;
42class XDGrid;
43
46class XDOutputFactory : public libdap::BaseTypeFactory {
47public:
48 XDOutputFactory() {}
49 virtual ~XDOutputFactory() {}
50
51 virtual libdap::Byte *NewByte(const string &n = "") const;
52 virtual libdap::Int16 *NewInt16(const string &n = "") const;
53 virtual libdap::UInt16 *NewUInt16(const string &n = "") const;
54 virtual libdap::Int32 *NewInt32(const string &n = "") const;
55 virtual libdap::UInt32 *NewUInt32(const string &n = "") const;
56 virtual libdap::Float32 *NewFloat32(const string &n = "") const;
57 virtual libdap::Float64 *NewFloat64(const string &n = "") const;
58
59 virtual libdap::Str *NewStr(const string &n = "") const;
60 virtual libdap::Url *NewUrl(const string &n = "") const;
61
62 virtual libdap::Array *NewArray(const string &n = "", libdap::BaseType *v = 0) const;
63 virtual libdap::Structure *NewStructure(const string &n = "") const;
64 virtual libdap::Sequence *NewSequence(const string &n = "") const;
65 virtual libdap::Grid *NewGrid(const string &n = "") const;
66};
67
68#endif // xd_output_factory_h
Definition XDStr.h:39
Definition XDUrl.h:55