Parser for complex command line options. More...
#include <mia/core/optionparser.hh>
Public Types | |
typedef CParts::const_iterator | const_iterator |
the iterator over the parts of a complex option More... | |
typedef std::vector< std::pair< std::string, CParsedOptions > > | CParts |
Type for a map of parts of a complex option. More... | |
typedef char | SSeperators[] |
constructor | |||
Parse the input string and split it in a nested list of name-value pairs
| |||
CComplexOptionParser (const std::string ¶m) | |||
const_iterator | begin () const | ||
const_iterator | end () const | ||
CParts::size_type | size () const | ||
static void | set_seperators (SSeperators sep) | ||
Parser for complex command line options.
This is a little parser to parse more complex command line options. The syntax of the command line is "ssd:src=img1.v,ref=img2.v+lm:src=lm1.lmx,ref=lm2.lmx,f=[tsp:r=3]" with one level of brackets allowed
Above options string will be split off like: < ssd, { < src, img1.v >, < ref, img2.v > } > < lm, ( < src, lm1.lmx >, < ref, lm2.lmx >, < f, tsp:r=3 > } >
Definition at line 55 of file optionparser.hh.
typedef CParts::const_iterator CComplexOptionParser::const_iterator |
the iterator over the parts of a complex option
Definition at line 66 of file optionparser.hh.
typedef std::vector<std::pair<std::string, CParsedOptions> > CComplexOptionParser::CParts |
Type for a map of parts of a complex option.
Definition at line 63 of file optionparser.hh.
typedef char CComplexOptionParser::SSeperators[] |
define thy type for a list of separators
Definition at line 60 of file optionparser.hh.
CComplexOptionParser::CComplexOptionParser | ( | const std::string & | param | ) |
const_iterator CComplexOptionParser::begin | ( | ) | const |
Referenced by create_plugin< Handler, Chained, chainable >::apply(), create_plugin< Handler, ProductChained, true >::apply(), and BOOST_TEST_create_from_plugin().
const_iterator CComplexOptionParser::end | ( | ) | const |
Referenced by create_plugin< Handler, ProductChained, true >::apply().
|
static |
replace the standart set of seperators
sep | the new seperators |
CParts::size_type CComplexOptionParser::size | ( | ) | const |
Referenced by create_plugin< Handler, Chained, chainable >::apply(), create_plugin< Handler, ProductChained, true >::apply(), and BOOST_TEST_create_from_plugin().