Object. More...
#include <robjh.h>
Collaboration diagram for RObjH:
Public Member Functions | |
RObjH (const size_t id, const RString &name, const size_t nb) | |
RObjH (const RObjH *obj) | |
int | Compare (const RObjH &obj) const |
size_t | GetId (void) const |
RString | GetName (void) const |
const RAttrList & | GetAttr (void) const |
void | AddAttribute (const size_t a) |
bool | IsSame (const RObjH *obj) const |
virtual | ~RObjH (void) |
Public Attributes | |
size_t | Id |
RString | Name |
RAttrList | Attr |
Detailed Description
Object.
The RobjH class provides a representation of an object to place in the tree.
Constructor & Destructor Documentation
Construct the object.
- Parameters
-
id Identifier. name Name of the object. nb Number of attributes representing the object.
|
virtual |
Destruct the object.
Member Function Documentation
int Compare | ( | const RObjH & | obj | ) | const |
Compare function used by container.
size_t GetId | ( | void | ) | const |
- Returns
- the object identifier.
RString GetName | ( | void | ) | const |
- Returns
- the Name of the object.
const RAttrList& GetAttr | ( | void | ) | const |
- Returns
- a reference of the attributes.
void AddAttribute | ( | const size_t | a | ) |
Add a new attribute to the object.
- Parameters
-
a Attribute to add.
bool IsSame | ( | const RObjH * | obj | ) | const |
Verify if an object has the exactly the same attributes.
- Parameters
-
obj Object to verify.
Member Data Documentation
size_t Id |
The identifier of the object.
RString Name |
Name of the object.
RAttrList Attr |
The list of attributes for the object.