libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
#include <BaseTypeFactory.h>
Public Member Functions | |
BaseTypeFactory () | |
virtual Array * | NewArray (const string &n="", BaseType *v=0) const |
virtual Byte * | NewByte (const string &n="") const |
virtual Float32 * | NewFloat32 (const string &n="") const |
virtual Float64 * | NewFloat64 (const string &n="") const |
virtual Grid * | NewGrid (const string &n="") const |
virtual Int16 * | NewInt16 (const string &n="") const |
virtual Int32 * | NewInt32 (const string &n="") const |
virtual Sequence * | NewSequence (const string &n="") const |
virtual Str * | NewStr (const string &n="") const |
virtual Structure * | NewStructure (const string &n="") const |
virtual UInt16 * | NewUInt16 (const string &n="") const |
virtual UInt32 * | NewUInt32 (const string &n="") const |
virtual Url * | NewUrl (const string &n="") const |
virtual BaseType * | NewVariable (Type t, const string &name="") const |
virtual BaseTypeFactory * | ptr_duplicate () const |
virtual | ~BaseTypeFactory () |
A factory to create instances of the leaf nodes of BaseType (Byte, ... Grid). Clients of libdap++ which require special behavior for the types should subclass this factory and provide an implementation which creates instances of those specializations. Make sure to pass a reference to the new factory to DDS's constructor since by default it uses this factory.
To define and use your own factory, first make sure that you are not using the compile time constant 'DEFAULT_BASETYPE_FACTORY.' Then pass a pointer to an instance of your factory to the DDS/DataDDS constructors. When the parser is used to build a DDS from a DAP response, the factory will be used to instantiate the different variable-type classes.
.h) file and then include the type class' headers in the implementation (
.cc) file.Definition at line 79 of file BaseTypeFactory.h.
|
inline |
Definition at line 81 of file BaseTypeFactory.h.
|
inlinevirtual |
Definition at line 82 of file BaseTypeFactory.h.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 105 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 84 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 97 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 99 of file BaseTypeFactory.cc.
Definition at line 114 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 86 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 90 of file BaseTypeFactory.cc.
Definition at line 109 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 101 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 107 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 88 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 95 of file BaseTypeFactory.cc.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 103 of file BaseTypeFactory.cc.
Build a new variable and return it using a BaseType pointer. The type of the variable is given using Type enumeration.
t | The type of the variable to create @parma name The (optional) name of the variable. |
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 49 of file BaseTypeFactory.cc.
|
inlinevirtual |
Clone this object and return a pointer to the clone.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 100 of file BaseTypeFactory.h.