29 #include <libdap/Byte.h>
30 #include <libdap/Int16.h>
31 #include <libdap/UInt16.h>
32 #include <libdap/Int32.h>
33 #include <libdap/UInt32.h>
34 #include <libdap/Float32.h>
35 #include <libdap/Float64.h>
36 #include <libdap/Str.h>
37 #include <libdap/Url.h>
38 #include <libdap/Array.h>
39 #include <libdap/Structure.h>
40 #include <ReadSequence.h>
41 #include <libdap/Grid.h>
42 #include <libdap/debug.h>
44 #include "ReadTypeFactory.h"
47 ReadTypeFactory::NewByte(
const string &n)
const
53 ReadTypeFactory::NewInt16(
const string &n)
const
59 ReadTypeFactory::NewUInt16(
const string &n)
const
65 ReadTypeFactory::NewInt32(
const string &n)
const
67 DBG(cerr <<
"Inside ReadTypeFactory::NewInt32" << endl);
72 ReadTypeFactory::NewUInt32(
const string &n)
const
78 ReadTypeFactory::NewFloat32(
const string &n)
const
80 return new Float32(n);
84 ReadTypeFactory::NewFloat64(
const string &n)
const
86 return new Float64(n);
90 ReadTypeFactory::NewStr(
const string &n)
const
96 ReadTypeFactory::NewUrl(
const string &n)
const
102 ReadTypeFactory::NewArray(
const string &n , BaseType *v)
const
104 return new Array(n, v);
108 ReadTypeFactory::NewStructure(
const string &n)
const
110 return new Structure(n);
114 ReadTypeFactory::NewSequence(
const string &n)
const
116 DBG(cerr <<
"Inside ReadTypeFactory::NewSequence" << endl);
121 ReadTypeFactory::NewGrid(
const string &n)
const