#include <daeMetaAttribute.h>
Public Member Functions | |
virtual daeInt | compare (daeElement *elt1, daeElement *elt2) |
virtual daeInt | compareToDefault (daeElement *e) |
virtual void | copy (daeElement *toElement, daeElement *fromElement) |
virtual void | copyDefault (daeElement *element) |
virtual daeBool | isArrayAttribute () |
virtual void | memoryToString (daeElement *e, std::ostringstream &buffer) |
virtual void | setDefaultString (daeString defaultVal) |
virtual void | setDefaultValue (daeMemoryRef defaultVal) |
virtual void | setDocument (daeElement *e, daeDocument *doc) |
virtual void | stringToMemory (daeElement *e, daeString s) |
virtual | ~daeMetaArrayAttribute () |
The daeMetaArrayAttribute
class is simple a wrapper that implements an array of atomic types rather than a singleton. The corresponding storage is an array and the corresponding operations are implemented on the array data structure rather than on inlined storage in elements.
Definition at line 238 of file daeMetaAttribute.h.
virtual daeMetaArrayAttribute::~daeMetaArrayAttribute | ( | ) | [virtual] |
virtual daeInt daeMetaArrayAttribute::compare | ( | daeElement * | elt1, | |
daeElement * | elt2 | |||
) | [virtual] |
Compares the value of this attribute in the given elements.
elt1 | The first element whose attribute value should be compared. | |
elt2 | The second element whose attribute value should be compared. |
Reimplemented from daeMetaAttribute.
virtual daeInt daeMetaArrayAttribute::compareToDefault | ( | daeElement * | e | ) | [virtual] |
Compares the value of this attribute from the given element to the default value of this attribute (if one exists).
e | The element whose value should be compared to the default value. |
Reimplemented from daeMetaAttribute.
virtual void daeMetaArrayAttribute::copy | ( | daeElement * | toElement, | |
daeElement * | fromElement | |||
) | [virtual] |
Defines the override version of this method from daeMetaAttribute
.
toElement | Pointer to a daeElement to copy this attribute to. | |
fromElement | Pointer to a daeElement to copy this attribute from. |
Reimplemented from daeMetaAttribute.
virtual void daeMetaArrayAttribute::copyDefault | ( | daeElement * | element | ) | [virtual] |
Copies the default value of this attribute to the element
element | Pointer to a daeElement to copy the default value to. |
Reimplemented from daeMetaAttribute.
virtual daeBool daeMetaArrayAttribute::isArrayAttribute | ( | ) | [inline, virtual] |
Gets if this attribute is an array attribute.
Reimplemented from daeMetaAttribute.
Definition at line 300 of file daeMetaAttribute.h.
virtual void daeMetaArrayAttribute::memoryToString | ( | daeElement * | e, | |
std::ostringstream & | buffer | |||
) | [virtual] |
Converts an element's attribute value to a string.
Reimplemented from daeMetaAttribute.
virtual void daeMetaArrayAttribute::setDefaultString | ( | daeString | defaultVal | ) | [virtual] |
Sets the default for this attribute via a string.
defaultVal | daeString representing the default value. |
Reimplemented from daeMetaAttribute.
virtual void daeMetaArrayAttribute::setDefaultValue | ( | daeMemoryRef | defaultVal | ) | [virtual] |
Sets the default for this attribute via a memory pointer.
defaultVal | daeMemoryRef representing the default value. |
Reimplemented from daeMetaAttribute.
virtual void daeMetaArrayAttribute::setDocument | ( | daeElement * | e, | |
daeDocument * | doc | |||
) | [virtual] |
Notifies an attribute when the containing document changes.
Reimplemented from daeMetaAttribute.
virtual void daeMetaArrayAttribute::stringToMemory | ( | daeElement * | e, | |
daeString | s | |||
) | [virtual] |
Converts a string to a memory value in the specified element.
Reimplemented from daeMetaAttribute.