Nektar++
|
Represents a command-line configuration option. More...
#include <Module.h>
Public Member Functions | |
ConfigOption (bool isBool, std::string defValue, std::string desc) | |
Construct a new configuration option. More... | |
ConfigOption () | |
template<typename T > | |
T | as () |
Re-interpret the value stored in value as some type using boost::lexical_cast. More... | |
template<typename T > | |
bool | isType () |
Interpret the value stored in value as some type using boost::lexical_cast and return true of false depending on cast. More... | |
Public Attributes | |
bool | isBool |
True if the configuration option is a boolean (thus does not need additional arguments). More... | |
bool | beenSet |
True if the configuration option has been set at command line. If false, the default value will be put into value. More... | |
std::string | value |
The value of the configuration option. More... | |
std::string | defValue |
Default value of the configuration option. More... | |
std::string | desc |
Description of the configuration option. More... | |
Represents a command-line configuration option.
Definition at line 83 of file NekMeshUtils/Module/Module.h.
|
inline |
Construct a new configuration option.
isBool | True if the option is boolean type. |
defValue | Default value of the option. |
desc | Description of the option. |
Definition at line 92 of file NekMeshUtils/Module/Module.h.
|
inline |
Definition at line 95 of file NekMeshUtils/Module/Module.h.
|
inline |
Re-interpret the value stored in value as some type using boost::lexical_cast.
Definition at line 103 of file NekMeshUtils/Module/Module.h.
References value.
|
inline |
Interpret the value stored in value as some type using boost::lexical_cast and return true of false depending on cast.
Definition at line 121 of file NekMeshUtils/Module/Module.h.
References value.
bool Nektar::NekMeshUtils::ConfigOption::beenSet |
True if the configuration option has been set at command line. If false, the default value will be put into value.
Definition at line 142 of file NekMeshUtils/Module/Module.h.
std::string Nektar::NekMeshUtils::ConfigOption::defValue |
Default value of the configuration option.
Definition at line 146 of file NekMeshUtils/Module/Module.h.
std::string Nektar::NekMeshUtils::ConfigOption::desc |
Description of the configuration option.
Definition at line 148 of file NekMeshUtils/Module/Module.h.
bool Nektar::NekMeshUtils::ConfigOption::isBool |
True if the configuration option is a boolean (thus does not need additional arguments).
Definition at line 139 of file NekMeshUtils/Module/Module.h.
std::string Nektar::NekMeshUtils::ConfigOption::value |
The value of the configuration option.
Definition at line 144 of file NekMeshUtils/Module/Module.h.
Referenced by CellMLToNektar.validator.ValidatorError::__str__(), as(), isType(), and CellMLToNektar.optimize.ExpressionMatcher.N::match().