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

command_line Struct Reference

List of all members.

Public Member Functions

 command_line (const char *name)
 ~command_line ()
void print_help ()
void add_option (option_base &o)
option_basefind_option (char o) const
bool handle (int argc, char **argv)
bool got_help () const

Protected Types

typedef std::map< char, option_base * > option_map

Protected Attributes

option_map _options
std::string _name
option< bool > _help_opt

Member Typedef Documentation

typedef std::map<char,option_base*> command_line::option_map [protected]
 

Definition at line 142 of file server.cc.


Constructor & Destructor Documentation

command_line::command_line const char *  name  )  [inline]
 

Definition at line 91 of file server.cc.

References _help_opt, _name, _options, and add_option().

command_line::~command_line  )  [inline]
 

Definition at line 98 of file server.cc.


Member Function Documentation

void command_line::add_option option_base o  )  [inline]
 

Definition at line 106 of file server.cc.

References _options, find_option(), and option_base::opt().

Referenced by command_line(), and main().

option_base* command_line::find_option char  o  )  const [inline]
 

Definition at line 114 of file server.cc.

References _options.

Referenced by add_option(), and handle().

bool command_line::got_help  )  const [inline]
 

Definition at line 140 of file server.cc.

References _help_opt.

Referenced by main().

bool command_line::handle int  argc,
char **  argv
[inline]
 

Definition at line 119 of file server.cc.

References _help_opt, _name, find_option(), option_base::handle(), option_base::need_arg(), and print_help().

Referenced by main().

void command_line::print_help  )  [inline]
 

Definition at line 99 of file server.cc.

References _name, and _options.

Referenced by handle().


Member Data Documentation

option<bool> command_line::_help_opt [protected]
 

Definition at line 145 of file server.cc.

Referenced by command_line(), got_help(), and handle().

std::string command_line::_name [protected]
 

Definition at line 144 of file server.cc.

Referenced by command_line(), handle(), and print_help().

option_map command_line::_options [protected]
 

Definition at line 143 of file server.cc.

Referenced by add_option(), command_line(), find_option(), 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