bes
Updated for version 3.20.6
|
Wrapper for the BaseTypeFactory that lets us create by type name. More...
#include <MyBaseTypeFactory.h>
Static Public Member Functions | |
static libdap::Type | getType (const string &name) |
static bool | isArrayTemplate (const string &typeName) |
static bool | isSimpleType (const string &typeName) |
static std::auto_ptr< libdap::Array > | makeArrayTemplateVariable (const string &type, const string &name, bool addTemplateVar) |
static std::auto_ptr< libdap::BaseType > | makeVariable (const libdap::Type &type, const string &name) |
static std::auto_ptr< libdap::BaseType > | makeVariable (const string &type, const string &name) |
Wrapper for the BaseTypeFactory that lets us create by type name.
The regular BaseTypeFactory doesn't have a factory method by type name, so this wrapper will add the desired functionality. It is a static class rather than a subclass.
Note that we can create normal libdap::Array by name, but this is deprecated since it fails with constraints. We have added special functionality for Array<T> to define an NCMLArray<T> as the return type. This allows hyperslab constraints to work.
Definition at line 56 of file MyBaseTypeFactory.h.
|
static |
Get the Type enumeration value which matches the given name.
Definition at line 140 of file MyBaseTypeFactory.cc.
|
static |
Definition at line 216 of file MyBaseTypeFactory.cc.
|
static |
Definition at line 197 of file MyBaseTypeFactory.cc.
|
static |
Make an Array<T> where T is the DAP simple type for the values in the Array. This creates the proper template class of NCMLArray<T> now rather than Array so we can handle constraints.
type | the parameterized name of the Array type, e.g. "Array<String>", Array<UInt32>, etc. |
name | the name to give the new Array |
addTemplateVar | whether to create and add the template var so that var() is non-null. |
Definition at line 222 of file MyBaseTypeFactory.cc.
|
static |
Return a new variable of the given type
type | the DAP type |
name | the name to give the new variable |
|
static |
Return a new variable of the given type name. Return null if type is not valid.
type | the DAP type to create. |
name | the name to give the new variable |