queso-0.51.1
EnvironmentOptions.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,2009,2010,2011,2012,2013 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_ENVIRONMENT_OPTIONS_H
26 #define UQ_ENVIRONMENT_OPTIONS_H
27 
28 #include <queso/Environment.h>
29 
30 #define UQ_ENV_FILENAME_FOR_NO_OUTPUT_FILE "."
31 #define UQ_ENV_FILENAME_FOR_NO_INPUT_FILE "."
32 
33 #define UQ_ENV_NUM_SUB_ENVIRONMENTS_ODV 1
34 #define UQ_ENV_SUB_SCREEN_WRITE_ODV 0
35 #define UQ_ENV_SUB_DISPLAY_FILE_NAME_ODV UQ_ENV_FILENAME_FOR_NO_OUTPUT_FILE
36 #define UQ_ENV_SUB_DISPLAY_ALLOW_ALL_ODV 0
37 #define UQ_ENV_SUB_DISPLAY_ALLOW_INTER0_ODV 0
38 #define UQ_ENV_SUB_DISPLAY_ALLOWED_SET_ODV ""
39 #define UQ_ENV_DISPLAY_VERBOSITY_ODV 0
40 #define UQ_ENV_SYNC_VERBOSITY_ODV 0
41 #define UQ_ENV_CHECKING_LEVEL_ODV 0
42 #define UQ_ENV_RNG_TYPE_ODV "gsl"
43 #define UQ_ENV_SEED_ODV 0
44 #define UQ_ENV_IDENTIFYING_STRING_ODV ""
45 #define UQ_ENV_PLATFORM_NAME_ODV ""
46 #define UQ_ENV_NUM_DEBUG_PARAMS_ODV 0
47 #define UQ_ENV_DEBUG_PARAM_ODV 0.
48 
49 namespace QUESO {
50 
62 {
63 public:
65 
66 
68  EnvironmentOptions(const BaseEnvironment& env, const char* prefix);
69 
71  EnvironmentOptions(const BaseEnvironment& env, const char* prefix, const EnvOptionsValues& alternativeOptionsValues);
72 
76 
78 
79  void scanOptionsValues();
81 
83  void print (std::ostream& os) const;
85 
86 
89 
90 private:
92  void defineMyOptions (po::options_description& optionsDesc) const;
93 
95  void getMyOptionValues(po::options_description& optionsDesc);
96 
99 
101  std::string m_prefix;
102 
104 
107  po::options_description* m_optionsDesc;
108 
109  std::string m_option_help;
110 
113 
116 
119 
122 
125 
128 
131 
134 
136  std::string m_option_rngType;
137 
139 
141  std::string m_option_seed;
142 
145 
148 };
149 
151 std::ostream& operator<<(std::ostream& os, const EnvironmentOptions& obj);
152 
153 } // End namespace QUESO
154 
155 #endif // UQ_ENVIRONMENT_CLASS_H
void scanOptionsValues()
Scans option values from input file.
void print(std::ostream &os) const
Print values of the options chosen.
std::string m_option_rngType
Type of the random number generator.
void defineMyOptions(po::options_description &optionsDesc) const
Define my environment options as the default options.
const BaseEnvironment & m_env
Environment.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:187
std::string m_option_subDisplayAllowedSet
Sub-environments that will write to output.
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::string m_prefix
Options prefix.
po::options_description * m_optionsDesc
Environment options description.
std::string m_option_numSubEnvironments
My number of sub-environments.
std::string m_option_checkingLevel
Checking level.
std::string m_option_platformName
Platform name.
std::string m_option_identifyingString
Identifying string.
EnvironmentOptions(const BaseEnvironment &env, const char *prefix)
Default constructor.
std::string m_option_subDisplayFileName
My output filename for sub-screen writing.
std::string m_option_displayVerbosity
Verbosity.
std::string m_option_subDisplayAllowInter0
Allows (or not) all inter0 nodes to write to output file.
std::string m_option_subDisplayAllowAll
Allows (or not) all sub-environments to write to output file.
This class provides a suite options one can pass to a QUESO environment.
Definition: Defines.h:105
void getMyOptionValues(po::options_description &optionsDesc)
Gets the option values of the environment.
std::string m_option_seed
Seed of the random number generator.
std::string m_option_syncVerbosity
Synchronized verbosity.
This class reads options one can pass to a QUESO environment through an input file.
EnvOptionsValues m_ov
Instance of EnvOptionsValues, a class with default values for QUESO environment.

Generated on Thu Apr 23 2015 19:26:15 for queso-0.51.1 by  doxygen 1.8.5