Represents a node. More...
#include "api/node.h"
Public Member Functions | |
virtual const IInterfaceDefinition & | get_interface_definition () const =0 |
Get the node's interface definition. | |
virtual const string & | get_name () const =0 |
Get the node's name. | |
virtual const CPath & | get_path () const =0 |
Get the node's path. | |
virtual const INode * | get_parent () const =0 |
Get the node's parent. More... | |
virtual const CPath & | get_parent_path () const =0 |
Get node's parent's path. More... | |
virtual const node_map & | get_children () const =0 |
Get all of a node's child nodes. More... | |
virtual const INode * | get_child (const string &child_name) const =0 |
Lookup a specific child node. More... | |
virtual const node_endpoint_map & | get_node_endpoints () const =0 |
Get all of a node's endpoints. More... | |
virtual const INodeEndpoint * | get_node_endpoint (const string &endpoint_name) const =0 |
Lookup a specific node endpoint. More... | |
virtual void | get_all_node_paths (path_list &results) const =0 |
Recursively walk node tree building depth-first pre-order list of all node paths. More... | |
Represents a node.
Nodes are instances of Integra Modules. Each node has a set of endpoints and can also have child nodes (allowing nodes to form a hierarchy).
|
pure virtual |
Recursively walk node tree building depth-first pre-order list of all node paths.
[out] | results | The paths of all the nodes are stored in this list |
|
pure virtual |
Lookup a specific child node.
child_name | The name of the child node to lookup |
|
pure virtual |
Get all of a node's child nodes.
|
pure virtual |
Lookup a specific node endpoint.
endpoint_name | The name of the node endpoint to lookup |
|
pure virtual |
Get all of a node's endpoints.
|
pure virtual |
Get the node's parent.
|
pure virtual |
Get node's parent's path.
Allows relative paths to be resolved without tedious NULL-checking