Inherits IDataRecord.
Inheritance diagram for MXADataRecord:
Public Types | |
typedef std::vector< MXADataRecord::Pointer > | MXADataRecords |
Public Member Functions | |
MXA_SHARED_POINTERS (MXADataRecord) | |
MXA_TYPE_MACRO (MXADataRecord) | |
virtual | ~MXADataRecord () |
Destructor. | |
void | setRecordName (std::string aValue) |
Setter for property name. | |
std::string | getRecordName () |
Getter for property name. | |
void | setAltName (std::string aValue) |
Setter for property altName. | |
std::string | getAltName () |
Getter for property altName. | |
int32 | getLuid () |
Getter for property luid. | |
void | setGuid (int32 aValue) |
Setter for property guid. | |
int32 | getGuid () |
Getter for property guid. | |
void | setLuid (int32 aValue) |
Setter for property luid. | |
std::string | generatePath () |
Generates the path to this data record in terms of an internal HDF path. | |
std::string | generateParentPath () |
Generates the internal HDF5 path only to this records parent. | |
int32 | writeRecord (IDataRecordWriter *writer) |
Writes this data record using the provided IDataRecordWriter implementation. | |
bool | isValid (std::string &message) |
Checks some basic properties of the model to make sure they are set correctly. | |
void | setUniqueId (int32 aValue) |
Setter for property guid. | |
int32 | getUniqueId () |
Getter for property guid. | |
void | resetGUIDValue () |
Resets the GUID value for this node. | |
void | setParent (IDataRecord::WeakPointer parent) |
Accessor for Parent iVar. | |
IDataRecord::WeakPointer | getParent () |
Returns the Parent Node. | |
int32 | getNumChildren () const |
Returns the number of Children of this node. | |
bool | hasChildren () const |
Returns TRUE if this node has children. | |
void | addChild (IDataRecord::Pointer child) |
Adds a child to this node. | |
void | removeChild (int index) |
Removes a child from this node. | |
void | removeChild (IDataRecord *child) |
Removes the given child from this node. | |
void | removeAllChildren () |
Removes all the children of this Data Record. | |
int32 | indexOfChild (IDataRecord *child) |
Returns the index of a specific child. | |
IDataRecord::Pointer | getChildAt (int32 index) |
Returns a specific child of this node based on a given index. | |
IDataRecord::Container & | getChildren () |
Returns a reference to the children of this node. | |
void | printDataRecordTree (int32 depth=0) |
prints the node and the children of this node | |
virtual void | printDataRecord (std::ostream &os, int32 indentSize=0) |
prints the node and the children of this node | |
void | _setWeakPtr (IDataRecord::WeakPointer weakPtr) |
Static Public Member Functions | |
static void | generateLUT (IDataRecord::LookupTable &lut, IDataRecord::Container &nodes) |
Creates a flat look up table using the GUID of the data record as the key and the boost::Shared_ptr as the value. | |
static Pointer | New (int luid, std::string name, std::string altName) |
Used to create a new MXANode. | |
static Pointer | New (IDataRecord::Pointer rec) |
Creates a copy of the IDataRecord object which will NOT share any data with the original object. | |
static int32 | nextGUIDValue () |
Protected Member Functions | |
MXADataRecord () | |
Protected Attributes | |
int32 | _luid |
std::string | _recordName |
std::string | _altName |
std::string | _nodeName |
int32 | _uniqueId |
IDataRecord::WeakPointer | _selfPtr |
IDataRecord::WeakPointer | _parent |
IDataRecord::Container | _children |
Private Member Functions | |
MXADataRecord (const MXADataRecord &) | |
void | operator= (const MXADataRecord &) |
Static Private Attributes | |
static int32 | _uniqueGUIDValue |
typedef std::vector<MXADataRecord::Pointer> MXADataRecord::MXADataRecords |
MXADataRecord::~MXADataRecord | ( | ) | [virtual] |
Destructor.
MXADataRecord::MXADataRecord | ( | ) | [protected] |
MXADataRecord::MXADataRecord | ( | const MXADataRecord & | ) | [private] |
MXADataRecord::MXA_SHARED_POINTERS | ( | MXADataRecord | ) |
MXADataRecord::MXA_TYPE_MACRO | ( | MXADataRecord | ) |
void MXADataRecord::generateLUT | ( | IDataRecord::LookupTable & | lut, | |
IDataRecord::Container & | nodes | |||
) | [static] |
Creates a flat look up table using the GUID of the data record as the key and the boost::Shared_ptr as the value.
lut | The look up table to be populated. | |
nodes | The IDataRecord::Container to use as the tree |
MXADataRecord::Pointer MXADataRecord::New | ( | int | luid, | |
std::string | name, | |||
std::string | altName | |||
) | [static] |
static Pointer MXADataRecord::New | ( | IDataRecord::Pointer | rec | ) | [inline, static] |
Creates a copy of the IDataRecord object which will NOT share any data with the original object.
rec | IDataRecord to copy |
void MXADataRecord::setRecordName | ( | std::string | aValue | ) | [inline, virtual] |
Setter for property name.
aValue | The new value to set for property name |
Implements IDataRecord.
std::string MXADataRecord::getRecordName | ( | ) | [inline, virtual] |
void MXADataRecord::setAltName | ( | std::string | aValue | ) | [inline, virtual] |
Setter for property altName.
aValue | The new value to set for property altName |
Implements IDataRecord.
std::string MXADataRecord::getAltName | ( | ) | [inline, virtual] |
int32 MXADataRecord::getLuid | ( | ) | [inline, virtual] |
void MXADataRecord::setGuid | ( | int32 | aValue | ) | [inline, virtual] |
Setter for property guid.
aValue | The new value to set for property guid |
Implements IDataRecord.
int32 MXADataRecord::getGuid | ( | ) | [inline, virtual] |
void MXADataRecord::setLuid | ( | int32 | aValue | ) | [inline, virtual] |
Setter for property luid.
aValue | The new value to set for property luid |
Implements IDataRecord.
std::string MXADataRecord::generatePath | ( | ) | [virtual] |
std::string MXADataRecord::generateParentPath | ( | ) | [virtual] |
int32 MXADataRecord::writeRecord | ( | IDataRecordWriter * | writer | ) | [virtual] |
Writes this data record using the provided IDataRecordWriter implementation.
writer | The IDataRecordWriter object to use to write this data record |
Implements IDataRecord.
bool MXADataRecord::isValid | ( | std::string & | message | ) | [virtual] |
Checks some basic properties of the model to make sure they are set correctly.
message | String to hold messages concerning errors/omissions from the model |
Implements IDataRecord.
void MXADataRecord::setUniqueId | ( | int32 | aValue | ) | [inline, virtual] |
Setter for property guid.
aValue | The new value to set for property guid |
Implements IDataRecord.
int32 MXADataRecord::getUniqueId | ( | ) | [inline, virtual] |
void MXADataRecord::resetGUIDValue | ( | ) | [virtual] |
int32 MXADataRecord::nextGUIDValue | ( | ) | [static] |
void MXADataRecord::setParent | ( | IDataRecord::WeakPointer | parent | ) | [virtual] |
IDataRecord::WeakPointer MXADataRecord::getParent | ( | ) | [virtual] |
int32 MXADataRecord::getNumChildren | ( | ) | const [virtual] |
bool MXADataRecord::hasChildren | ( | ) | const [virtual] |
void MXADataRecord::addChild | ( | IDataRecord::Pointer | child | ) | [virtual] |
void MXADataRecord::removeChild | ( | int | index | ) | [virtual] |
Removes a child from this node.
index | The index of the child to remove |
Implements IDataRecord.
void MXADataRecord::removeChild | ( | IDataRecord * | child | ) | [virtual] |
Removes the given child from this node.
child | The child to remove |
Implements IDataRecord.
void MXADataRecord::removeAllChildren | ( | ) | [virtual] |
int32 MXADataRecord::indexOfChild | ( | IDataRecord * | child | ) | [virtual] |
Returns the index of a specific child.
child | The child object whose index we are interested in |
Implements IDataRecord.
IDataRecord::Pointer MXADataRecord::getChildAt | ( | int32 | index | ) | [virtual] |
Returns a specific child of this node based on a given index.
index | The index of the child to return |
Implements IDataRecord.
IDataRecord::Container & MXADataRecord::getChildren | ( | ) | [virtual] |
void MXADataRecord::printDataRecordTree | ( | int32 | depth = 0 |
) | [virtual] |
prints the node and the children of this node
depth | The amount of indentation space |
Implements IDataRecord.
void MXADataRecord::printDataRecord | ( | std::ostream & | os, | |
int32 | indentSize = 0 | |||
) | [virtual] |
prints the node and the children of this node
os | An ostream to print the node to | |
indentSize | The amount of indentation space |
Implements IDataRecord.
void MXADataRecord::_setWeakPtr | ( | IDataRecord::WeakPointer | weakPtr | ) |
void MXADataRecord::operator= | ( | const MXADataRecord & | ) | [private] |
int32 MXADataRecord::_uniqueGUIDValue [static, private] |
int32 MXADataRecord::_luid [protected] |
std::string MXADataRecord::_recordName [protected] |
std::string MXADataRecord::_altName [protected] |
std::string MXADataRecord::_nodeName [protected] |
int32 MXADataRecord::_uniqueId [protected] |
IDataRecord::WeakPointer MXADataRecord::_selfPtr [protected] |
IDataRecord::WeakPointer MXADataRecord::_parent [protected] |
IDataRecord::Container MXADataRecord::_children [protected] |