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

#include <SimulationModelOptions.h>

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

Public Member Functions

 SmOptionsValues ()
 
 SmOptionsValues (const BaseEnvironment *env, const char *prefix)
 
 SmOptionsValues (const SmOptionsValues &src)
 
SmOptionsValuesoperator= (const SmOptionsValues &rhs)
 
virtual ~SmOptionsValues ()
 

Public Attributes

std::string m_prefix
 
std::string m_dataOutputFileName
 
bool m_dataOutputAllowAll
 
std::set< unsigned int > m_dataOutputAllowedSet
 
unsigned int m_p_eta
 
double m_zeroRelativeSingularValue
 
double m_cdfThresholdForPEta
 
double m_a_w
 
double m_b_w
 
double m_a_rho_w
 
double m_b_rho_w
 
double m_a_eta
 
double m_b_eta
 
double m_a_s
 
double m_b_s
 

Private Member Functions

void copy (const SmOptionsValues &src)
 

Private Attributes

BoostInputOptionsParserm_parser
 
std::string m_option_help
 
std::string m_option_dataOutputFileName
 
std::string m_option_dataOutputAllowAll
 
std::string m_option_dataOutputAllowedSet
 
std::string m_option_p_eta
 
std::string m_option_zeroRelativeSingularValue
 
std::string m_option_cdfThresholdForPEta
 
std::string m_option_a_w
 
std::string m_option_b_w
 
std::string m_option_a_rho_w
 
std::string m_option_b_rho_w
 
std::string m_option_a_eta
 
std::string m_option_b_eta
 
std::string m_option_a_s
 
std::string m_option_b_s
 

Detailed Description

Definition at line 57 of file SimulationModelOptions.h.

Constructor & Destructor Documentation

QUESO::SmOptionsValues::SmOptionsValues ( )

Definition at line 32 of file SimulationModelOptions.C.

33  :
34  m_prefix("sm_"),
37  //m_dataOutputAllowedSet(),
49  m_parser(NULL),
50  m_option_help(m_prefix + "help"),
51  m_option_dataOutputFileName(m_prefix + "dataOutputFileName"),
52  m_option_dataOutputAllowAll(m_prefix + "dataOutputAllowAll"),
53  m_option_dataOutputAllowedSet(m_prefix + "dataOutputAllowedSet"),
54  m_option_p_eta(m_prefix + "p_eta"),
55  m_option_zeroRelativeSingularValue(m_prefix + "zeroRelativeSingularValue"),
56  m_option_cdfThresholdForPEta(m_prefix + "cdfThresholdForPEta"),
57  m_option_a_w(m_prefix + "a_w"),
58  m_option_b_w(m_prefix + "b_w"),
59  m_option_a_rho_w(m_prefix + "a_rho_w"),
60  m_option_b_rho_w(m_prefix + "b_rho_w"),
61  m_option_a_eta(m_prefix + "a_eta"),
62  m_option_b_eta(m_prefix + "b_eta"),
63  m_option_a_s(m_prefix + "a_s"),
64  m_option_b_s(m_prefix + "b_s")
65 {
66 }
#define UQ_SIMULATION_MODEL_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_SIMULATION_MODEL_P_ETA_ODV
#define UQ_SIMULATION_MODEL_B_ETA_ODV
#define UQ_SIMULATION_MODEL_B_S_ODV
std::string m_option_zeroRelativeSingularValue
#define UQ_SIMULATION_MODEL_A_RHO_W_ODV
BoostInputOptionsParser * m_parser
#define UQ_SIMULATION_MODEL_A_ETA_ODV
#define UQ_SIMULATION_MODEL_ZERO_RELATIVE_SINGULAR_VALUE_ODV
#define UQ_SIMULATION_MODEL_CDF_THRESHOLD_FOR_P_ETA_ODV
#define UQ_SIMULATION_MODEL_A_S_ODV
#define UQ_SIMULATION_MODEL_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_SIMULATION_MODEL_B_W_ODV
#define UQ_SIMULATION_MODEL_A_W_ODV
#define UQ_SIMULATION_MODEL_B_RHO_W_ODV
QUESO::SmOptionsValues::SmOptionsValues ( const BaseEnvironment env,
const char *  prefix 
)

Definition at line 68 of file SimulationModelOptions.C.

