OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
GDALTypes.cc
Go to the documentation of this file.
1 // This file is part of the GDAL OPeNDAP Adapter
2 
3 // Copyright (c) 2004 OPeNDAP, Inc.
4 // Author: Frank Warmerdam <warmerdam@pobox.com>
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 //
20 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
21 
22 #include "config.h"
23 
24 #include <string>
25 
26 #include <InternalErr.h>
27 
28 #include "GDALTypes.h"
29 
30 using namespace libdap;
31 
32 /************************************************************************/
33 /* ==================================================================== */
34 /* GDALByte */
35 /* ==================================================================== */
36 /************************************************************************/
37 
38 GDALByte::GDALByte(const string &n) :
39  Byte(n)
40 {
41 }
42 
43 BaseType *
45 {
46  return new GDALByte(*this);
47 }
48 
50 {
51  throw InternalErr(__FILE__, __LINE__, "Unimplemented read method called.");
52 }
53 
54 /************************************************************************/
55 /* ==================================================================== */
56 /* GDALUInt16 */
57 /* ==================================================================== */
58 /************************************************************************/
59 
60 BaseType *
62 {
63  return new GDALUInt16(*this);
64 }
65 
67 {
68  throw InternalErr(__FILE__, __LINE__, "Unimplemented read method called.");
69 }
70 
71 /************************************************************************/
72 /* ==================================================================== */
73 /* GDALInt16 */
74 /* ==================================================================== */
75 /************************************************************************/
76 
77 GDALInt16::GDALInt16(const string &n) :
78  Int16(n)
79 {
80 }
81 
82 BaseType *
84 {
85  return new GDALInt16(*this);
86 }
87 
89 {
90  throw InternalErr(__FILE__, __LINE__, "Unimplemented read method called.");
91 }
92 
93 /************************************************************************/
94 /* ==================================================================== */
95 /* GDALUInt32 */
96 /* ==================================================================== */
97 /************************************************************************/
98 
99 GDALUInt32::GDALUInt32(const string &n) :
100  UInt32(n)
101 {
102 }
103 
104 BaseType *
106 {
107  return new GDALUInt32(*this);
108 }
109 
111 {
112  throw InternalErr(__FILE__, __LINE__, "Unimplemented read method called.");
113 }
114 
115 /************************************************************************/
116 /* ==================================================================== */
117 /* GDALInt32 */
118 /* ==================================================================== */
119 /************************************************************************/
120 
121 GDALInt32::GDALInt32(const string &n) :
122  Int32(n)
123 {
124 }
125 
126 BaseType *
128 {
129  return new GDALInt32(*this);
130 }
131 
133 {
134  throw InternalErr(__FILE__, __LINE__, "Unimplemented read method called.");
135 }
136 
137 /************************************************************************/
138 /* ==================================================================== */
139 /* GDALFloat32 */
140 /* ==================================================================== */
141 /************************************************************************/
142 
143 GDALFloat32::GDALFloat32(const string &n) :
144  Float32(n)
145 {
146 }
147 
148 BaseType *
150 {
151  return new GDALFloat32(*this);
152 }
153 
155 {
156  throw InternalErr(__FILE__, __LINE__, "Unimplemented read method called.");
157 }
158 
159 /************************************************************************/
160 /* ==================================================================== */
161 /* GDALFloat64 */
162 /* ==================================================================== */
163 /************************************************************************/
164 
165 GDALFloat64::GDALFloat64(const string &n) :
166  Float64(n)
167 {
168 }
169 
170 BaseType *
172 {
173  return new GDALFloat64(*this);
174 }
175 
177 {
178  throw InternalErr(__FILE__, __LINE__, "Unimplemented read method called.");
179 }
180 
181 // $Log: GDALTypes.cc,v $
182 // Revision 1.1 2004/10/19 20:38:28 warmerda
183 // New
184 //
185 // Revision 1.1 2004/10/04 14:29:29 warmerda
186 // New
187 //
virtual BaseType * ptr_duplicate()
Definition: GDALTypes.cc:61
virtual BaseType * ptr_duplicate()
Definition: GDALTypes.cc:44
virtual bool read()
Definition: GDALTypes.cc:49
virtual BaseType * ptr_duplicate()
Definition: GDALTypes.cc:171
GDALFloat32(const string &n="")
Definition: GDALTypes.cc:143
virtual bool read()
Definition: GDALTypes.cc:66
virtual bool read()
Definition: GDALTypes.cc:154
virtual BaseType * ptr_duplicate()
Definition: GDALTypes.cc:83
static class NCMLUtil overview
virtual BaseType * ptr_duplicate()
Definition: GDALTypes.cc:149
virtual BaseType * ptr_duplicate()
Definition: GDALTypes.cc:105
virtual bool read()
Definition: GDALTypes.cc:176
GDALUInt32(const string &n="")
Definition: GDALTypes.cc:99
GDALInt32(const string &n="")
Definition: GDALTypes.cc:121
virtual BaseType * ptr_duplicate()
Definition: GDALTypes.cc:127
GDALUInt16(const string &n="")
GDALFloat64(const string &n="")
Definition: GDALTypes.cc:165
virtual bool read()
Definition: GDALTypes.cc:110
GDALInt16(const string &n="")
Definition: GDALTypes.cc:77
GDALByte(const string &n="")
Definition: GDALTypes.cc:38
virtual bool read()
Definition: GDALTypes.cc:132
virtual bool read()
Definition: GDALTypes.cc:88