Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
ProgramOptions::OptionParser Class Reference

Base class for options parsers. More...

#include <program_options.h>

List of all members.

Public Types

typedef OptionContext::FindType FindType

Public Member Functions

 OptionParser (ParseContext &ctx)
ParseContextparse ()
virtual ~OptionParser ()

Protected Member Functions

void addOptionValue (const SharedOptPtr &key, const std::string &value)
ParseContextctx () const
SharedOptPtr getOption (const char *name, FindType ft) const
SharedOptPtr getOption (int posKey, const char *tok) const

Private Member Functions

virtual void doParse ()=0

Private Attributes

ParseContextctx_

Detailed Description

Base class for options parsers.

Definition at line 354 of file program_options.h.


Member Typedef Documentation

Definition at line 356 of file program_options.h.


Constructor & Destructor Documentation

Definition at line 564 of file program_options.cpp.

Definition at line 568 of file program_options.cpp.


Member Function Documentation

void ProgramOptions::OptionParser::addOptionValue ( const SharedOptPtr key,
const std::string &  value 
) [inline, protected]

Definition at line 364 of file program_options.h.

ParseContext& ProgramOptions::OptionParser::ctx ( ) const [inline, protected]

Definition at line 361 of file program_options.h.

virtual void ProgramOptions::OptionParser::doParse ( ) [private, pure virtual]
SharedOptPtr ProgramOptions::OptionParser::getOption ( const char *  name,
FindType  ft 
) const [inline, protected]

Definition at line 362 of file program_options.h.

SharedOptPtr ProgramOptions::OptionParser::getOption ( int  posKey,
const char *  tok 
) const [inline, protected]

Definition at line 363 of file program_options.h.

Definition at line 571 of file program_options.cpp.


Member Data Documentation

Definition at line 367 of file program_options.h.


The documentation for this class was generated from the following files:


clasp
Author(s): Benjamin Kaufmann
autogenerated on Thu Aug 27 2015 12:41:41