FEI
Version of the Day
|
#include <fei_Param.hpp>
Public Types | |
enum | ParamType |
Public Member Functions | |
Param (const char *name, const char *value) | |
Param (const char *name, double value) | |
Param (const char *name, int value) | |
Param (const char *name, const void *value) | |
Param (const char *name, bool value) | |
Param (const Param &src) | |
virtual | ~Param () |
Param & | operator= (const Param &src) |
const std::string & | getName () const |
ParamType | getType () const |
const std::string & | getStringValue () const |
double | getDoubleValue () const |
int | getIntValue () const |
bool | getBoolValue () const |
const void * | getVoidValue () const |
Simple container that pairs a name with a parameter that can be one of several different primitive types. This container is used as the value-type of the class fei::ParameterSet.
Instances of fei::Param are fully defined at construction, and can not be altered later, except by assignment.
Definition at line 23 of file fei_Param.hpp.
enumeration for parameter-types
Definition at line 26 of file fei_Param.hpp.
fei::Param::Param | ( | const char * | name, |
const char * | value | ||
) |
Constructor
Definition at line 14 of file fei_Param.cpp.
fei::Param::Param | ( | const char * | name, |
double | value | ||
) |
Constructor
Definition at line 28 of file fei_Param.cpp.
fei::Param::Param | ( | const char * | name, |
int | value | ||
) |
Constructor
Definition at line 41 of file fei_Param.cpp.
fei::Param::Param | ( | const char * | name, |
const void * | value | ||
) |
Constructor
Definition at line 67 of file fei_Param.cpp.
fei::Param::Param | ( | const char * | name, |
bool | value | ||
) |
Constructor
Definition at line 54 of file fei_Param.cpp.
fei::Param::Param | ( | const Param & | src | ) |
Copy Constructor
Definition at line 80 of file fei_Param.cpp.
|
virtual |
Destructor
Definition at line 91 of file fei_Param.cpp.
fei::Param & fei::Param::operator= | ( | const Param & | src | ) |
Assignment operator
Definition at line 95 of file fei_Param.cpp.
|
inline |
Query for the name of the parameter
Definition at line 92 of file fei_Param.hpp.
|
inline |
Query for the type of the parameter
Definition at line 98 of file fei_Param.hpp.
|
inline |
Query for string value. Returned string is empty if getType() doesn't return Param::STRING
Definition at line 104 of file fei_Param.hpp.
|
inline |
Query for double value. Returned double is meaningless if getType() doesn't return Param::DOUBLE
Definition at line 110 of file fei_Param.hpp.
|
inline |
Query for int value. Returned int is meaningless if getType() doesn't return Param::INT
Definition at line 116 of file fei_Param.hpp.
|
inline |
Query for bool value. Returned bool is meaningless if getType() doesn't return Param::BOOL
Definition at line 122 of file fei_Param.hpp.
|
inline |
Query for void-pointer value. Returned void-pointer is meaningless if getType() doesn't return Param::VOID
Definition at line 128 of file fei_Param.hpp.