Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends

alize::Label Class Reference

#include <Label.h>

Inheritance diagram for alize::Label:
Inheritance graph
[legend]
Collaboration diagram for alize::Label:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Label (const String &="")
 Label (const Label &)
Labelduplicate () const
const Labeloperator= (const Label &)
bool operator== (const Label &) const
bool operator!= (const Label &) const
virtual ~Label ()
virtual void reset ()
void setString (const String &)
const StringgetString () const
void setSourceName (const String &)
const StringgetSourceName () const
virtual String getClassName () const
virtual String toString () const

Static Public Member Functions

static Labelcreate (const String &="")

Private Member Functions

virtual Labelclone () const

Private Attributes

String _string
String _srcName

Friends

class TestLabel

Detailed Description

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.

Deprecated:
since jan 2005
Author:
Frederic Wils frederic.wils@lia.univ-avignon.fr
Version:
1.0
Date:
2004

Definition at line 84 of file Label.h.


Constructor & Destructor Documentation

Label::Label ( const String s = "" )

Definition at line 66 of file Label.cpp.

Referenced by clone(), and create().

Label::Label ( const Label c )

Definition at line 76 of file Label.cpp.

Label::~Label (  ) [virtual]

Definition at line 128 of file Label.cpp.


Member Function Documentation

Label & Label::clone (  ) const [private, virtual]

Definition at line 84 of file Label.cpp.

References alize::Object::assertMemoryIsAllocated(), and Label().

Referenced by duplicate().

Label & Label::create ( const String l = "" ) [static]

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

Returns:
the name of the class of the object as a String

Implements alize::Object.

Definition at line 120 of file Label.cpp.

const String & Label::getSourceName (  ) const

Definition at line 118 of file Label.cpp.

References _srcName.

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

Definition at line 104 of file Label.cpp.

const Label & Label::operator= ( const Label c )

Definition at line 91 of file Label.cpp.

References _srcName, and _string.

bool Label::operator== ( const Label c ) const

Definition at line 101 of file Label.cpp.

References _srcName, and _string.

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 )

Definition at line 116 of file Label.cpp.

References _srcName.

void Label::setString ( const String s )

Definition at line 112 of file Label.cpp.

References _string.

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

Returns:
a description of the object

Reimplemented from alize::Object.

Definition at line 122 of file Label.cpp.

References _srcName, and _string.


Friends And Related Function Documentation

friend class TestLabel [friend]

Definition at line 86 of file Label.h.


Member Data Documentation

Definition at line 114 of file Label.h.

Referenced by getSourceName(), operator=(), operator==(), reset(), setSourceName(), and toString().

Definition at line 113 of file Label.h.

Referenced by getString(), operator=(), operator==(), reset(), setString(), and toString().


The documentation for this class was generated from the following files: