queso-0.53.0
ExperimentModelOptions.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008-2015 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef UQ_EXPERIMENT_MODEL_OPTIONS_H
26 #define UQ_EXPERIMENT_MODEL_OPTIONS_H
27 
28 #include <queso/Environment.h>
29 #include <queso/BoostInputOptionsParser.h>
30 
31 // _ODV = option default value
32 #define UQ_EXPERIMENT_MODEL_G_VALUES_ODV ""
33 #define UQ_EXPERIMENT_MODEL_A_V_ODV 0.
34 #define UQ_EXPERIMENT_MODEL_B_V_ODV 0.
35 #define UQ_EXPERIMENT_MODEL_A_RHO_V_ODV 0.
36 #define UQ_EXPERIMENT_MODEL_B_RHO_V_ODV 0.
37 #define UQ_EXPERIMENT_MODEL_A_Y_ODV 0.
38 #define UQ_EXPERIMENT_MODEL_B_Y_ODV 0.
39 
40 namespace boost {
41  namespace program_options {
42  class options_description;
43  }
44 }
45 
46 namespace QUESO {
47 
49 {
50 public:
52  EmOptionsValues(const BaseEnvironment * env, const char * prefix);
53  EmOptionsValues(const EmOptionsValues& src);
55  virtual ~EmOptionsValues();
56 
57  std::string m_prefix;
58 
59  std::vector<unsigned int> m_Gvalues;
60  double m_a_v;
61  double m_b_v;
62  double m_a_rho_v;
63  double m_b_rho_v;
64  double m_a_y;
65  double m_b_y;
66 
67 private:
69 
70  std::string m_option_help;
71  std::string m_option_Gvalues;
72  std::string m_option_a_v;
73  std::string m_option_b_v;
74  std::string m_option_a_rho_v;
75  std::string m_option_b_rho_v;
76  std::string m_option_a_y;
77  std::string m_option_b_y;
78 
79  void copy(const EmOptionsValues& src);
80 };
81 
83 {
84 public:
85  ExperimentModelOptions(const BaseEnvironment& env, const char* prefix);
86  ExperimentModelOptions(const BaseEnvironment& env, const char* prefix, const EmOptionsValues& alternativeOptionsValues);
88 
89  void scanOptionsValues();
90  void print (std::ostream& os) const;
91 
93  std::string m_prefix;
94 
95 private:
96  void defineMyOptions (boost::program_options::options_description& optionsDesc) const;
97  void getMyOptionValues(boost::program_options::options_description& optionsDesc);
98 
100 
101  boost::program_options::options_description* m_optionsDesc;
102  std::string m_option_help;
103  std::string m_option_Gvalues;
104  std::string m_option_a_v;
105  std::string m_option_b_v;
106  std::string m_option_a_rho_v;
107  std::string m_option_b_rho_v;
108  std::string m_option_a_y;
109  std::string m_option_b_y;
110 };
111 
112 std::ostream& operator<<(std::ostream& os, const ExperimentModelOptions& obj);
113 
114 } // End namespace QUESO
115 
116 #endif // UQ_EXPERIMENT_MODEL_OPTIONS_H
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
ExperimentModelOptions(const BaseEnvironment &env, const char *prefix)
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
boost::program_options::options_description * m_optionsDesc
void copy(const EmOptionsValues &src)
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:193
BoostInputOptionsParser * m_parser
void print(std::ostream &os) const
std::vector< unsigned int > m_Gvalues
EmOptionsValues & operator=(const EmOptionsValues &rhs)

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