Represents the address of a node endpoint, absolutely or relatively. More...
#include "api/path.h"
Public Member Functions | |
CPath () | |
Construct an empty path. | |
CPath (const string &path_string) | |
Construct a path from a dot-separated string eg "OuterContainer.InnerContainer.ModuleName". | |
CPath (const CPath &to_copy) | |
Copy contructor. | |
const CPath & | operator= (const CPath &to_copy) |
Assignment operator. | |
bool | operator== (const CPath &to_compare) const |
Equality operator. | |
int | get_number_of_elements () const |
const string & | operator[] (int index) const |
array access operator. This operator allows you to access path elements in array syntax eg path[ 0 ] More... | |
const string & | get_string () const |
operator const string & () const | |
Casting operator, synonym for get_string() | |
string | pop_element () |
Pop last element from path Reduces number of elements in path by 1. More... | |
void | append_element (const string &element) |
append element to path More... | |
Represents the address of a node endpoint, absolutely or relatively.
libIntegra uses paths to identify node enpoints. For example, a node called 'AudioIn' within a node called 'Project' might have an endpoint called 'inLevel'. In this case, the endpoint could be addressed (from the top level) as 'Project.AudioIn.inLevel'. Or, the same endpoint could be addressed (from the 'Project' node) as 'AudioIn.inLevel'. Or, the same endpoint could be addressed (from the 'AudioIn' node) as 'inLevel'.
void integra_api::CPath::append_element | ( | const string & | element | ) |
append element to path
element | The element to append |
int integra_api::CPath::get_number_of_elements | ( | ) | const |
const string& integra_api::CPath::get_string | ( | ) | const |
const string& integra_api::CPath::operator[] | ( | int | index | ) | const |
array access operator. This operator allows you to access path elements in array syntax eg path[ 0 ]
string integra_api::CPath::pop_element | ( | ) |
Pop last element from path Reduces number of elements in path by 1.