StRoot
1
|
#include <Named.h>
Public Member Functions | |
void | setName (const string &newName) |
Set the name of the object. | |
const string & | getName () const |
Get the name of the object. | |
bool | isName (const string &aName) const |
Determine whether name equals given name. | |
Protected Member Functions | |
Named (const string &aName=" ") | |
Only derived class are Named. | |
Protected Attributes | |
string | _name |
This class encapsulates the notion of "name". It should be used as base class to provide a "named" property to objects.#include <string> use STD;