torc-master
|
An object that has a name. More...
#include <Nameable.hpp>
Public Member Functions | |
virtual | ~Nameable () throw () |
virtual const std::string | getName () const |
void | setName (const std::string &inSource) throw (Error) |
Protected Member Functions | |
Nameable () | |
Private Member Functions | |
Nameable (const Nameable &source) | |
Nameable & | operator= (const Nameable &source) |
Private Attributes | |
std::string | mName |
An object that has a name.
The Nameable class provides an interface for and implements functionality that allows an object of a derivd class to have a string name.
Definition at line 34 of file Nameable.hpp.
|
explicitprotected |
Definition at line 30 of file Nameable.cpp.
|
virtual |
Definition at line 32 of file Nameable.cpp.
|
private |
|
inlinevirtual |
Get the object name
Definition at line 89 of file Nameable.hpp.
void torc::generic::Nameable::setName | ( | const std::string & | inSource | ) | |
throw | ( | Error | |||
) |
Set a name for this object
[in] | inSource | Name of the object |
Error | Could not set name, because name is empty (Will be used by array members)
|
Set a name for this object
[in] | inSource | Name of the object |
Error | Could not set name, because name is empty (Will be used by array members) |
Definition at line 41 of file Nameable.cpp.
|
private |
Definition at line 81 of file Nameable.hpp.