Tagcoll::commandline::CommandParser Class Reference

#include <Commandline.h>

Inheritance diagram for Tagcoll::commandline::CommandParser:

Inheritance graph
[legend]
Collaboration diagram for Tagcoll::commandline::CommandParser:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommandParser (const std::string &name)
OptionParserlastCommand () const
OptionParsercommand (const std::string &name) const
void add (OptionParser &o)
virtual iter parse (arglist &list, iter begin)
 Look for a command as the first non-switch parameter found, then invoke the corresponding switch parser.
std::map< std::string, OptionParser * > getCommandInfo () const

Public Attributes

std::string usage
std::string description
std::string longDescription

Constructor & Destructor Documentation

Tagcoll::commandline::CommandParser::CommandParser const std::string &  name  )  [inline]
 


Member Function Documentation

void Tagcoll::commandline::CommandParser::add OptionParser o  ) 
 

OptionParser * Tagcoll::commandline::CommandParser::command const std::string &  name  )  const
 

std::map< std::string, OptionParser * > Tagcoll::commandline::CommandParser::getCommandInfo  )  const
 

OptionParser* Tagcoll::commandline::CommandParser::lastCommand  )  const [inline]
 

iter Tagcoll::commandline::CommandParser::parse arglist list,
iter  begin
[virtual]
 

Look for a command as the first non-switch parameter found, then invoke the corresponding switch parser.

After this function, only non-switch arguments will be left in list

If no commands have been found, returns begin.

Implements Tagcoll::commandline::Parser.


Member Data Documentation

std::string Tagcoll::commandline::CommandParser::description
 

std::string Tagcoll::commandline::CommandParser::longDescription
 

std::string Tagcoll::commandline::CommandParser::usage
 


The documentation for this class was generated from the following files:
Generated on Mon Jun 19 18:14:12 2006 for libtagcoll by  doxygen 1.4.6