15 #ifndef BORNAGAIN_APP_APPOPTIONS_H
16 #define BORNAGAIN_APP_APPOPTIONS_H
18 #include <boost/program_options/options_description.hpp>
19 #include <boost/program_options/positional_options.hpp>
20 #include <boost/program_options/variables_map.hpp>
26 namespace bpo = boost::program_options;
36 const bpo::variable_value&
operator[](
const std::string& s)
const;
Handles command line and config file program options.
bool find(std::string name) const
Returns true if option with given name has been set.
bpo::variables_map & getVariables()
Returns reference to the variables container.
void parseCommandLine(int argc, char **argv)
Parses command line arguments.
bpo::options_description & getOptions()
Returns reference to the options description.
bool m_options_is_consistent
true if options are consistent (no conflicts, no –help request)
bpo::options_description m_options
options description, to be filled with add() from different program modules
ApplicationOptions(int argc=0, char **argv=0)
bool disableHighDPISupport() const
bpo::variables_map m_variables_map
QSize mainWindowSize() const
bpo::positional_options_description m_positional_options
positional options description, to be filled with addPositional() from main module
const bpo::variable_value & operator[](const std::string &s) const
access to variable with given name defined in variables container
QString const & name(EShape k)