Tagcoll::commandline::OptionParser Class Reference

Parser of many short or long switches all starting with '-'. More...

#include <Commandline.h>

Inheritance diagram for Tagcoll::commandline::OptionParser:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OptionParser (const std::string &name)
void add (Option *o)
void add (OptionGroup *group)
const std::vector< OptionGroup * > & groups () const
const std::vector< Option * > & options () const
virtual iter parse (arglist &list, iter begin)
 Parse all the switches in list, leaving only the non-switch arguments or the arguments following "--".

Public Attributes

std::string primaryAlias
std::vector< std::string > aliases
std::string usage
std::string description
std::string longDescription
std::string examples

Detailed Description

Parser of many short or long switches all starting with '-'.


Constructor & Destructor Documentation

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


Member Function Documentation

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

void Tagcoll::commandline::OptionParser::add ( OptionGroup group  ) 

const std::vector<OptionGroup*>& Tagcoll::commandline::OptionParser::groups (  )  const [inline]

const std::vector<Option*>& Tagcoll::commandline::OptionParser::options (  )  const [inline]

iter Tagcoll::commandline::OptionParser::parse ( arglist list,
iter  begin 
) [virtual]

Parse all the switches in list, leaving only the non-switch arguments or the arguments following "--".

Implements Tagcoll::commandline::Parser.


Member Data Documentation

std::string Tagcoll::commandline::OptionParser::primaryAlias

std::vector<std::string> Tagcoll::commandline::OptionParser::aliases

std::string Tagcoll::commandline::OptionParser::usage

std::string Tagcoll::commandline::OptionParser::description

std::string Tagcoll::commandline::OptionParser::longDescription

std::string Tagcoll::commandline::OptionParser::examples


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