21 #ifndef ph_optionparser_hh 22 #define ph_optionparser_hh 60 typedef char SSeperators[];
63 typedef std::vector<std::pair<std::string, CParsedOptions> >
CParts;
76 const_iterator begin()
const;
79 const_iterator end()
const;
82 CParts::size_type size()
const;
87 static void set_seperators(SSeperators sep);
91 int split(
const std::string& s,
char c, std::list<std::string>& result)
const;
92 CParsedOptions::value_type split_pair_b(
const std::string& s,
char c)
const;
93 CParsedOptions::value_type split_pair(
const std::string& s,
char c)
const;
97 static char m_parts_seperator;
98 static char m_part_options;
99 static char m_option_seperator;
100 static char m_assignment_seperator;
CParts::const_iterator const_iterator
the iterator over the parts of a complex option
#define NS_MIA_BEGIN
conveniance define to start the mia namespace
std::map< std::string, std::string > CParsedOptions
#define EXPORT_CORE
Macro to manage Visual C++ style dllimport/dllexport.
std::vector< std::pair< std::string, CParsedOptions > > CParts
Type for a map of parts of a complex option.
Parser for complex command line options.
#define NS_MIA_END
conveniance define to end the mia namespace