Node Class Reference
#include <Ample.h>
List of all members.
Detailed Description
Node base class. Represents a single node of unknown type.
Member Typedef Documentation
Constructor & Destructor Documentation
| Node |
( |
VNodeID |
ID, |
|
|
VNodeType |
type, |
|
|
VNodeOwner |
owner, |
|
|
Session & |
session | |
|
) |
| | [protected] |
Constructs a node object.
- Parameters:
-
| ID | The ID of the node. |
| type | The type of the node. |
| owner | The owner specification of the node. |
| session | The session containing the node. |
| virtual ~Node |
( |
void |
|
) |
[protected, virtual] |
Member Function Documentation
| void addObserver |
( |
NodeObserver & |
observer |
) |
[inline, inherited] |
Adds the specified observer to this object.
- Parameters:
-
| observer | The observer to add. |
| void createTagGroup |
( |
const std::string & |
name |
) |
|
Creates a new tag group in this node.
- Parameters:
-
| name | The desired name of the tag group. |
| unsigned int getDataVersion |
( |
void |
|
) |
const [inherited] |
- Returns:
- The current version of the internal state.
| VNodeID getID |
( |
void |
|
) |
const |
- Returns:
- The ID of this node.
| const std::string& getName |
( |
void |
|
) |
const |
- Returns:
- The name of this node.
| const ObserverList& getObservers |
( |
void |
|
) |
const [inline, inherited] |
- Returns:
- The list of observers attached to this object.
- Returns:
- The session containing this node.
| unsigned int getStructureVersion |
( |
void |
|
) |
const [inherited] |
- Returns:
- The current version of the internal structure.
| const Tag* getTagByNames |
( |
const std::string & |
groupName, |
|
|
const std::string & |
tagName | |
|
) |
| | const |
- Parameters:
-
| groupName | The name of the group of the desired tag. |
| tagName | The name of the desired tag. |
- Returns:
- The tag with the specified name, in the specified group.
| Tag* getTagByNames |
( |
const std::string & |
groupName, |
|
|
const std::string & |
tagName | |
|
) |
| | |
- Parameters:
-
| groupName | The name of the group of the desired tag. |
| tagName | The name of the desired tag. |
- Returns:
- The tag with the specified name, in the specified group.
| const TagGroup* getTagGroupByID |
( |
uint16 |
ID |
) |
const |
- Parameters:
-
| ID | The ID of the desired tag group. |
- Returns:
- The tag group with the specified ID, or
NULL if no such tag group exists.
- Parameters:
-
| ID | The ID of the desired tag group. |
- Returns:
- The tag group with the specified ID, or
NULL if no such tag group exists.
| const TagGroup* getTagGroupByIndex |
( |
unsigned int |
index |
) |
const |
- Parameters:
-
| index | The index of the desired tag group. |
- Returns:
- The tag group at the specified index, or
NULL if no such tag group exists.
| TagGroup* getTagGroupByIndex |
( |
unsigned int |
index |
) |
|
- Parameters:
-
| index | The index of the desired tag group. |
- Returns:
- The tag group at the specified index, or
NULL if no such tag group exists.
| const TagGroup* getTagGroupByName |
( |
const std::string & |
name |
) |
const |
- Parameters:
-
| name | The name of the desired tag group. |
- Returns:
- The tag group with the specified name, or
NULL if no such tag group exists.
| TagGroup* getTagGroupByName |
( |
const std::string & |
name |
) |
|
- Parameters:
-
| name | The name of the desired tag group. |
- Returns:
- The tag group with the specified name, or
NULL if no such tag group exists.
| unsigned int getTagGroupCount |
( |
void |
|
) |
const |
- Returns:
- The number of tag groups in this node.
| VNodeType getType |
( |
void |
|
) |
const |
- Returns:
- The type of this node.
| bool isMine |
( |
void |
|
) |
const |
- Returns:
true if this node was created from this client, otherwise false.
Removes the specified observer from this object.
- Parameters:
-
| observer | The observer to remove. |
| void removeObserver |
( |
NodeObserver & |
observer |
) |
[inline, inherited] |
Removes the specified observer from this object.
- Parameters:
-
| observer | The observer to remove. |
| void setName |
( |
const std::string & |
name |
) |
|
Changes the name of this node.
- Parameters:
-
Friends And Related Function Documentation