libdap Updated for version 3.20.11
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
#include <BaseTypeFactory.h>
Public Member Functions | |
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 |
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 80 of file BaseTypeFactory.h.
|
inline |
Definition at line 83 of file BaseTypeFactory.h.
|
inlinevirtual |
Definition at line 85 of file BaseTypeFactory.h.
Definition at line 142 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 87 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 118 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 124 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 161 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 93 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 105 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 154 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 130 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 148 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 99 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 112 of file BaseTypeFactory.cc.
|
virtual |
Definition at line 136 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 50 of file BaseTypeFactory.cc.
|
inlinevirtual |
Clone this object and return a pointer to the clone.
Reimplemented in libdap::D4BaseTypeFactory.
Definition at line 104 of file BaseTypeFactory.h.