queso-0.53.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
QUESO::EmOptionsValues Class Reference

#include <ExperimentModelOptions.h>

Collaboration diagram for QUESO::EmOptionsValues:
Collaboration graph
[legend]

Public Member Functions

 EmOptionsValues ()
 
 EmOptionsValues (const BaseEnvironment *env, const char *prefix)
 
 EmOptionsValues (const EmOptionsValues &src)
 
EmOptionsValuesoperator= (const EmOptionsValues &rhs)
 
virtual ~EmOptionsValues ()
 

Public Attributes

std::string m_prefix
 
std::vector< unsigned int > m_Gvalues
 
double m_a_v
 
double m_b_v
 
double m_a_rho_v
 
double m_b_rho_v
 
double m_a_y
 
double m_b_y
 

Private Member Functions

void copy (const EmOptionsValues &src)
 

Private Attributes

BoostInputOptionsParserm_parser
 
std::string m_option_help
 
std::string m_option_Gvalues
 
std::string m_option_a_v
 
std::string m_option_b_v
 
std::string m_option_a_rho_v
 
std::string m_option_b_rho_v
 
std::string m_option_a_y
 
std::string m_option_b_y
 

Detailed Description

Definition at line 48 of file ExperimentModelOptions.h.

Constructor & Destructor Documentation

QUESO::EmOptionsValues::EmOptionsValues ( )

Definition at line 32 of file ExperimentModelOptions.C.

33  :
34  m_prefix("em_"),
35  m_Gvalues(0),
42  m_parser(NULL),
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")
51 {
52 }
#define UQ_EXPERIMENT_MODEL_A_RHO_V_ODV
#define UQ_EXPERIMENT_MODEL_B_Y_ODV
#define UQ_EXPERIMENT_MODEL_B_RHO_V_ODV
#define UQ_EXPERIMENT_MODEL_A_Y_ODV
BoostInputOptionsParser * m_parser
#define UQ_EXPERIMENT_MODEL_B_V_ODV
std::vector< unsigned int > m_Gvalues
#define UQ_EXPERIMENT_MODEL_A_V_ODV
QUESO::EmOptionsValues::EmOptionsValues ( const BaseEnvironment env,
const char *  prefix 
)

Definition at line 54 of file ExperimentModelOptions.C.

References QUESO::BoostInputOptionsParser::getOption(), m_a_rho_v, m_a_v, m_a_y, m_b_rho_v, m_b_v, m_b_y, m_Gvalues, m_option_a_rho_v, m_option_a_v, m_option_a_y, m_option_b_rho_v, m_option_b_v, m_option_b_y, m_option_Gvalues, m_option_help, m_parser, QUESO::BoostInputOptionsParser::registerOption(), QUESO::BoostInputOptionsParser::scanInputFile(), UQ_EXPERIMENT_MODEL_A_RHO_V_ODV, UQ_EXPERIMENT_MODEL_A_V_ODV, UQ_EXPERIMENT_MODEL_A_Y_ODV, UQ_EXPERIMENT_MODEL_B_RHO_V_ODV, UQ_EXPERIMENT_MODEL_B_V_ODV, UQ_EXPERIMENT_MODEL_B_Y_ODV, and UQ_EXPERIMENT_MODEL_G_VALUES_ODV.

56  :
57  m_prefix((std::string)(prefix) + "em_"),
58  m_Gvalues(0),
65  m_parser(new BoostInputOptionsParser(env->optionsInputFileName())),
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")
74 {
75  m_parser->registerOption(m_option_help, "produce help message for experiment model options");
83 
85 
86  m_parser->getOption<std::vector<unsigned int> >(m_option_Gvalues, m_Gvalues);
93 }
#define UQ_EXPERIMENT_MODEL_A_RHO_V_ODV
void scanInputFile()
This is the method that parses the input file.
#define UQ_EXPERIMENT_MODEL_B_Y_ODV
void registerOption(std::string name, T defaultValue, std::string description)
Call this to register an option with the parser.
#define UQ_EXPERIMENT_MODEL_B_RHO_V_ODV
#define UQ_EXPERIMENT_MODEL_A_Y_ODV
BoostInputOptionsParser * m_parser
#define UQ_EXPERIMENT_MODEL_G_VALUES_ODV
void getOption(std::string &name, T &value)
Get option name from the parser and set value to the parsed value.
#define UQ_EXPERIMENT_MODEL_B_V_ODV
std::vector< unsigned int > m_Gvalues
#define UQ_EXPERIMENT_MODEL_A_V_ODV
QUESO::EmOptionsValues::EmOptionsValues ( const EmOptionsValues src)

Definition at line 99 of file ExperimentModelOptions.C.

References copy().

100 {
101  this->copy(src);
102 }
void copy(const EmOptionsValues &src)
QUESO::EmOptionsValues::~EmOptionsValues ( )
virtual

Definition at line 95 of file ExperimentModelOptions.C.

96 {
97 }

Member Function Documentation

void QUESO::EmOptionsValues::copy ( const EmOptionsValues src)
private

Definition at line 181 of file ExperimentModelOptions.C.

References m_a_rho_v, m_a_v, m_a_y, m_b_rho_v, m_b_v, m_b_y, and m_Gvalues.

Referenced by EmOptionsValues(), and operator=().

182 {
183  m_Gvalues = src.m_Gvalues;
184  m_a_v = src.m_a_v;
185  m_b_v = src.m_b_v;
186  m_a_rho_v = src.m_a_rho_v;
187  m_b_rho_v = src.m_b_rho_v;
188  m_a_y = src.m_a_y;
189  m_b_y = src.m_b_y;
190 
191  return;
192 }
std::vector< unsigned int > m_Gvalues
EmOptionsValues & QUESO::EmOptionsValues::operator= ( const EmOptionsValues rhs)

Definition at line 105 of file ExperimentModelOptions.C.

References copy().

106 {
107  this->copy(rhs);
108  return *this;
109 }
void copy(const EmOptionsValues &src)

Member Data Documentation

double QUESO::EmOptionsValues::m_a_rho_v
double QUESO::EmOptionsValues::m_a_v
double QUESO::EmOptionsValues::m_a_y
double QUESO::EmOptionsValues::m_b_rho_v
double QUESO::EmOptionsValues::m_b_v
double QUESO::EmOptionsValues::m_b_y
std::vector<unsigned int> QUESO::EmOptionsValues::m_Gvalues
std::string QUESO::EmOptionsValues::m_option_a_rho_v
private

Definition at line 74 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

std::string QUESO::EmOptionsValues::m_option_a_v
private

Definition at line 72 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

std::string QUESO::EmOptionsValues::m_option_a_y
private

Definition at line 76 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

std::string QUESO::EmOptionsValues::m_option_b_rho_v
private

Definition at line 75 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

std::string QUESO::EmOptionsValues::m_option_b_v
private

Definition at line 73 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

std::string QUESO::EmOptionsValues::m_option_b_y
private

Definition at line 77 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

std::string QUESO::EmOptionsValues::m_option_Gvalues
private

Definition at line 71 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

std::string QUESO::EmOptionsValues::m_option_help
private

Definition at line 70 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

BoostInputOptionsParser* QUESO::EmOptionsValues::m_parser
private

Definition at line 68 of file ExperimentModelOptions.h.

Referenced by EmOptionsValues().

std::string QUESO::EmOptionsValues::m_prefix

The documentation for this class was generated from the following files:

Generated on Thu Jun 11 2015 13:52:34 for queso-0.53.0 by  doxygen 1.8.5