#include <daeAtomicType.h>
Public Member Functions | |
virtual void | copy (daeChar *src, daeChar *dst) |
virtual daeMemoryRef | create () |
virtual daeArray * | createArray () |
daeEnumType (DAE &dae) | |
virtual void | destroy (daeMemoryRef obj) |
virtual daeBool | memoryToString (daeChar *src, std::ostringstream &dst) |
virtual daeBool | stringToMemory (daeChar *src, daeChar *dst) |
~daeEnumType () | |
Public Attributes | |
daeStringRefArray * | _strings |
daeEnumArray * | _values |
The daeEnumType
class is derived from daeAtomicType
, and implements the reflective system for objects of type daeEnum.
Definition at line 602 of file daeAtomicType.h.
daeEnumType::daeEnumType | ( | DAE & | dae | ) |
Constructor
daeEnumType::~daeEnumType | ( | ) |
Destructor
Performs a virtual copy operation.
src | Memory location of the value to copy from. | |
dst | Memory location of the value to copy to. |
Implements daeAtomicType.
virtual daeMemoryRef daeEnumType::create | ( | ) | [virtual] |
Creates a new object of the appropriate type for this daeAtomicType and returns it as a pointer. The return value must be freed by calling destroy.
Implements daeAtomicType.
virtual daeArray* daeEnumType::createArray | ( | ) | [virtual] |
Creates a daeTArray of the appropriate type (e.g. daeTArray<int>, daeTArray<daeIDRef>) and returns it as a daeArray*.
Implements daeAtomicType.
virtual void daeEnumType::destroy | ( | daeMemoryRef | obj | ) | [virtual] |
Deletes an object previously allocated with create.
obj | The object previously allocated with create. |
Implements daeAtomicType.
Prints an atomic typed element into a destination string.
src | Source of the raw data from which to get the typed items. | |
dst | Destination to output the string version of the elements to. |
Implements daeAtomicType.
Reads an atomic typed item into the destination runtime memory.
src | Source string. | |
dst | Raw binary location to store the resulting value. |
Reimplemented from daeAtomicType.
The array which contains the strings to associate with the values used in this enum.
Definition at line 612 of file daeAtomicType.h.
The array which contains the values used in this enum.
Definition at line 608 of file daeAtomicType.h.