15#include <boost/program_options.hpp>
38 typedef ConfigurationHelp::HelpMap HelpMap;
39 using ConfigType = ConfigurationHelp::ConfigType;
112 template <
typename T>
115 boost::program_options::options_description opt;
139 static const std::map<int, std::string>
keyMap;
149 template <
typename T>
void addOption(
const std::string& name,
const T& defaultValue)
151 addOption(name, defaultValue, singleOptions[name]);
165 template <
typename T>
166 static void addOption(
const std::string& name,
const T& defaultValue,
167 boost::program_options::options_description& opt)
170 name.c_str(), boost::program_options::value<T>()->default_value(defaultValue),
"");
173 template <
typename T>
175 const std::string& name, boost::program_options::options_description& opt)
180 static std::map<std::string, boost::program_options::options_description> singleOptions;
184std::map<std::string, boost::program_options::options_description> Configured<C>::singleOptions;
199 }
catch (
const std::bad_cast& bc) {
237 }
catch (
const std::bad_cast& bc) {
static boost::program_options::variables_map parse(const boost::program_options::options_description &opt)
Parses all configuration sources.