24 #include <queso/config_queso.h>
25 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
27 #ifndef UQ_BOOST_INPUT_OPTIONS_H
28 #define UQ_BOOST_INPUT_OPTIONS_H
31 #include <queso/ScopedPtr.h>
32 #include <queso/BaseInputOptionsParser.h>
36 namespace program_options
38 class options_description;
79 const T & defaultValue,
80 const std::string & description);
83 void registerOption(
const std::string & name,
const std::string & description);
87 void getOption(
const std::string & name, T & value)
const;
90 friend std::ostream &
operator<<(std::ostream & os,
108 #endif // UQ_BOOST_INPUT_OPTIONS_H
110 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
ScopedPtr< boost::program_options::options_description >::Type m_optionsDescription
BoostInputOptionsParser()
Default constructor that sets m_filename to "".
void getOption(const std::string &name, T &value) const
Get option name from the parser and set value to the parsed value.
virtual ~BoostInputOptionsParser()
Destructor.
void registerOption(const std::string &name, const T &defaultValue, const std::string &description)
Call this to register an option with the parser.
void scanInputFile()
This is the method that parses the input file.
ScopedPtr< boost::program_options::variables_map >::Type m_optionsMap
friend std::ostream & operator<<(std::ostream &os, const BoostInputOptionsParser &parser)
Helpful stream operator for printing the parser state.
const std::string m_filename