|
Jamoma API
0.6.0.a19
|
The TTAddress class is used to represent a string and efficiently pass and compare that string. More...
#include <TTAddress.h>
Inheritance diagram for TTAddress:
Collaboration diagram for TTAddress:Public Member Functions | |
| TTAddress (const TTSymbol newDirectory, const TTAddress newParent, const TTSymbol newName, const TTSymbol newInstance, const TTSymbol newAttribute) | |
| TTAddress constructor from directory, parent, name, instance and attribute part. More... | |
| TTSymbol & | getDirectory () |
| Get the directory part. | |
| TTAddress | getParent () |
| Get a pointer to the parent address. | |
| TTSymbol & | getName () |
| Get the name part. | |
| TTSymbol & | getInstance () |
| Get the instance part. | |
| TTSymbol & | getAttribute () |
| Get the attribute part. | |
| TTAddressType | getType () |
| Get the type. | |
| TTSymbol | getNameInstance () |
| Get the name.instance part. | |
| TTAddress | normalize () |
| Normalize an address for lookup and other directory operations This would return an address without directory and attribute. | |
| TTAddress | removeAttribute () |
| Return a new TTAddress without attribute part. | |
| TTAddress | appendAttribute (TTSymbol anAttribute) |
| Return a new TTAddress with attribute part. | |
| TTAddress | appendAddress (const TTAddress &toAppend) |
| Return a new TTAddress with the appended part. | |
| TTAddress | appendInstance (const TTSymbol anInstance) |
| Return a new TTAddress with a instance part. | |
| TTAddressComparisonFlag | compare (const TTAddress &toCompare, TTInt8 &depthDifference) |
| A comparison tool. More... | |
| TTErr | splitAt (TTUInt32 whereToSplit, TTAddress &returnedPart1, TTAddress &returnedPart2) |
| A parsing tool : split address in two part from a given '/' position. More... | |
| TTUInt32 | countSeparator () |
| A parsing tool : count how many C_SEPARATOR there is in the address. More... | |
| TTErr | listNameInstance (TTList &nameInstanceList) |
| A parsing tool : return a list containing all name.instance part (without any S_SEPARATOR) More... | |
Public Member Functions inherited from TTSymbol | |
| const char * | c_str () const |
| Return a pointer to the internal string as a C-string. More... | |
| TTUInt32 | getSymbolId () const |
| Return this symbol's unique id. More... | |
| operator const char * () const | |
| Cast a symbol to a C-string. More... | |
| operator const TTString & () const | |
| Cast a symbol to a TTStringRef. More... | |
| TTPtr | rawpointer () const |
| Get the value of the raw pointer into the symbol table. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from TTSymbol | |
| static TTSymbol | random () |
| Generate a pseudo-random symbol. | |
Protected Attributes inherited from TTSymbol | |
| TTSymbolBase * | mSymbolPointer |
| pointer to the symbol that we represent | |
The TTAddress class is used to represent a string and efficiently pass and compare that string.
It is essentially a TTSymbol extended with OSC parsing. An address follows the form: directory:/parent/name.instance:attribute
Definition at line 29 of file TTAddress.h.
|
inline |
TTAddress constructor from directory, parent, name, instance and attribute part.
| newDirectory | directory symbol |
| newParent | parent address |
| newName | name symbol |
| newInstance | instance symbol |
| newAttribute | attribute symbol |
Definition at line 89 of file TTAddress.h.
References TTSymbolTable::lookup().
Here is the call graph for this function:
|
inline |
A comparison tool.
| toCompare | An address to compare (it doesn't compare attribute part) |
| depthDifference | Return the number of level separating the compared addresses (> 0 for lower result, < 0 for upper result) |
Definition at line 182 of file TTAddress.h.
References TTSymbol::mSymbolPointer.
Referenced by TTNodeDirectory::getAlias(), TTNodeDirectory::notifyObservers(), and TTNodeDirectory::replaceAlias().
|
inline |
A parsing tool : count how many C_SEPARATOR there is in the address.
Definition at line 206 of file TTAddress.h.
Referenced by TTNodeDirectory::AliasCreate(), and TTNode::getAddress().
|
inline |
A parsing tool : return a list containing all name.instance part (without any S_SEPARATOR)
| The | list of name.instance part to fill |
Definition at line 213 of file TTAddress.h.
|
inline |
A parsing tool : split address in two part from a given '/' position.
| whereToSplit | An int to give the '/' id where to split |
| returnedPart1 | A pointer to upper part (before the given position) : /part1 |
| returnedPart2 | A pointer to lower part (after the given position) : /part2 |
Definition at line 192 of file TTAddress.h.
Referenced by TTNode::getAddress(), and TTNodeDirectory::replaceAlias().