Node Class Reference

The Node class represents an entry in an Message.

Constructors
Node() : level(0) Create an empty Node.
Methods
const char * description()Returns human readable meaning of Field, or empty string. Returned pointer is valid only during the Messages's lifetime, or until the next call to description() is made.
bool valid()Returns true if the Node's value is valid.
int index() const Return the bit index of the node into the bit string.
virtual int length() const Return the length of the node.
size_t domLength() const Return the length that the node is supposed to be according to the DOM
NodeType type() const Return the NodeType of this node.
Node * child() const Return the first child of this node if there is one, otherwise 0.
Node * getChild(int row) const Return the child of this node at specified row if there is one, otherwise 0.
Node * next() const Return the next sibling of this node if there is one, otherwise 0.
Node * previous() const Return the previous sibling of this node if there is one, otherwise 0.
Node * parent() const Return the parent of this node if there is one, otherwise 0.
Node * lastChild() const Return the last child of this node if there is one, otherwise 0.
bool isInOob() const Return true if this node is in the Out-of-Band section.
virtual const char * name() constReturn the name of this node.
int line() constReturn the line number of the corresponding element in the XDDL file if there is one.
const char * file() constReturn the XDDL file name of the corresponding element.
int row() const Return the row of this node within its parent. This is the child index.
BitString bitString() constReturn the bit string of this node's data.
Node * find(const char * name)Find a sibling with name name starting at the current node. Returns 0 if name is not found.
int childCount() const Return the number of children.
class Message const * owner() const Return the owner Message object.
operator int()
int toInt() const
unsigned int toUInt() const
long toLong() const
unsigned long toULong() const
long long toLongLong() const
unsigned long long toULongLong() const
float toFloat() const
double toDouble() const
Operators
Node& operator=(int value)Assignment Operator.
Node& operator=(unsigned int value)
Node& operator=(long value)
Node& operator=(unsigned long value)
Node& operator=(long long value)
Node& operator=(unsigned long long value)
Node& operator=(float value)
Node& operator=(double value)
Node& operator=(BitString const &value)
Node &operator[](const char * name) Return a reference to a child node with name name. An exception is thrown if none is found.
Node &operator[](int index) Return a reference to a child node at index index. An exception is thrown if index is out of range.
bool operator==(Node const & node) const Equality operator.
bool operator!=(Node const & node) const Not Equality operator.
bool inOob() const { return _in_oob; } Returns true if this Node is in the out-of-band section.