|
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 () const |
| Re-interpret the value stored in #value as some type using boost::lexical_cast. More... | |
Public Attributes | |
| bool | m_isBool |
| True if the configuration option is a boolean (thus does not need additional arguments). More... | |
| bool | m_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 | m_value |
| The value of the configuration option. More... | |
| std::string | m_defValue |
| Default value of the configuration option. More... | |
| std::string | m_desc |
| Description of the configuration option. More... | |
|
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 142 of file Module.h.
|
inline |
|
inline |
Re-interpret the value stored in #value as some type using boost::lexical_cast.
Definition at line 157 of file Module.h.
References m_value, and CellMLToNektar.pycml::name.
| bool Nektar::FieldUtils::ConfigOption::m_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 177 of file Module.h.
Referenced by Nektar::FieldUtils::Module::RegisterConfig().
| std::string Nektar::FieldUtils::ConfigOption::m_defValue |
| std::string Nektar::FieldUtils::ConfigOption::m_desc |
| bool Nektar::FieldUtils::ConfigOption::m_isBool |
| std::string Nektar::FieldUtils::ConfigOption::m_value |
The value of the configuration option.
Definition at line 179 of file Module.h.
Referenced by as(), and Nektar::FieldUtils::Module::RegisterConfig().