22 #ifndef OTAWA_OPTION_SWITCHOPTION_H_
23 #define OTAWA_OPTION_SWITCHOPTION_H_
28 namespace elm {
namespace option {
36 inline bool get(
void)
const {
return val; }
39 inline operator bool(
void)
const {
return get(); }
46 virtual void process(
string arg);
Definition: SwitchOption.h:31
bool get(void) const
Definition: SwitchOption.h:36
SwitchOption(const Make &make)
Definition: option_SwitchOption.cpp:59
void set(bool value)
Definition: SwitchOption.h:35
virtual CString argDescription(void)
Definition: option_SwitchOption.cpp:43
bool operator*(void) const
Definition: SwitchOption.h:40
virtual void process(string arg)
Definition: option_SwitchOption.cpp:50
SwitchOption & operator=(bool value)
Definition: SwitchOption.h:41
virtual usage_t usage(void)
Definition: option_SwitchOption.cpp:36
usage_t
Definition: Option.h:41
SwitchOption Switch
Definition: SwitchOption.h:52