Inheritance diagram for option_base:
Public Member Functions | |
option_base (char opt, const char *help, const char *arg="") | |
virtual | ~option_base () |
virtual void | print_help (std::ostream &out) const |
virtual bool | handle ()=0 |
virtual bool | handle (const char *arg)=0 |
virtual bool | need_arg () const |
virtual char | opt () const |
Protected Attributes | |
char | _opt |
std::string | _help |
std::string | _arg |
|
|
|
|
|
Implemented in option< T >, and option< bool >. |
|
Implemented in option< T >, and option< bool >. Referenced by command_line::handle(). |
|
Definition at line 37 of file server.cc. References _arg. Referenced by command_line::handle(). |
|
Definition at line 38 of file server.cc. References _opt. Referenced by command_line::add_option(). |
|
Reimplemented in option< T >, and option< bool >. Definition at line 30 of file server.cc. References _arg, _help, and _opt. Referenced by option< bool >::print_help(). |
|
Definition at line 42 of file server.cc. Referenced by need_arg(), option_base(), and print_help(). |
|
Definition at line 41 of file server.cc. Referenced by option_base(), and print_help(). |
|
Definition at line 40 of file server.cc. Referenced by opt(), option_base(), and print_help(). |