2 #define SCARAB_API_EXPORTS 12 LOGGER( parselog,
"nonoption_parser" );
20 for(
const std::string& arg : an_args )
42 f_ord_args.push_back( std::move(t_parsed) );
46 throw error() <<
"Cannot parse an option with the nonoption_parser: " << an_arg;
50 if( t_val_pos != std::string::npos )
54 an_arg.substr(0, t_val_pos),
56 f_kw_args.merge( t_new_param->as_node() );
static const char f_option_starter
static const char f_value_separator
static param_ptr_t parse_address(const std::string &an_addr, param_ptr_t a_value=param_ptr_t())
Converts an address into a nested param structure, and optionally attaches a value.
virtual ~nonoption_parser()
nonoption_parser(std::vector< std::string > an_args)
Contains the logger class and macros, based on Kasper's KLogger class.
LOGGER(parselog, "nonoption_parser")
std::unique_ptr< param > param_ptr_t
void parse(const std::string &an_arg)
static param_ptr_t parse_value(const std::string &a_value)
Attempts to determine whether a value encoded as a string is an int, and unsigned int...