1 #ifndef _theplu_yat_utility_option_switch_
2 #define _theplu_yat_utility_option_switch_
50 std::string desc,
bool def=
false);
56 bool value(
void)
const;
61 void do_parse(std::vector<std::string>::iterator&,
62 const std::vector<std::string>::iterator&);
68 virtual void do_parse2(std::vector<std::string>::iterator,
69 std::vector<std::string>::iterator);
73 std::string print2(
void)
const;
77 void do_validate(
void)
const;
bool value(void) const
return value
Class for switch option.
Definition: OptionSwitch.h:37
Class for parsing the command line.
Definition: CommandLine.h:98
const CommandLine & cmd(void) const
OptionSwitch(CommandLine &cmd, std::string name, std::string desc, bool def=false)
Constructor.
Container of variables for an option.
Definition: Option.h:37