casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
option::Parser::Action Struct Reference

#include <optionparser.h>

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

Public Member Functions

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

Detailed Description

Definition at line 1393 of file optionparser.h.

Member Function Documentation

virtual bool option::Parser::Action::finished ( int  numargs,
const char **  args 
)
inlinevirtual

Called by Parser::workhorse() after finishing the parse.

Parameters
numargsthe number of non-option arguments remaining
argspointer to the first remaining non-option argument (if numargs > 0).
Returns
false iff a fatal error has occurred.

Reimplemented in option::Parser::StoreOptionAction.

Definition at line 1416 of file optionparser.h.

Referenced by option::Parser::workhorse().

virtual bool option::Parser::Action::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 in option::Parser::StoreOptionAction, and option::Stats::CountOptionsAction.

Definition at line 1403 of file optionparser.h.

Referenced by option::Parser::workhorse().


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