Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::option::Parser::Action Struct Reference

Definition at line 1374 of file OptionParser.h.

Public Member Functions

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

#include </home/sftnight/build/workspace/root-makedoc-master/rootspi/rdoc/src/master/core/dictgen/res/OptionParser.h>

Inheritance diagram for ROOT::option::Parser::Action:
[legend]

Constructor & Destructor Documentation

◆ ~Action()

virtual ROOT::option::Parser::Action::~Action ( )
virtualdefault

Member Function Documentation

◆ finished()

virtual bool ROOT::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 ROOT::option::Parser::StoreOptionAction.

Definition at line 1397 of file OptionParser.h.

◆ perform()

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

Definition at line 1384 of file OptionParser.h.


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