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 QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
32 #include <queso/BoostInputOptionsParser.h>
33 #endif // QUESO_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 QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
61 namespace program_options {
62 class options_description;
85 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
125 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
138 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
143 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
145 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
155 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
168 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
177 friend std::ostream &
operator<<(std::ostream & os,
180 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
223 void print (std::ostream& os)
const;
227 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
234 #ifndef QUESO_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 QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
255 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
268 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
278 #endif // UQ_MOC_SG_OPTIONS_H
std::string m_option_qseq_dataInputFileName
std::string m_option_pseq_dataOutputFileName
std::string m_option_qseq_measureRunTimes
~MonteCarloSGOptions()
Destructor.
std::string m_option_pseq_computeStats
std::string m_pseqDataOutputFileType
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
Defines the options for the Monte Carlo sequence generator as the default options.
std::set< unsigned int > m_qseqDataOutputAllowedSet
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
std::string m_option_qseq_dataInputFileType
A templated class that stores statistical options (optionally read from an input file) ...
This class provides options for the Monte Carlo sequence generator if no input file is available...
std::string m_option_pseq_dataOutputFileType
std::string m_qseqDataOutputFileName
std::string m_option_qseq_dataOutputAllowedSet
SequenceStatisticalOptions * m_pseqStatisticalOptionsObj
std::ostream & operator<<(std::ostream &os, const SequenceStatisticalOptions &obj)
std::string m_dataOutputFileName
std::string m_qseqDataInputFileType
std::string m_option_dataOutputAllowedSet
std::string m_option_qseq_displayPeriod
unsigned int m_qseqDisplayPeriod
std::string m_option_pseq_dataOutputFileName
std::string m_option_dataOutputFileName
std::string m_option_qseq_dataOutputFileName
unsigned int m_qseqDataOutputPeriod
std::set< unsigned int > m_pseqDataOutputAllowedSet
void scanOptionsValues()
It scans the option values from the options input file.
BoostInputOptionsParser * m_parser
std::string m_option_qseq_measureRunTimes
std::string m_option_dataOutputAllowedSet
std::string m_option_pseq_dataOutputPeriod
McOptionsValues & operator=(const McOptionsValues &rhs)
Assignment operator; it copies rhs to this.
std::string m_option_qseq_dataOutputPeriod
std::string m_option_qseq_displayPeriod
McOptionsValues()
Default constructor.
std::string m_option_qseq_dataInputFileType
std::string m_option_pseq_computeStats
SsOptionsValues m_alternativeQSsOptionsValues
std::string m_option_pseq_dataOutputAllowedSet
std::string m_pseqDataOutputFileName
SsOptionsValues m_alternativePSsOptionsValues
std::string m_option_dataOutputFileName
std::string m_option_qseq_dataInputFileName
const BaseEnvironment & m_env
std::set< unsigned int > m_dataOutputAllowedSet
std::string m_option_qseq_size
std::string m_help
If non-empty string, print options and values to output file.
void print(std::ostream &os) const
It prints the option values.
std::string m_option_pseq_dataOutputPeriod
std::string m_option_help
std::string m_option_qseq_dataOutputFileType
std::string m_qseqDataInputFileName
std::string m_option_qseq_dataOutputPeriod
void copy(const McOptionsValues &src)
Copies the option values from src to this.
std::string m_option_help
std::string m_option_qseq_dataOutputFileType
boost::program_options::options_description * m_optionsDesc
unsigned int m_pseqDataOutputPeriod
SequenceStatisticalOptions * m_qseqStatisticalOptionsObj
std::string m_option_pseq_dataOutputFileType
std::string m_option_pseq_dataOutputAllowedSet
std::string m_option_qseq_size
bool m_qseqMeasureRunTimes
std::string m_option_qseq_dataOutputAllowedSet
MonteCarloSGOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
virtual ~McOptionsValues()
Destructor.
std::string m_option_qseq_computeStats
std::string m_qseqDataOutputFileType
std::string m_option_qseq_computeStats
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the sequence options.
friend std::ostream & operator<<(std::ostream &os, const McOptionsValues &obj)
std::string m_option_qseq_dataOutputFileName
This class reads the options for the Monte Carlo sequence generator from an input file...
A templated class that stores default statistical options for a sequence of vectors, e.g. a Markov chain, a Monte Carlo input sequence, or a Monte Carlo output sequence.