Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::option::Stats::CountOptionsAction Class Reference

Definition at line 1412 of file OptionParser.h.

Public Member Functions

 CountOptionsAction (unsigned *buffer_max_)
 Creates a new CountOptionsAction that will increase *buffer_max_ for each parsed Option.
 
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.
 
- Public Member Functions inherited from ROOT::option::Parser::Action
virtual ~Action ()=default
 
virtual bool finished (int numargs, const char **args)
 Called by Parser::workhorse() after finishing the parse.
 

Private Attributes

unsigned * buffer_max
 

#include </home/sftnight/build/workspace/root-makedoc-v624/rootspi/rdoc/src/v6-24-00-patches/core/dictgen/res/OptionParser.h>

Inheritance diagram for ROOT::option::Stats::CountOptionsAction:
[legend]

Constructor & Destructor Documentation

◆ CountOptionsAction()

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

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

Definition at line 1420 of file OptionParser.h.

Member Function Documentation

◆ perform()

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

Definition at line 1425 of file OptionParser.h.

Member Data Documentation

◆ buffer_max

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

Definition at line 1414 of file OptionParser.h.

  • core/dictgen/res/OptionParser.h