The Parameter::Parameter class is the abstract base class of all Classes containing dynamically typed attributes. More...
#include <parameter.h>
Public Member Functions | |
const std::string & | getName () const |
Get the name of this parameter. More... | |
const std::string & | getType () const |
Get the type of this parameter. More... | |
virtual const int | getTypeByteSize () const =0 |
Get the byte size of this parameter. More... | |
virtual const bool | isTypeArithmetic () const =0 |
Is this parameter an arithmetic type? More... | |
virtual const bool | isTypeSigned () const =0 |
Get the sign 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 | |
bool | isParamValid |
std::string | name |
std::string | type |
The Parameter::Parameter class is the abstract base class of all Classes containing dynamically typed attributes.
This class is a workaround allowing c++ Lists/Arrays/etc. to contain multiple dynamic types.
Definition at line 35 of file parameter.h.
|
inline |
Parameter::Parameter 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 48 of file parameter.h.
|
inlinevirtual |
Parameter::Parameter destructor.
Definition at line 56 of file parameter.h.
|
inline |
Get the name of this parameter.
Definition at line 61 of file parameter.h.
|
inline |
Get the type of this parameter.
Definition at line 66 of file parameter.h.
|
pure virtual |
Get the byte size of this parameter.
Implemented in Parameter::GenericParameter< T >.
|
pure virtual |
Is this parameter an arithmetic type?
Implemented in Parameter::GenericParameter< T >.
|
pure virtual |
Get the sign of this parameter.
Implemented in Parameter::GenericParameter< T >.
|
inline |
Is this parameters value NaN/invalid?
Definition at line 92 of file parameter.h.
|
inline |
Defines whether this paramters value is NaN/invalid or not.
[in] | isParamValid | sets this parameter value to valid/invalid |
Definition at line 87 of file parameter.h.
|
private |
Is this parameters value NaN/invalid?
Definition at line 97 of file parameter.h.
|
private |
Unique identifier a parameter.
Definition at line 95 of file parameter.h.
|
private |
Type of a parameter.
Definition at line 96 of file parameter.h.