Tagcoll::commandline::Parser Class Reference

Interface for everything that would parse an arglist. More...

#include <Commandline.h>

Inheritance diagram for Tagcoll::commandline::Parser:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Parser (const std::string &name)
virtual ~Parser ()
const std::string & name () const
virtual iter parseList (arglist &list)
 Parse the list of arguments, starting at the beginning and removing the arguments it successfully parses.
virtual iter parse (arglist &list, iter begin)=0
 Parse the list of arguments, starting at 'begin' and removing the arguments it successfully parses.

Detailed Description

Interface for everything that would parse an arglist.


Constructor & Destructor Documentation

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

virtual Tagcoll::commandline::Parser::~Parser  )  [inline, virtual]
 


Member Function Documentation

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

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

Parse the list of arguments, starting at 'begin' and removing the arguments it successfully parses.

The 'begin' iterator can be invalidated by this function.

Returns:
An iterator to the first unparsed argument (can be list.end())

Implemented in Tagcoll::commandline::OptionParser, and Tagcoll::commandline::CommandParser.

virtual iter Tagcoll::commandline::Parser::parseList arglist list  )  [inline, virtual]
 

Parse the list of arguments, starting at the beginning and removing the arguments it successfully parses.

Returns:
An iterator to the first unparsed argument (can be list.end())


The documentation for this class was generated from the following file:
Generated on Thu Jun 15 20:19:21 2006 for libtagcoll by  doxygen 1.4.6