25 #include <boost/algorithm/string/predicate.hpp>
29 namespace Configuration {
32 return name +
"-" + instance;
39 for (
auto& option_name : option_name_list) {
40 for (
auto& pair : options) {
41 if (boost::starts_with(pair.first, option_name)) {
42 auto name = pair.first.substr(option_name.size());
44 name = name.substr(1);
static std::string wildcard(const std::string &name, const std::string &instance="*")
Creates the name to use for a wildcard program option.
static std::set< std::string > findWildcardNames(const std::vector< std::string > &option_name_list, const std::map< std::string, boost::program_options::variable_value > &options)
Returns the instance names of wildcard options.