Inherits INode.
Inheritance diagram for MXANode:
Public Types | |
enum | Type { Root, FileVersion, FileType, DataModel, DataRoot, DataDimensions, Dimension, DataRecords, Record, MetaData, Required, UserDefined, DataPath, Data, Dataset } |
Types that an INode can take. More... | |
Public Member Functions | |
MXA_SHARED_POINTERS (MXANode) | |
MXA_TYPE_MACRO (MXANode) | |
virtual | ~MXANode () |
void | setNodeType (int32 nodeType) |
Accessor for NodeType iVar. | |
int32 | getNodeType () |
Gets the node type. | |
std::string | getNodeTypeString () |
Returns the node type as a string. | |
virtual void | setNodeName (std::string nodeName) |
Accessors for NodeName iVar. | |
std::string | getNodeName () |
Returns the Name of this node. | |
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 (MXANodeWeakPtr parent) |
Accessor for Parent iVar. | |
MXANodeWeakPtr | 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 (MXANodePtr child) |
void | removeChild (int index) |
Removes a child from this node. | |
void | removeChild (MXANodePtr child) |
int32 | indexOfChild (MXANodePtr child) |
int32 | indexOfChild (MXANode *child) |
MXANodePtr | getChildAt (int32 index) |
Returns a specific child of this node based on a given index. | |
MXANodeChildren & | getChildren () |
Returns a reference to the children of this node. | |
template<typename T> | |
void | setAttribute (std::string key, T value) |
void | removeAttribute (std::string) |
Removes an Attribute from this node. | |
void | printNodeTree (int32 depth=0) |
prints the node and the children of this node | |
virtual void | printNode (std::ostream &os, int32 indentSize=0) |
prints the node and the children of this node | |
void | _setWeakPtr (MXANodeWeakPtr weakPtr) |
Static Public Member Functions | |
static void | generateLUT (std::map< int32, MXANodePtr > &lut, MXANodes &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 MXANodePtr | New (int32 type, std::string nodeName) |
Used to create a new MXANode. | |
static std::string | getNodeTypeAsString (int32 node_type) |
Returns the node type as a string. | |
static int32 | nextGUIDValue () |
Static Public Attributes | |
static int32 | _uniqueGUIDValue |
Protected Member Functions | |
MXANode () | |
MXANode (int32 nodeType, std::string nodeName) | |
std::string | _indent (int) |
Protected Attributes | |
std::string | _nodeName |
int32 | _nodeType |
int32 | _uniqueId |
MXANodeWeakPtr | _selfPtr |
MXANodeWeakPtr | _parent |
MXANodeChildren | _children |
Attributes | _nodeAttributes |
Private Member Functions | |
MXANode (const MXANode &) | |
void | operator= (const MXANode &) |
enum MXANode::Type |
MXANode::~MXANode | ( | ) | [virtual] |
MXANode::MXANode | ( | ) | [inline, protected] |
MXANode::MXANode | ( | int32 | nodeType, | |
std::string | nodeName | |||
) | [protected] |
MXANode::MXANode | ( | const MXANode & | ) | [private] |
MXANode::MXA_SHARED_POINTERS | ( | MXANode | ) |
MXANode::MXA_TYPE_MACRO | ( | MXANode | ) |
void MXANode::generateLUT | ( | std::map< int32, MXANodePtr > & | lut, | |
MXANodes & | 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 nodes to use in the lookup table |
MXANodePtr MXANode::New | ( | int32 | type, | |
std::string | nodeName | |||
) | [static] |
void MXANode::setNodeType | ( | int32 | nodeType | ) | [virtual] |
int32 MXANode::getNodeType | ( | ) | [virtual] |
std::string MXANode::getNodeTypeString | ( | ) | [virtual] |
std::string MXANode::getNodeTypeAsString | ( | int32 | node_type | ) | [static] |
Returns the node type as a string.
node_type | The type of node |
Reimplemented from INode.
void MXANode::setNodeName | ( | std::string | nodeName | ) | [virtual] |
std::string MXANode::getNodeName | ( | ) | [virtual] |
void MXANode::setUniqueId | ( | int32 | aValue | ) | [inline, virtual] |
Setter for property guid.
aValue | The new value to set for property guid |
Implements INode.
int32 MXANode::getUniqueId | ( | ) | [inline, virtual] |
void MXANode::resetGUIDValue | ( | ) | [virtual] |
int32 MXANode::nextGUIDValue | ( | ) | [static] |
void MXANode::setParent | ( | MXANodeWeakPtr | parent | ) |
Accessor for Parent iVar.
MXANodeWeakPtr MXANode::getParent | ( | ) | [virtual] |
int MXANode::getNumChildren | ( | ) | const [virtual] |
bool MXANode::hasChildren | ( | ) | const [virtual] |
void MXANode::addChild | ( | MXANodePtr | child | ) |
void MXANode::removeChild | ( | int | index | ) | [virtual] |
Removes a child from this node.
index | The index of the child to remove |
Implements INode.
void MXANode::removeChild | ( | MXANodePtr | child | ) |
int32 MXANode::indexOfChild | ( | MXANodePtr | child | ) |
int32 MXANode::indexOfChild | ( | MXANode * | child | ) |
MXANodePtr MXANode::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 INode.
MXANodeChildren & MXANode::getChildren | ( | ) | [virtual] |
void MXANode::setAttribute | ( | std::string | key, | |
T | value | |||
) | [inline] |
void MXANode::removeAttribute | ( | std::string | attrName | ) | [virtual] |
Removes an Attribute from this node.
attrName | The name of the attribute to remove |
Implements INode.
void MXANode::printNodeTree | ( | int32 | depth = 0 |
) | [virtual] |
prints the node and the children of this node
depth | The amount of indentation space |
Implements INode.
void MXANode::printNode | ( | 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 INode.
void MXANode::_setWeakPtr | ( | MXANodeWeakPtr | weakPtr | ) |
std::string MXANode::_indent | ( | int | ) | [protected] |
void MXANode::operator= | ( | const MXANode & | ) | [private] |
int MXANode::_uniqueGUIDValue [static] |
std::string MXANode::_nodeName [protected] |
int32 MXANode::_nodeType [protected] |
int32 MXANode::_uniqueId [protected] |
MXANodeWeakPtr MXANode::_selfPtr [protected] |
MXANodeWeakPtr MXANode::_parent [protected] |
MXANodeChildren MXANode::_children [protected] |
Attributes MXANode::_nodeAttributes [protected] |