33#include "HDFFloat32.h"
34#include "HDFFloat64.h"
38#include "HDFStructure.h"
39#include "HDFSequence.h"
41#include "HDFTypeFactory.h"
42#include <libdap/debug.h>
47Byte *HDFTypeFactory::NewByte(
const string & n)
const
49 return new HDFByte(n, d_filename);
52Int16 *HDFTypeFactory::NewInt16(
const string & n)
const
54 return new HDFInt16(n, d_filename);
57UInt16 *HDFTypeFactory::NewUInt16(
const string & n)
const
59 return new HDFUInt16(n, d_filename);
62Int32 *HDFTypeFactory::NewInt32(
const string & n)
const
64 BESDEBUG(
"h4",
"Inside HDFTypeFactory::NewInt32" << endl);
65 return new HDFInt32(n, d_filename);
68UInt32 *HDFTypeFactory::NewUInt32(
const string & n)
const
70 return new HDFUInt32(n, d_filename);
73Float32 *HDFTypeFactory::NewFloat32(
const string & n)
const
75 return new HDFFloat32(n, d_filename);
78Float64 *HDFTypeFactory::NewFloat64(
const string & n)
const
80 return new HDFFloat64(n, d_filename);
83Str *HDFTypeFactory::NewStr(
const string & n)
const
85 return new HDFStr(n, d_filename);
88Url *HDFTypeFactory::NewUrl(
const string & n)
const
90 return new HDFUrl(n, d_filename);
93Array *HDFTypeFactory::NewArray(
const string & n, BaseType * v)
const
95 return new HDFArray(n, d_filename, v);
98Structure *HDFTypeFactory::NewStructure(
const string & n)
const
100 return new HDFStructure(n, d_filename);
103Sequence *HDFTypeFactory::NewSequence(
const string & n)
const
105 BESDEBUG(
"h4",
"Inside HDFTypeFactory::NewSequence" << endl);
106 return new HDFSequence(n, d_filename);
109Grid *HDFTypeFactory::NewGrid(
const string & n)
const
111 return new HDFGrid(n, d_filename);