PARTONS/ElementaryUtils
|
Basic utility softwares (Logger, threads, etc)
|
A piece of data of generic type which is given a simply readable name (a string variable). More...
Public Member Functions | |
template<class T > | |
Parameter (const std::string &name, const T &value) | |
virtual | ~Parameter () |
std::string | toString () const |
const std::string & | getName () const |
Public Member Functions inherited from ElemUtils::GenericType | |
template<class T > | |
GenericType (const T &value) | |
Construct a GenericType object from any simple type. More... | |
virtual | ~GenericType () |
Default destructor. More... | |
GenericType (const GenericType &other) | |
Copy constructor. More... | |
double | toDouble () const |
Convert stream to double. More... | |
int | toInt () const |
Concert stream to integer. More... | |
unsigned int | toUInt () const |
Convert stream to unsigned integer. More... | |
bool | toBoolean () const |
Convert stream to boolean. More... | |
short | toShort () const |
Convert stream to short. More... | |
unsigned short | toUShort () const |
Convert stream to unsigned short. More... | |
size_t | toSize_t () const |
std::vector< double > | toVectorDouble () const |
std::vector< int > | toVectorInt () const |
std::string | getString () const |
Convert stream to string. More... | |
GenericType & | operator= (const GenericType &rhs) |
void | setValue (const GenericType &value) |
Private Attributes | |
std::string | m_name |
A piece of data of generic type which is given a simply readable name (a string variable).
As it is the case for GenericType, a parameter can be defined from any class.
|
inline |
|
virtual |
const std::string & ElemUtils::Parameter::getName | ( | ) | const |
std::string ElemUtils::Parameter::toString | ( | ) | const |
|
private |