#include <NodeReference.hpp>
Public Member Functions | |
NodeReference () | |
Constructor. | |
NodeReference (const std::string &refExpr) | |
Constructor. | |
virtual | ~NodeReference () |
Destructor. | |
virtual void | setFromRef (const std::string &refExpr) |
Initialize from reference. | |
virtual void | setValue (const std::string &newValue) |
Set value. | |
virtual void | setType (int newType) |
Set type. | |
virtual void | setSubscript (bool newSubscript) |
Set subscript flag. | |
virtual std::string | getValue () const |
Get value. | |
virtual int | getType () const |
Get type. | |
virtual bool | isSubscript () const |
Get subscript flag. | |
virtual void | clear () |
Make this an empty (invalid) node reference. | |
virtual void | printDebugInfo () const |
Print debug information. | |
Static Public Attributes | |
static const int | REF_INVALID = 0 |
Reference type: Invalid. | |
static const int | REF_NAME = 1 |
Reference type: Node name. | |
static const int | REF_ID = 2 |
Reference type: Node ID. | |
static const int | REF_PATH = 3 |
Reference type: Tree path. | |
static const int | REF_EMPTY = 4 |
Reference type: Empty. | |
Protected Attributes | |
std::string | value |
Value of the reference (either name or ID of the node). | |
int | type |
Reference type. | |
bool | subscript |
Whether this reference has been generated from a subscript. |
A tree node reference specifies a tree node, relative to its parent node, in human readable form. A tree node reference may be generated from a child node ID, a node name, or a fully qualified tree path (i.e. a data entry).
|
Constructor. Construct new NodeReference object. |
|
Constructor. Creates a node reference from a reference expression. This may be either a child node ID, a node name, or a fully qualified tree path (i.e. data entry).
|
|
Destructor. Destruct NodeReference object. |
|
Make this an empty (invalid) node reference.
|
|
Get type.
|
|
Get value.
|
|
Get subscript flag.
|
|
Print debug information.
|
|
Initialize from reference. Initializes the node reference from a reference expression. This may be either a child node ID, a node name, or a fully qualified tree path (i.e. data entry). Note: This function does not initialize the subscript flag.
|
|
Set subscript flag.
Sets the subscript flag. This should be set to
|
|
Set type. Sets the reference type.
|
|
Set value. Sets the reference value.
|
|
Reference type: Empty.
|
|
Reference type: Node ID.
|
|
Reference type: Invalid.
|
|
Reference type: Node name.
|
|
Reference type: Tree path.
|
|
Whether this reference has been generated from a subscript.
|
|
Reference type.
|
|
Value of the reference (either name or ID of the node).
|