TBNodeRefTree is a named TBNode.
More...
#include <tb_node_ref_tree.h>
|
class | TBNode |
|
class | TBNodeTarget |
|
TBNodeRefTree is a named TBNode.
Nodes under this node may be referenced from other nodes, either when requesting a value (TBNode::GetValueFollowRef), or while parsing the node tree. While parsing, the values can be used for branch conditions or branches of nodes can be included.
Add a listener that is invoked on changes in this tree.
TBNodeRefTree * tb::TBNodeRefTree::GetRefTree |
( |
const char * |
name, |
|
|
int |
name_len |
|
) |
| |
|
static |
Return the tree with the given name, or nullptr if no matching tree exists.
TBValue & tb::TBNodeRefTree::GetValue |
( |
const char * |
request | ) |
|
|
virtual |
Get the value of the given request.
Follows references if any. Returns a null value if the request doesn't exist.
TBValue & tb::TBNodeRefTree::GetValueFromTree |
( |
const char * |
request | ) |
|
|
static |
Get the value of the given tree name and request (>noderequest).
Returns a null value if the given tree or request doesn't exist.
bool tb::TBNodeRefTree::ReadFile |
( |
const char * |
filename | ) |
|
|
inline |
Read the data file.
This will not invoke any change listener!
Remove a change listener from this tree.
void tb::TBNodeRefTree::ResolveConditions |
( |
TBNode * |
parent_node | ) |
|
|
static |
Go through the tree of nodes recursively and include or remove branches depending on any conditions.
void tb::TBNodeRefTree::SetValue |
( |
const char * |
request, |
|
|
const TBValue & |
value |
|
) |
| |
|
virtual |
Set the value for the given request and invoke the change listener.
Creates the nodes that doesn't exist.
The documentation for this class was generated from the following files:
- /ms/mdata2/tesch/home/src/turbobadger/src/tb/tb_node_ref_tree.h
- /ms/mdata2/tesch/home/src/turbobadger/src/tb/tb_node_ref_tree.cpp