#include <Label.h>


Public Member Functions | |
| Label (const String &="") | |
| Label (const Label &) | |
| Label & | duplicate () const |
| const Label & | operator= (const Label &) |
| bool | operator== (const Label &) const |
| bool | operator!= (const Label &) const |
| virtual | ~Label () |
| virtual void | reset () |
| void | setString (const String &) |
| const String & | getString () const |
| void | setSourceName (const String &) |
| const String & | getSourceName () const |
| virtual String | getClassName () const |
| virtual String | toString () const |
Static Public Member Functions | |
| static Label & | create (const String &="") |
Private Member Functions | |
| virtual Label & | clone () const |
Private Attributes | |
| String | _string |
| String | _srcName |
Friends | |
| class | TestLabel |
Class Label. A Label object is designed to store a string of character and other informations. It is used to add extra informations to features. See class LabelServer.
Definition at line 84 of file Label.h.
| Label::Label | ( | const String & | s = "" ) |
| Label & Label::clone | ( | ) | const [private, virtual] |
Definition at line 84 of file Label.cpp.
References alize::Object::assertMemoryIsAllocated(), and Label().
Referenced by duplicate().
Definition at line 69 of file Label.cpp.
References alize::Object::assertMemoryIsAllocated(), and Label().
| Label & Label::duplicate | ( | ) | const |
Definition at line 79 of file Label.cpp.
References clone().
Referenced by alize::LabelServer::addLabel(), and alize::LabelServer::setLabel().
| String Label::getClassName | ( | ) | const [virtual] |
Returns the name of the class
Implements alize::Object.
| const String & Label::getSourceName | ( | ) | const |
| const String & Label::getString | ( | ) | const |
Definition at line 114 of file Label.cpp.
References _string.
Referenced by alize::LabelServer::getLabelIndexByString().
| bool Label::operator== | ( | const Label & | c ) | const |
| void Label::reset | ( | ) | [virtual] |
Definition at line 106 of file Label.cpp.
References _srcName, _string, and alize::String::reset().
| void Label::setSourceName | ( | const String & | s ) |
| void Label::setString | ( | const String & | s ) |
| String Label::toString | ( | ) | const [virtual] |
This method is frequently overridden in the derived classes. If it is not, it returns the name of the class of the object and the address of the object
Reimplemented from alize::Object.
String alize::Label::_srcName [private] |
Definition at line 114 of file Label.h.
Referenced by getSourceName(), operator=(), operator==(), reset(), setSourceName(), and toString().
String alize::Label::_string [private] |
Definition at line 113 of file Label.h.
Referenced by getString(), operator=(), operator==(), reset(), setString(), and toString().
1.7.2