Modules | |
Factories | |
Classes | |
struct | ITypeManager |
Container for Type objects. The Type manager is used when creating certain types of objects (eg. Structs and Property object classes). The Types stored within the manager contain pre-defined fields, as well as constraints specifying how objects should look. More... | |
class | TypeManagerPtr |
Container for Type objects. The Type manager is used when creating certain types of objects (eg. Structs and Property object classes). The Types stored within the manager contain pre-defined fields, as well as constraints specifying how objects should look. More... | |
Functions | |
void | addType (const TypePtr &type) const |
Adds a type to the manager. More... | |
void | removeType (const StringPtr &name) const |
Removes the type from the manager. More... | |
TypePtr | getType (const StringPtr &name) const |
Gets an added Type by name. More... | |
ListPtr< IString > | getTypes () const |
Gets a list of all added Types. More... | |
Bool | hasType (const StringPtr &typeName) const |
Checks if a type with the specified name is already added. More... | |
|
inline |
Adds a type to the manager.
type | The Type to be added. |
OPENDAQ_ERR_ALREADYEXISTS | if a type with the same name is already added. |
OPENDAQ_ERR_INVALIDPARAMETER | if either the type name is an empty string. |
The type name must be unique and. If a Property object class specifies a parent class, then the parent class must be added before it.
Gets an added Type by name.
typeName | The Type's name. |
name
. OPENDAQ_ERR_NOTFOUND | if a Type with the specified name is not added. |
Gets a list of all added Types.
|
inline |
Checks if a type with the specified name is already added.
typeName | The name of the checked type. |
|
inline |
Removes the type from the manager.
typeName | The type's name. |
OPENDAQ_ERR_NOTFOUND | if the class is not registered. |
The removed class must not be a parent of another added class. If it is, those classes must be removed before it.