9 #ifndef __libutilxx__sella__util__CommandLine_H__
10 #define __libutilxx__sella__util__CommandLine_H__
12 #include "../../common.h"
14 #include "CommandLineOption.h"
42 void add(
char opt,
const std::string &option,
const std::string &usage,
const std::string &label =
"",
const std::string &value =
"")
throw ();
43 void add(
char opt,
const std::string &option,
const std::string &usage,
const std::string &label,
long value,
long min = MINLONG,
long max = MINLONG)
throw ();
45 void add(
const std::string &argument,
const std::string &usage)
throw ();
47 std::map<std::string, std::string> parse(FILE *stream)
const throw ();
48 void usage(FILE *stream,
int result = 0)
const throw ();
51 struct option build(char tag, const std::string &name, bool argument) const throw ();
52 const std::string tag(char tag, bool argument) const throw ();
58 std::list<CommandLineOption> option;
59 std::list<std::pair<std::string, std::string>> argument;