Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::option::Parser::StoreOptionAction Class Reference

Definition at line 1439 of file OptionParser.h.

Public Member Functions

 StoreOptionAction (Parser &parser_, Option options_[], Option buffer_[], int bufmax_)
 Number of slots in buffer. -1 means "large enough".
 
bool finished (int numargs, const char **args) override
 Called by Parser::workhorse() after finishing the parse.
 
bool perform (Option &option) override
 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.
 
- Public Member Functions inherited from ROOT::option::Parser::Action
virtual ~Action ()=default
 

Private Attributes

Optionbuffer
 
int bufmax
 
Optionoptions
 
Parserparser
 

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

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

Constructor & Destructor Documentation

◆ StoreOptionAction()

ROOT::option::Parser::StoreOptionAction::StoreOptionAction ( Parser parser_,
Option  options_[],
Option  buffer_[],
int  bufmax_ 
)
inline

Number of slots in buffer. -1 means "large enough".

Creates a new StoreOption action.

Parameters
parser_the parser whose op_count should be updated.
options_each Option o is chained into the linked list options_[o.desc->index]
buffer_each Option is appended to this array as long as there's a free slot.
bufmax_number of slots in buffer_. -1 means "large enough".

Definition at line 1453 of file OptionParser.h.

Member Function Documentation

◆ finished()

bool ROOT::option::Parser::StoreOptionAction::finished ( int  numargs,
const char **  args 
)
inlineoverridevirtual

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

Definition at line 1485 of file OptionParser.h.

◆ perform()

bool ROOT::option::Parser::StoreOptionAction::perform ( Option )
inlineoverridevirtual

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

Definition at line 1465 of file OptionParser.h.

Member Data Documentation

◆ buffer

Option* ROOT::option::Parser::StoreOptionAction::buffer
private

Definition at line 1443 of file OptionParser.h.

◆ bufmax

int ROOT::option::Parser::StoreOptionAction::bufmax
private

Definition at line 1444 of file OptionParser.h.

◆ options

Option* ROOT::option::Parser::StoreOptionAction::options
private

Definition at line 1442 of file OptionParser.h.

◆ parser

Parser& ROOT::option::Parser::StoreOptionAction::parser
private

Definition at line 1441 of file OptionParser.h.

  • core/dictgen/res/OptionParser.h