24 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
26 #ifndef UQ_BOOST_INPUT_OPTIONS_H
27 #define UQ_BOOST_INPUT_OPTIONS_H
30 #include <queso/ScopedPtr.h>
31 #include <queso/BaseInputOptionsParser.h>
35 namespace program_options
37 class options_description;
78 const T & defaultValue,
79 const std::string & description);
82 void registerOption(
const std::string & name,
const std::string & description);
86 void getOption(
const std::string & name, T & value)
const;
89 friend std::ostream &
operator<<(std::ostream & os,
107 #endif // UQ_BOOST_INPUT_OPTIONS_H
109 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
ScopedPtr< boost::program_options::options_description >::Type m_optionsDescription
void getOption(const std::string &name, T &value) const
Get option name from the parser and set value to the parsed value.
friend std::ostream & operator<<(std::ostream &os, const BoostInputOptionsParser &parser)
Helpful stream operator for printing the parser state.
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.
ScopedPtr< boost::program_options::variables_map >::Type m_optionsMap
void scanInputFile()
This is the method that parses the input file.
BoostInputOptionsParser()
Default constructor that sets m_filename to "".
const std::string m_filename