1 #ifndef _theplu_yat_utility_option_
2 #define _theplu_yat_utility_option_
75 void parse(std::vector<std::string>::iterator&,
76 const std::vector<std::string>::iterator&);
98 std::string
print(
void);
125 virtual void do_parse(std::vector<std::string>::iterator&,
126 const std::vector<std::string>::iterator&)=0;
130 virtual std::string print1(
void)
const;
134 virtual std::string print2(
void)
const;
138 virtual std::string print3(
void)
const;
142 virtual std::string print4(
void)
const;
146 virtual void do_validate(
void)
const=0;
150 std::string description_;
151 std::string long_name_;
std::string description(void) const
char short_name(void) const
void validate(void)
Validate the Option.
virtual ~Option(void)
destructor
void reset(void)
sets present to false
bool present(void) const
Get if option was found in cmd.
void parse(std::vector< std::string >::iterator &, const std::vector< std::string >::iterator &)
parsing the commandline
Class for parsing the command line.
Definition: CommandLine.h:98
const CommandLine & cmd(void) const
std::string print(void)
print help output
Option(CommandLine &cmd, std::string name, std::string desc)
Constructor.
std::string long_name(void) const
Container of variables for an option.
Definition: Option.h:37