25 #ifndef UQ_MOC_SG_OPTIONS_H
26 #define UQ_MOC_SG_OPTIONS_H
28 #include <queso/Environment.h>
29 #include <queso/SequenceStatisticalOptions.h>
31 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
32 #include <queso/BoostInputOptionsParser.h>
33 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
35 #define UQ_MOC_SG_FILENAME_FOR_NO_FILE "."
38 #define UQ_MOC_SG_HELP ""
39 #define UQ_MOC_SG_DATA_OUTPUT_FILE_NAME_ODV UQ_MOC_SG_FILENAME_FOR_NO_FILE
40 #define UQ_MOC_SG_DATA_OUTPUT_ALLOWED_SET_ODV ""
42 #define UQ_MOC_SG_PSEQ_DATA_OUTPUT_PERIOD_ODV 0
43 #define UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_NAME_ODV UQ_MOC_SG_FILENAME_FOR_NO_FILE
44 #define UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
45 #define UQ_MOC_SG_PSEQ_DATA_OUTPUT_ALLOWED_SET_ODV ""
46 #define UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV 0
48 #define UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_NAME_ODV UQ_MOC_SG_FILENAME_FOR_NO_FILE
49 #define UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
50 #define UQ_MOC_SG_QSEQ_SIZE_ODV 100
51 #define UQ_MOC_SG_QSEQ_DISPLAY_PERIOD_ODV 500
52 #define UQ_MOC_SG_QSEQ_MEASURE_RUN_TIMES_ODV 0
53 #define UQ_MOC_SG_QSEQ_DATA_OUTPUT_PERIOD_ODV 0
54 #define UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_NAME_ODV UQ_MOC_SG_FILENAME_FOR_NO_FILE
55 #define UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
56 #define UQ_MOC_SG_QSEQ_DATA_OUTPUT_ALLOWED_SET_ODV ""
57 #define UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV 0
59 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
61 namespace program_options {
62 class options_description;
85 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
87 const SsOptionsValues* alternativeQSsOptionsValues);
89 const SsOptionsValues* alternativeQSsOptionsValues,
125 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
126 bool m_pseqComputeStats;
138 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
139 bool m_qseqComputeStats;
143 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
145 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
155 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
156 std::string m_option_pseq_computeStats;
168 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
169 std::string m_option_qseq_computeStats;
177 friend std::ostream &
operator<<(std::ostream & os,
180 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
182 SsOptionsValues m_alternativePSsOptionsValues;
183 SsOptionsValues m_alternativeQSsOptionsValues;
223 void print (std::ostream& os)
const;
227 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
228 SequenceStatisticalOptions* m_pseqStatisticalOptionsObj;
229 SequenceStatisticalOptions* m_qseqStatisticalOptionsObj;
234 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
235 void defineMyOptions (boost::program_options::options_description& optionsDesc)
const;
239 void getMyOptionValues(boost::program_options::options_description& optionsDesc);
243 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
255 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
256 std::string m_option_pseq_computeStats;
268 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
269 std::string m_option_qseq_computeStats;
278 #endif // UQ_MOC_SG_OPTIONS_H
std::string m_option_qseq_dataOutputFileName
std::string m_dataOutputFileName
std::string m_qseqDataInputFileName
unsigned int m_qseqDisplayPeriod
std::string m_option_qseq_dataInputFileType
virtual ~McOptionsValues()
Destructor.
std::set< unsigned int > m_dataOutputAllowedSet
std::string m_option_dataOutputFileName
std::string m_option_pseq_dataOutputAllowedSet
void scanOptionsValues()
It scans the option values from the options input file.
std::string m_option_qseq_dataOutputFileType
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::string m_option_qseq_dataOutputPeriod
std::string m_option_help
std::string m_option_pseq_dataOutputPeriod
McOptionsValues()
Default constructor.
std::string m_option_qseq_dataOutputFileName
std::string m_pseqDataOutputFileName
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
~MonteCarloSGOptions()
Destructor.
std::string m_option_qseq_displayPeriod
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
Defines the options for the Monte Carlo sequence generator as the default options.
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the sequence options.
void print(std::ostream &os) const
It prints the option values.
std::string m_option_pseq_dataOutputFileName
std::string m_option_pseq_dataOutputFileType
std::string m_qseqDataOutputFileName
std::string m_option_dataOutputAllowedSet
std::string m_option_qseq_dataOutputAllowedSet
std::string m_qseqDataOutputFileType
std::string m_option_pseq_dataOutputFileName
std::string m_option_pseq_dataOutputPeriod
std::string m_option_qseq_measureRunTimes
std::string m_qseqDataInputFileType
std::string m_option_qseq_dataInputFileName
std::set< unsigned int > m_qseqDataOutputAllowedSet
std::string m_option_qseq_size
bool m_qseqMeasureRunTimes
friend std::ostream & operator<<(std::ostream &os, const McOptionsValues &obj)
std::string m_option_help
std::string m_option_qseq_dataOutputAllowedSet
std::string m_option_dataOutputAllowedSet
std::string m_option_qseq_measureRunTimes
std::string m_option_qseq_dataInputFileName
std::string m_pseqDataOutputFileType
unsigned int m_qseqDataOutputPeriod
std::set< unsigned int > m_pseqDataOutputAllowedSet
std::string m_option_qseq_size
std::string m_option_qseq_dataOutputPeriod
void copy(const McOptionsValues &src)
Copies the option values from src to this.
std::string m_option_dataOutputFileName
std::string m_option_qseq_dataInputFileType
std::string m_option_qseq_dataOutputFileType
McOptionsValues & operator=(const McOptionsValues &rhs)
Assignment operator; it copies rhs to this.
unsigned int m_pseqDataOutputPeriod
boost::program_options::options_description * m_optionsDesc
std::string m_option_pseq_dataOutputAllowedSet
std::string m_option_pseq_dataOutputFileType
BoostInputOptionsParser * m_parser
std::string m_option_qseq_displayPeriod
This class reads the options for the Monte Carlo sequence generator from an input file...
const BaseEnvironment & m_env
This class provides options for the Monte Carlo sequence generator if no input file is available...
MonteCarloSGOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
std::string m_help
If non-empty string, print options and values to output file.