5 #include "Sti/Base/Named.h"
17 int i = aName.size()-1;
18 for(;i>=0 && aName[i]==
' ';i--) {};
19 _name = string(aName,0,i+1);
29 int i = aName.size()-1;
30 for(;i>=0 && aName[i]==
' ';i--) {}
31 return _name==string(aName,0,i+1);
bool isName(const string &aName) const
Determine whether name equals given name.
void setName(const string &newName)
Set the name of the object.
Named(const string &aName=" ")
Only derived class are Named.
const string & getName() const
Get the name of the object.