|
|
void | setName (const std::string &name) |
| |
|
void | setValue (const std::string &value) |
| |
|
void | setValue (long value) |
| |
|
void | setValue (int value) |
| |
|
void | setValue (float value) |
| |
|
const std::string & | getName () const |
| |
|
const std::string & | getValue () const |
| | returns the attribute value as a string
|
| |
|
| operator int () const |
| | returns the attribute value as a int
|
| |
|
| operator long () const |
| | returns the attribute value as a long
|
| |
|
| operator float () const |
| | returns the attribute value as a float
|
| |
|
unsigned | refs () const |
| | gives the reference count of the object
|
| |
|
void | addReference () |
| | addReference increments the ref count and checks for refCount overflow
|
| |
|
void | removeReference () |
| | removeReference delete the object when refCount is zero
|
| |
An attribute is represented by its name and its value.