1 #ifndef _theplu_yat_utility_option_switch_ 2 #define _theplu_yat_utility_option_switch_ 51 std::string desc,
bool def=
false);
57 bool value(
void)
const;
62 void do_parse(std::vector<std::string>::iterator&,
63 const std::vector<std::string>::iterator&);
69 virtual void do_parse2(std::vector<std::string>::iterator,
70 std::vector<std::string>::iterator);
74 std::string print2(
void)
const;
78 void do_validate(
void)
const;
The Department of Theoretical Physics namespace as we define it.
Class for switch option.
Definition: OptionSwitch.h:38
Class for parsing the command line.
Definition: CommandLine.h:98
bool value(void) const
return value
OptionSwitch(CommandLine &cmd, std::string name, std::string desc, bool def=false)
Constructor.
const CommandLine & cmd(void) const
Container of variables for an option.
Definition: Option.h:37