References QUESO::BoostInputOptionsParser::getOption(), m_a_eta, m_a_rho_w, m_a_s, m_a_w, m_b_eta, m_b_rho_w, m_b_s, m_b_w, m_cdfThresholdForPEta, m_dataOutputAllowAll, m_dataOutputAllowedSet, m_dataOutputFileName, m_option_a_eta, m_option_a_rho_w, m_option_a_s, m_option_a_w, m_option_b_eta, m_option_b_rho_w, m_option_b_s, m_option_b_w, m_option_cdfThresholdForPEta, m_option_dataOutputAllowAll, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_help, m_option_p_eta, m_option_zeroRelativeSingularValue, m_p_eta, m_parser, m_zeroRelativeSingularValue, QUESO::BoostInputOptionsParser::registerOption(), QUESO::BoostInputOptionsParser::scanInputFile(), UQ_SIMULATION_MODEL_A_ETA_ODV, UQ_SIMULATION_MODEL_A_RHO_W_ODV, UQ_SIMULATION_MODEL_A_S_ODV, UQ_SIMULATION_MODEL_A_W_ODV, UQ_SIMULATION_MODEL_B_ETA_ODV, UQ_SIMULATION_MODEL_B_RHO_W_ODV, UQ_SIMULATION_MODEL_B_S_ODV, UQ_SIMULATION_MODEL_B_W_ODV, UQ_SIMULATION_MODEL_CDF_THRESHOLD_FOR_P_ETA_ODV, UQ_SIMULATION_MODEL_DATA_OUTPUT_ALLOW_ALL_ODV, UQ_SIMULATION_MODEL_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_SIMULATION_MODEL_DATA_OUTPUT_FILE_NAME_ODV, UQ_SIMULATION_MODEL_P_ETA_ODV, and UQ_SIMULATION_MODEL_ZERO_RELATIVE_SINGULAR_VALUE_ODV.

70  :
71  m_prefix((std::string)(prefix) + "sm_"),
74  //m_dataOutputAllowedSet(),
86  m_parser(new BoostInputOptionsParser(env->optionsInputFileName())),
87  m_option_help(m_prefix + "help"),
88  m_option_dataOutputFileName(m_prefix + "dataOutputFileName"),
89  m_option_dataOutputAllowAll(m_prefix + "dataOutputAllowAll"),
90  m_option_dataOutputAllowedSet(m_prefix + "dataOutputAllowedSet"),
91  m_option_p_eta(m_prefix + "p_eta"),
92  m_option_zeroRelativeSingularValue(m_prefix + "zeroRelativeSingularValue"),
93  m_option_cdfThresholdForPEta(m_prefix + "cdfThresholdForPEta"),
94  m_option_a_w(m_prefix + "a_w"),
95  m_option_b_w(m_prefix + "b_w"),
96  m_option_a_rho_w(m_prefix + "a_rho_w"),
97  m_option_b_rho_w(m_prefix + "b_rho_w"),
98  m_option_a_eta(m_prefix + "a_eta"),
99  m_option_b_eta(m_prefix + "b_eta"),
100  m_option_a_s(m_prefix + "a_s"),
101  m_option_b_s(m_prefix + "b_s")
102 {
103  m_parser->registerOption(m_option_help, "produce help message for simulation model options");
106  m_parser->registerOption<std::string >(m_option_dataOutputAllowedSet, UQ_SIMULATION_MODEL_DATA_OUTPUT_ALLOWED_SET_ODV , "subEnvs that will write to data output file" );
118 
120 
124  m_parser->getOption<unsigned int>(m_option_p_eta, m_p_eta);
127  m_parser->getOption<double >(m_option_a_w, m_a_w);
128  m_parser->getOption<double >(m_option_b_w, m_b_w);
133  m_parser->getOption<double >(m_option_a_s, m_a_s);
134  m_parser->getOption<double >(m_option_b_s, m_b_s);
135 }
#define UQ_SIMULATION_MODEL_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_SIMULATION_MODEL_DATA_OUTPUT_ALLOWED_SET_ODV
#define UQ_SIMULATION_MODEL_P_ETA_ODV
#define UQ_SIMULATION_MODEL_B_ETA_ODV
#define UQ_SIMULATION_MODEL_B_S_ODV
std::set< unsigned int > m_dataOutputAllowedSet
std::string m_option_zeroRelativeSingularValue
#define UQ_SIMULATION_MODEL_A_RHO_W_ODV
BoostInputOptionsParser * m_parser
#define UQ_SIMULATION_MODEL_A_ETA_ODV
#define UQ_SIMULATION_MODEL_ZERO_RELATIVE_SINGULAR_VALUE_ODV
#define UQ_SIMULATION_MODEL_CDF_THRESHOLD_FOR_P_ETA_ODV
void scanInputFile()
This is the method that parses the input file.
#define UQ_SIMULATION_MODEL_A_S_ODV
#define UQ_SIMULATION_MODEL_DATA_OUTPUT_ALLOW_ALL_ODV
void registerOption(std::string name, T defaultValue, std::string description)
Call this to register an option with the parser.
#define UQ_SIMULATION_MODEL_B_W_ODV
#define UQ_SIMULATION_MODEL_A_W_ODV
#define UQ_SIMULATION_MODEL_B_RHO_W_ODV
void getOption(std::string &name, T &value)
Get option name from the parser and set value to the parsed value.
QUESO::SmOptionsValues::SmOptionsValues ( const SmOptionsValues src)

