25 #include <boost/program_options.hpp>
27 #include <queso/ExperimentModelOptions.h>
28 #include <queso/Miscellaneous.h>
43 m_option_help(m_prefix +
"help"),
44 m_option_Gvalues(m_prefix +
"Gvalues"),
45 m_option_a_v(m_prefix +
"a_v"),
46 m_option_b_v(m_prefix +
"b_v"),
47 m_option_a_rho_v(m_prefix +
"a_rho_v"),
48 m_option_b_rho_v(m_prefix +
"b_rho_v"),
49 m_option_a_y(m_prefix +
"a_y"),
50 m_option_b_y(m_prefix +
"b_y")
57 m_prefix((std::string)(prefix) +
"em_"),
66 m_option_help(m_prefix +
"help"),
67 m_option_Gvalues(m_prefix +
"Gvalues"),
68 m_option_a_v(m_prefix +
"a_v"),
69 m_option_b_v(m_prefix +
"b_v"),
70 m_option_a_rho_v(m_prefix +
"a_rho_v"),
71 m_option_b_rho_v(m_prefix +
"b_rho_v"),
72 m_option_a_y(m_prefix +
"a_y"),
73 m_option_b_y(m_prefix +
"b_y")
199 m_prefix ((std::string)(prefix) +
"em_"),
201 m_optionsDesc (new boost::program_options::options_description(
"Experiment model options")),
202 m_option_help (m_prefix +
"help" ),
203 m_option_Gvalues(m_prefix +
"Gvalues"),
204 m_option_a_v (m_prefix +
"a_v" ),
205 m_option_b_v (m_prefix +
"b_v" ),
206 m_option_a_rho_v(m_prefix +
"a_rho_v"),
207 m_option_b_rho_v(m_prefix +
"b_rho_v"),
208 m_option_a_y (m_prefix +
"a_y" ),
209 m_option_b_y (m_prefix +
"b_y" )
221 m_ov (alternativeOptionsValues),
222 m_prefix ((std::string)(prefix) +
"em_"),
224 m_optionsDesc (NULL),
225 m_option_help (m_prefix +
"help" ),
226 m_option_Gvalues(m_prefix +
"Gvalues"),
227 m_option_a_v (m_prefix +
"a_v" ),
228 m_option_b_v (m_prefix +
"b_v" ),
229 m_option_a_rho_v(m_prefix +
"a_rho_v"),
230 m_option_b_rho_v(m_prefix +
"b_rho_v"),
231 m_option_a_y (m_prefix +
"a_y" ),
232 m_option_b_y (m_prefix +
"b_y" )
240 <<
": after setting values of options with prefix '" <<
m_prefix
241 <<
"', state of object is:"
267 <<
": after reading values of options with prefix '" <<
m_prefix
268 <<
"', state of object is:"
281 optionsDesc.add_options()
282 (
m_option_help.c_str(),
"produce help message for experiment model options")
307 std::vector<double> tmpValues(0,0.);
318 unsigned int tmpSize = tmpValues.size();
321 for (
unsigned int i = 0; i < tmpSize; ++i) {
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
std::string m_option_a_rho_v
void scanInputFileForMyOptions(const boost::program_options::options_description &optionsDesc) const
This method scans the input file provided by the user to QUESO.
ExperimentModelOptions(const BaseEnvironment &env, const char *prefix)
#define queso_require_not_equal_to_msg(expr1, expr2, msg)
std::string m_option_b_rho_v
#define UQ_EXPERIMENT_MODEL_A_RHO_V_ODV
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
boost::program_options::variables_map & allOptionsMap() const
std::string m_option_help
#define queso_require_equal_to_msg(expr1, expr2, msg)
std::string m_option_Gvalues
std::string optionsInputFileName() const
Access to the attribute m_optionsInputFileName, which stores the name of the input file passed by the...
void scanInputFile()
This is the method that parses the input file.
~ExperimentModelOptions()
virtual ~EmOptionsValues()
#define UQ_EXPERIMENT_MODEL_B_Y_ODV
#define queso_require_msg(asserted, msg)
boost::program_options::options_description * m_optionsDesc
void copy(const EmOptionsValues &src)
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
std::string m_option_help
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
const BaseEnvironment & m_env
void registerOption(std::string name, T defaultValue, std::string description)
Call this to register an option with the parser.
std::string m_option_a_rho_v
void MiscReadDoublesFromString(const std::string &inputString, std::vector< double > &outputDoubles)
#define UQ_EXPERIMENT_MODEL_B_RHO_V_ODV
#define queso_deprecated()
std::string m_option_Gvalues
#define UQ_EXPERIMENT_MODEL_A_Y_ODV
BoostInputOptionsParser * m_parser
#define UQ_EXPERIMENT_MODEL_G_VALUES_ODV
void print(std::ostream &os) const
void getOption(std::string &name, T &value)
Get option name from the parser and set value to the parsed value.
std::string m_option_b_rho_v
#define UQ_EXPERIMENT_MODEL_B_V_ODV
std::vector< unsigned int > m_Gvalues
#define UQ_EXPERIMENT_MODEL_A_V_ODV
EmOptionsValues & operator=(const EmOptionsValues &rhs)