0.44.0
|
#include <iParameters.h>
Public Member Functions | |
iParameters ()=default | |
iParameters (const iParametersMap ¶meters) | |
template<typename T > | |
T | getParameter (const iaString &name, const T &defaultValue=T()) const |
bool | hasParameter (const iaString &name) const |
void | setParameter (const iaString &name, const std::any value) |
const iParametersMap & | getParameters () const |
template<typename T > | |
T | getParameter (const iaString &name, const T &defaultValue) const |
a key value list of parameters
|
default |
does nothing
|
explicit |
init members
parameters | the parameters |
T igor::iParameters::getParameter | ( | const iaString & | name, |
const T & | defaultValue | ||
) | const |
T igor::iParameters::getParameter | ( | const iaString & | name, |
const T & | defaultValue = T() |
||
) | const |
if name does not exist it returns some default value
name | the parameter name |
defaultValue | the given default value |
const std::unordered_map< iaString, std::any > & igor::iParameters::getParameters | ( | ) | const |
bool igor::iParameters::hasParameter | ( | const iaString & | name | ) | const |
name | name of parameter |
void igor::iParameters::setParameter | ( | const iaString & | name, |
const std::any | value | ||
) |
sets value for given parameter
name | name of parameter |
value | the value to set |