Definition at line 141 of file SimulationModelOptions.C.

References copy().

142 {
143  this->copy(src);
144 }
void copy(const SmOptionsValues &src)
QUESO::SmOptionsValues::~SmOptionsValues ( )
virtual

Definition at line 137 of file SimulationModelOptions.C.

138 {
139 }

Member Function Documentation

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

Definition at line 255 of file SimulationModelOptions.C.

References m_a_eta, m_a_rho_w, m_a_s, m_a_w, m_b_eta, m_b_rho_w, m_b_s, m_b_w, m_cdfThresholdForPEta, m_dataOutputAllowAll, m_dataOutputAllowedSet, m_dataOutputFileName, m_p_eta, and m_zeroRelativeSingularValue.

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

256 {
257  m_dataOutputFileName = src.m_dataOutputFileName;
258  m_dataOutputAllowAll = src.m_dataOutputAllowAll;
259  m_dataOutputAllowedSet = src.m_dataOutputAllowedSet;
260  m_p_eta = src.m_p_eta;
261  m_zeroRelativeSingularValue = src.m_zeroRelativeSingularValue;
262  m_cdfThresholdForPEta = src.m_cdfThresholdForPEta;
263  m_a_w = src.m_a_w;
264  m_b_w = src.m_b_w;
265  m_a_rho_w = src.m_a_rho_w;
266  m_b_rho_w = src.m_b_rho_w;
267  m_a_eta = src.m_a_eta;
268  m_b_eta = src.m_b_eta;
269  m_a_s = src.m_a_s;
270  m_b_s = src.m_b_s;
271 
272  return;
273 }
std::set< unsigned int > m_dataOutputAllowedSet
SmOptionsValues & QUESO::SmOptionsValues::operator= ( const SmOptionsValues rhs)

Definition at line 147 of file SimulationModelOptions.C.

References copy().

148 {
149  this->copy(rhs);
150  return *this;
151 }
void copy(const SmOptionsValues &src)

Member Data Documentation

double QUESO::SmOptionsValues::m_a_eta
double QUESO::SmOptionsValues::m_a_rho_w
double QUESO::SmOptionsValues::m_a_s
double QUESO::SmOptionsValues::m_a_w
double QUESO::SmOptionsValues::m_b_eta
double QUESO::SmOptionsValues::m_b_rho_w
double QUESO::SmOptionsValues::m_b_s
double QUESO::SmOptionsValues::m_b_w
double QUESO::SmOptionsValues::m_cdfThresholdForPEta
bool QUESO::SmOptionsValues::m_dataOutputAllowAll
std::set<unsigned int> QUESO::SmOptionsValues::m_dataOutputAllowedSet
std::string QUESO::SmOptionsValues::m_dataOutputFileName
std::string QUESO::SmOptionsValues::m_option_a_eta
private

Definition at line 97 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_a_rho_w
private

Definition at line 95 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_a_s
private

Definition at line 99 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_a_w
private

Definition at line 93 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_b_eta
private

Definition at line 98 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_b_rho_w
private

Definition at line 96 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_b_s
private

Definition at line 100 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_b_w
private

Definition at line 94 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_cdfThresholdForPEta
private

Definition at line 92 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_dataOutputAllowAll
private

Definition at line 88 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_dataOutputAllowedSet
private

Definition at line 89 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_dataOutputFileName
private

Definition at line 87 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_help
private

Definition at line 86 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_p_eta
private

Definition at line 90 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_option_zeroRelativeSingularValue
private

Definition at line 91 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

unsigned int QUESO::SmOptionsValues::m_p_eta
BoostInputOptionsParser* QUESO::SmOptionsValues::m_parser
private

Definition at line 84 of file SimulationModelOptions.h.

Referenced by SmOptionsValues().

std::string QUESO::SmOptionsValues::m_prefix
double QUESO::SmOptionsValues::m_zeroRelativeSingularValue

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

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