casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
option::Stats::CountOptionsAction Class Reference

#include <optionparser.h>

Inheritance diagram for option::Stats::CountOptionsAction:
option::Parser::Action

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 option::Parser::Action
virtual bool finished (int numargs, const char **args)
 Called by Parser::workhorse() after finishing the parse. More...
 

Private Attributes

unsigned * buffer_max
 

Detailed Description

Definition at line 1429 of file optionparser.h.

Constructor & Destructor Documentation

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

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

Definition at line 1437 of file optionparser.h.

Member Function Documentation

bool option::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 option::Parser::Action.

Definition at line 1442 of file optionparser.h.

References buffer_max.

Member Data Documentation

unsigned* option::Stats::CountOptionsAction::buffer_max
private

Definition at line 1431 of file optionparser.h.

Referenced by perform().


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