The Parameter::GenericParameter class is a sub class of the Parameter::Parameter class. More...
#include <parameter.h>
Public Member Functions | |
GenericParameter (const std::string &name, const std::string &type) | |
Parameter::GenericParameter constructor. More... | |
const T & | getData () const |
Get the value this paramter contains. More... | |
const int | getTypeByteSize () const |
Get the byte size of this parameter. More... | |
const bool | isTypeArithmetic () const |
Is this parameter an arithmetic type? More... | |
const bool | isTypeSigned () const |
Get the sign of this parameter. More... | |
void | setData (const T &m_data) |
Set the value this paramter contains. More... | |
![]() | |
const std::string & | getName () const |
Get the name of this parameter. More... | |
const std::string & | getType () const |
Get the type of this parameter. More... | |
const bool | isValid () const |
Is this parameters value NaN/invalid? More... | |
Parameter (const std::string &name, const std::string &type) | |
Parameter::Parameter constructor. More... | |
void | setValid (const bool isParamValid) |
Defines whether this paramters value is NaN/invalid or not. More... | |
virtual | ~Parameter () |
Parameter::Parameter destructor. More... | |
Private Attributes | |
T | m_data |
The Parameter::GenericParameter class is a sub class of the Parameter::Parameter class.
This class is a workaround allowing c++ Lists/Arrays/etc. to contain multiple dynamic types.
Definition at line 109 of file parameter.h.
|
inline |
Parameter::GenericParameter constructor.
Name must be unique within a ParameterMap object. Allowed parameter types: 'uint8_t', 'int8_t', 'uint16_t', 'int16_t', 'uint32_t', 'int32_t', 'uint64_t', 'int64_t', 'float32_t', 'float64_t', 'string_t', 'string_t[]'
[in] | name | unique identifier of the parameter |
[in] | type | type of the parameter |
Definition at line 122 of file parameter.h.
|
inline |
Get the value this paramter contains.
Definition at line 151 of file parameter.h.
|
inlinevirtual |
Get the byte size of this parameter.
Implements Parameter::Parameter.
Definition at line 130 of file parameter.h.
|
inlinevirtual |
Is this parameter an arithmetic type?
Implements Parameter::Parameter.
Definition at line 141 of file parameter.h.
|
inlinevirtual |
Get the sign of this parameter.
Implements Parameter::Parameter.
Definition at line 135 of file parameter.h.
|
inline |
Set the value this paramter contains.
[in] | m_data | value to be set |
Definition at line 146 of file parameter.h.
|
private |
Value of this parameter.
Definition at line 154 of file parameter.h.