Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

option_base Struct Reference

Inheritance diagram for option_base:

option< T > List of all members.

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

Constructor & Destructor Documentation

option_base::option_base char  opt,
const char *  help,
const char *  arg = ""
[inline]
 

Definition at line 26 of file server.cc.

References _arg, _help, and _opt.

virtual option_base::~option_base  )  [inline, virtual]
 

Definition at line 29 of file server.cc.


Member Function Documentation

virtual bool option_base::handle const char *  arg  )  [pure virtual]
 

Implemented in option< T >, and option< bool >.

virtual bool option_base::handle  )  [pure virtual]
 

Implemented in option< T >, and option< bool >.

Referenced by command_line::handle().

virtual bool option_base::need_arg  )  const [inline, virtual]
 

Definition at line 37 of file server.cc.

References _arg.

Referenced by command_line::handle().

virtual char option_base::opt  )  const [inline, virtual]
 

Definition at line 38 of file server.cc.

References _opt.

Referenced by command_line::add_option().

virtual void option_base::print_help std::ostream &  out  )  const [inline, virtual]
 

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().


Member Data Documentation

std::string option_base::_arg [protected]
 

Definition at line 42 of file server.cc.

Referenced by need_arg(), option_base(), and print_help().

std::string option_base::_help [protected]
 

Definition at line 41 of file server.cc.

Referenced by option_base(), and print_help().

char option_base::_opt [protected]
 

Definition at line 40 of file server.cc.

Referenced by opt(), option_base(), and print_help().


The documentation for this struct was generated from the following file:
Generated on Thu Apr 17 14:32:44 2008 for FMD FeeServer by doxygen 1.3.5