All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
OptionParser::Stats::CountOptionsAction Class Reference

#include <optionparser.h>

Public Member Functions

 CountOptionsAction (unsigned *buffer_max_)
 Creates a new CountOptionsAction that will increase *buffer_max_ for each parsed Option. More...
 
bool perform (Option &)
 Called by Parser::workhorse() for each Option that has been successfully parsed (including unknown options if they have a Descriptor whose Descriptor::check_arg does not return ARG_ILLEGAL. More...
 
- Public Member Functions inherited from OptionParser::Parser::Action
virtual bool finished (int numargs, const char **args)
 Called by Parser::workhorse() after finishing the parse. More...
 

Constructor & Destructor Documentation

OptionParser::Stats::CountOptionsAction::CountOptionsAction ( unsigned *  buffer_max_)
inline

Creates a new CountOptionsAction that will increase *buffer_max_ for each parsed Option.

Member Function Documentation

bool OptionParser::Stats::CountOptionsAction::perform ( Option )
inlinevirtual

Called by Parser::workhorse() for each Option that has been successfully parsed (including unknown options if they have a Descriptor whose Descriptor::check_arg does not return ARG_ILLEGAL.

Returns false iff a fatal error has occured and the parse should be aborted.

Reimplemented from OptionParser::Parser::Action.


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