25 #ifndef UQ_MOC_SG_OPTIONS_H
26 #define UQ_MOC_SG_OPTIONS_H
28 #include <queso/Environment.h>
29 #include <queso/SequenceStatisticalOptions.h>
30 #include <queso/BoostInputOptionsParser.h>
32 #define UQ_MOC_SG_FILENAME_FOR_NO_FILE "."
35 #define UQ_MOC_SG_HELP ""
36 #define UQ_MOC_SG_DATA_OUTPUT_FILE_NAME_ODV UQ_MOC_SG_FILENAME_FOR_NO_FILE
37 #define UQ_MOC_SG_DATA_OUTPUT_ALLOWED_SET_ODV ""
39 #define UQ_MOC_SG_PSEQ_DATA_OUTPUT_PERIOD_ODV 0
40 #define UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_NAME_ODV UQ_MOC_SG_FILENAME_FOR_NO_FILE
41 #define UQ_MOC_SG_PSEQ_DATA_OUTPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
42 #define UQ_MOC_SG_PSEQ_DATA_OUTPUT_ALLOWED_SET_ODV ""
43 #define UQ_MOC_SG_PSEQ_COMPUTE_STATS_ODV 0
45 #define UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_NAME_ODV UQ_MOC_SG_FILENAME_FOR_NO_FILE
46 #define UQ_MOC_SG_QSEQ_DATA_INPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
47 #define UQ_MOC_SG_QSEQ_SIZE_ODV 100
48 #define UQ_MOC_SG_QSEQ_DISPLAY_PERIOD_ODV 500
49 #define UQ_MOC_SG_QSEQ_MEASURE_RUN_TIMES_ODV 0
50 #define UQ_MOC_SG_QSEQ_DATA_OUTPUT_PERIOD_ODV 0
51 #define UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_NAME_ODV UQ_MOC_SG_FILENAME_FOR_NO_FILE
52 #define UQ_MOC_SG_QSEQ_DATA_OUTPUT_FILE_TYPE_ODV UQ_FILE_EXTENSION_FOR_MATLAB_FORMAT
53 #define UQ_MOC_SG_QSEQ_DATA_OUTPUT_ALLOWED_SET_ODV ""
54 #define UQ_MOC_SG_QSEQ_COMPUTE_STATS_ODV 0
57 namespace program_options {
58 class options_description;
80 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
82 const SsOptionsValues* alternativeQSsOptionsValues);
84 const SsOptionsValues* alternativeQSsOptionsValues,
120 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
121 bool m_pseqComputeStats;
133 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
134 bool m_qseqComputeStats;
148 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
149 std::string m_option_pseq_computeStats;
161 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
162 std::string m_option_qseq_computeStats;
170 friend std::ostream &
operator<<(std::ostream & os,
173 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
175 SsOptionsValues m_alternativePSsOptionsValues;
176 SsOptionsValues m_alternativeQSsOptionsValues;
216 void print (std::ostream& os)
const;
220 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
221 SequenceStatisticalOptions* m_pseqStatisticalOptionsObj;
222 SequenceStatisticalOptions* m_qseqStatisticalOptionsObj;
228 void defineMyOptions (boost::program_options::options_description& optionsDesc)
const;
231 void getMyOptionValues(boost::program_options::options_description& optionsDesc);
244 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
245 std::string m_option_pseq_computeStats;
257 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
258 std::string m_option_qseq_computeStats;
267 #endif // UQ_MOC_SG_OPTIONS_H
std::string m_option_qseq_dataInputFileName
std::string m_option_qseq_size
std::string m_option_dataOutputFileName
std::string m_option_qseq_dataOutputFileType
std::string m_option_qseq_dataOutputAllowedSet
void scanOptionsValues()
It scans the option values from the options input file.
std::string m_option_pseq_dataOutputFileType
BoostInputOptionsParser * m_parser
std::string m_qseqDataOutputFileType
std::string m_option_help
std::string m_option_pseq_dataOutputFileType
std::string m_option_qseq_dataOutputFileName
std::string m_option_qseq_dataOutputFileName
std::string m_option_qseq_displayPeriod
std::string m_option_pseq_dataOutputFileName
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::string m_option_dataOutputAllowedSet
std::string m_dataOutputFileName
unsigned int m_qseqDataOutputPeriod
std::string m_option_help
std::set< unsigned int > m_pseqDataOutputAllowedSet
std::string m_option_dataOutputAllowedSet
std::string m_option_qseq_dataOutputPeriod
std::string m_option_dataOutputFileName
This class provides options for the Monte Carlo sequence generator if no input file is available...
std::string m_pseqDataOutputFileName
std::string m_option_pseq_dataOutputPeriod
void print(std::ostream &os) const
It prints the option values.
std::string m_option_qseq_dataOutputPeriod
void copy(const McOptionsValues &src)
Copies the option values from src to this.
McOptionsValues()
Default constructor.
std::string m_option_pseq_dataOutputFileName
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
boost::program_options::options_description * m_optionsDesc
McOptionsValues & operator=(const McOptionsValues &rhs)
Assignment operator; it copies rhs to this.
const BaseEnvironment & m_env
std::string m_qseqDataOutputFileName
unsigned int m_pseqDataOutputPeriod
unsigned int m_qseqDisplayPeriod
~MonteCarloSGOptions()
Destructor.
std::string m_option_qseq_displayPeriod
std::string m_help
If non-empty string, print options and values to output file.
This class reads the options for the Monte Carlo sequence generator from an input file...
std::string m_qseqDataInputFileName
std::string m_option_qseq_dataInputFileType
std::string m_option_qseq_dataInputFileType
std::string m_option_qseq_measureRunTimes
std::string m_option_qseq_dataOutputAllowedSet
virtual ~McOptionsValues()
Destructor.
std::set< unsigned int > m_dataOutputAllowedSet
std::string m_option_pseq_dataOutputPeriod
std::string m_option_pseq_dataOutputAllowedSet
std::set< unsigned int > m_qseqDataOutputAllowedSet
std::string m_option_qseq_dataOutputFileType
std::string m_qseqDataInputFileType
std::string m_option_qseq_measureRunTimes
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.
MonteCarloSGOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
std::string m_option_qseq_dataInputFileName
std::string m_pseqDataOutputFileType
std::string m_option_pseq_dataOutputAllowedSet
bool m_qseqMeasureRunTimes
friend std::ostream & operator<<(std::ostream &os, const McOptionsValues &obj)
std::string m_option_qseq_size