PARTONS/ElementaryUtils  
Basic utility softwares (Logger, threads, etc)
Public Member Functions | Private Attributes | List of all members
ElemUtils::Parameter Class Reference

A piece of data of generic type which is given a simply readable name (a string variable). More...

Inheritance diagram for ElemUtils::Parameter:
ElemUtils::GenericType

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...
 
GenericTypeoperator= (const GenericType &rhs)
 
void setValue (const GenericType &value)
 

Private Attributes

std::string m_name
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Parameter()

template<class T >
ElemUtils::Parameter::Parameter ( const std::string &  name,
const T &  value 
)
inline

◆ ~Parameter()

ElemUtils::Parameter::~Parameter ( )
virtual

Member Function Documentation

◆ getName()

const std::string & ElemUtils::Parameter::getName ( ) const

◆ toString()

std::string ElemUtils::Parameter::toString ( ) const

Member Data Documentation

◆ m_name

std::string ElemUtils::Parameter::m_name
private

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