libdap++
Updated for version 3.8.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
BaseTypeFactory.h
Go to the documentation of this file.
1
2
// -*- mode: c++; c-basic-offset:4 -*-
3
4
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
5
// Access Protocol.
6
7
// Copyright (c) 2005 OPeNDAP, Inc.
8
// Author: James Gallagher <jgallagher@opendap.org>
9
//
10
// This library is free software; you can redistribute it and/or
11
// modify it under the terms of the GNU Lesser General Public
12
// License as published by the Free Software Foundation; either
13
// version 2.1 of the License, or (at your option) any later version.
14
//
15
// This library is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18
// Lesser General Public 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
//
24
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25
26
#ifndef base_type_factory_h
27
#define base_type_factory_h
28
29
#include <string>
30
31
// Class declarations; Make sure to include the corresponding headers in the
32
// implementation file.
33
34
namespace
libdap
35
{
36
37
class
Byte;
38
class
Int16;
39
class
UInt16;
40
class
Int32;
41
class
UInt32;
42
class
Float32;
43
class
Float64;
44
class
Str;
45
class
Url;
46
class
Array;
47
class
Structure;
48
class
Sequence;
49
class
Grid;
50
class
BaseType;
51
77
class
BaseTypeFactory
78
{
79
public
:
80
BaseTypeFactory
()
81
{}
82
virtual
~BaseTypeFactory
()
83
{}
84
85
virtual
Byte
*
NewByte
(
const
string
&n =
""
)
const
;
86
virtual
Int16
*
NewInt16
(
const
string
&n =
""
)
const
;
87
virtual
UInt16
*
NewUInt16
(
const
string
&n =
""
)
const
;
88
virtual
Int32
*
NewInt32
(
const
string
&n =
""
)
const
;
89
virtual
UInt32
*
NewUInt32
(
const
string
&n =
""
)
const
;
90
virtual
Float32
*
NewFloat32
(
const
string
&n =
""
)
const
;
91
virtual
Float64
*
NewFloat64
(
const
string
&n =
""
)
const
;
92
93
virtual
Str
*
NewStr
(
const
string
&n =
""
)
const
;
94
virtual
Url
*
NewUrl
(
const
string
&n =
""
)
const
;
95
96
virtual
Array
*
NewArray
(
const
string
&n =
""
,
BaseType
*v = 0)
const
;
97
virtual
Structure
*
NewStructure
(
const
string
&n =
""
)
const
;
98
virtual
Sequence
*
NewSequence
(
const
string
&n =
""
)
const
;
99
virtual
Grid
*
NewGrid
(
const
string
&n =
""
)
const
;
100
};
101
102
}
// namespace libdap
103
104
#endif // base_type_factory_h
BaseTypeFactory.h
Generated by
1.8.3.1