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

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

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

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

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.

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


Member Data Documentation

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

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

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


The documentation for this class was generated from the following files:
Generated on Sat Jan 17 03:34:29 2009 for libtagcoll by  doxygen 1.5.1