OpenM++ runtime library (libopenm)
|
public interface to initialize model run and input parameters More...
#include <omModel.h>
Public Member Functions | |
virtual int | parameterIdByName (const char *i_name) const =0 |
return id of parameter by name More... | |
virtual int | parameterSubCount (int i_paramId) const =0 |
number of parameter sub-values More... | |
virtual int | parameterSelfSubCount (int i_paramId) const =0 |
number of parameter sub-values for current process More... | |
virtual int | parameterSubValueIndex (int i_paramId, int i_subId) const =0 |
return index of parameter sub-value in the storage array of sub-values More... | |
virtual bool | isUseSubValue (int i_subId) const =0 |
return true if sub-value used by current process More... | |
virtual void | readParameter (const char *i_name, int i_subId, const std::type_info &i_type, size_t i_size, void *io_valueArr)=0 |
read model parameter | |
Public Member Functions inherited from openm::IRunOptions | |
virtual bool | isOptionExist (const char *i_key) const noexcept=0 |
return true if run option found by i_key in run_option table for the current run id. More... | |
virtual std::string | strOption (const char *i_key, const std::string &i_default="") const noexcept=0 |
return string value of run option by i_key or default value if not found. | |
virtual bool | boolOption (const char *i_key) const noexcept=0 |
return boolean value of run option by i_key or false if not found or value is not "yes", "1", "true" or empty "" string. More... | |
virtual int | boolOptionToInt (const char *i_key) const noexcept=0 |
search for boolean value of run option by i_key and return one of: return 1 if key found and value is one of: "yes", "1", "true" or empty value, return 0 if key found and value is one of: "no", "0", "false", return -1 if key not found, return -2 otherwise. More... | |
virtual int | intOption (const char *i_key, int i_default) const noexcept=0 |
return int value of run option by i_key or default if not found or can not be converted to int. More... | |
virtual long long | longOption (const char *i_key, long long i_default) const noexcept=0 |
return long value of run option by i_key or default if not found or can not be converted to long. More... | |
virtual double | doubleOption (const char *i_key, double i_default) const noexcept=0 |
return double value of run option by i_key or default if not found or can not be converted to double. More... | |
virtual std::vector< std::pair< std::string, std::string > > | allOptions (void) const noexcept=0 |
return a copy of all run options as [key, value] pairs, ordered by key. More... | |
public interface to initialize model run and input parameters
|
pure virtual |
return true if sub-value used by current process
Implemented in openm::RunController.
|
pure virtual |
return id of parameter by name
Implemented in openm::RunController.
|
pure virtual |
number of parameter sub-values for current process
Implemented in openm::RunController.
|
pure virtual |
number of parameter sub-values
Implemented in openm::RunController.
|
pure virtual |
return index of parameter sub-value in the storage array of sub-values
Implemented in openm::RunController.