Union.h
Go to the documentation of this file.
An object can contain other objects, properties and arrays.
Definition: Libraries/ConfigDB/src/include/ConfigDB/Object.h:37
Object * parent
Definition: Libraries/ConfigDB/src/include/ConfigDB/Object.h:301
void disposeArrays()
const ObjectInfo & typeinfo() const
Definition: Libraries/ConfigDB/src/include/ConfigDB/Object.h:232
const PropertyInfo & propinfo() const
Definition: Libraries/ConfigDB/src/include/ConfigDB/Object.h:227
PropertyData * getPropertyData(unsigned index)
Definition: Libraries/ConfigDB/src/include/ConfigDB/Object.h:237
uint16_t dataRef
Definition: Libraries/ConfigDB/src/include/ConfigDB/Object.h:302
void resetToDefaults()
Does a 'clear' followed by 'loadArrayDefaults'.
void * getDataPtr()
bool writeCheck() const
Read-only access to a key/value pair stored in an object, or a simple array value.
Definition: Property.h:32
Adds write access for a key/value pair stored in an object, or a simple array value.
Definition: Property.h:80
Variant object, can contain one of a selection of object types A union contains one private property,...
Definition: Union.h:32
Item as(Tag tag)
Used by code generator to obtain a writeable reference to the contained object.
Definition: Union.h:123
uint8_t Tag
A zero-based index which identifies the stored object type.
Definition: Union.h:37
void setTag(Tag tag)
Set the current tag and reset content to object default.
Definition: Union.h:52
void clear()
Reset tag to default and clear whatever object that corresponds to.
Definition: Union.h:67
const Item as(Tag tag) const
Used by code generator to obtain a read-only reference to the contained object.
Definition: Union.h:109
Item to(Tag tag)
Used by code generator to set the tag and return a direct reference to the contained object.
Definition: Union.h:137
Tag getTag() const
Get the current tag which identifies the stored type.
Definition: Union.h:44
Definition: Array.h:26
1.9.1