torc::generic::Nameable Class Reference

An object that has a name. More...

#include <Nameable.hpp>

Inheritance diagram for torc::generic::Nameable:

Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual const std::string getName () const throw ()
void setName (const std::string &inSource) throw (Error)

Private Member Functions

 Nameable (const Nameable &source) throw ()
Nameableoperator= (const Nameable &source) throw ()

Private Attributes

std::string mName


Detailed Description

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 38 of file Nameable.hpp.


Member Function Documentation

const std::string torc::generic::Nameable::getName ( void   )  const throw () [inline, virtual]

Get the object name

Returns:
Name of the object

Definition at line 100 of file Nameable.hpp.

void torc::generic::Nameable::setName ( const std::string &  inSource  )  throw (Error)

Set a name for this object

Parameters:
[in] inSource Name of the object
Exceptions:
Error Could not set name, because name is empty (Will be used by array members)
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
Set a name for this object

Parameters:
[in] inSource Name of the object
Exceptions:
Error Could not set name, because name is empty (Will be used by array members)

Definition at line 48 of file Nameable.cpp.


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

Generated on Thu Oct 13 16:50:10 2011 for TORC by  doxygen 1.5.6