![]() |
GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
|
![]() |
Base class used to parse an individual item. Most methods are implemented in the templated ArgParseConfig<T>
Definition at line 22 of file ArgParser.h.
Public Member Functions | |
ArgParseItem (ArgParseItem &&) noexcept=default | |
ArgParseItem (bool firstPass) | |
ArgParseItem (const ArgParseItem &)=default | |
virtual | ~ArgParseItem ()=default |
virtual std::string | flag_name () const =0 |
bool | is_present () const |
virtual bool | is_required () const =0 |
virtual bool | matches (const std::string &flag) const =0 |
virtual int | num_arguments () const =0 |
ArgParseItem & | operator= (ArgParseItem &&) noexcept=default |
ArgParseItem & | operator= (const ArgParseItem &)=default |
void | parse (const std::string &name, const std::vector< std::string > &arguments, bool firstPass, bool ignore_num_arguments=false) |
virtual void | parse_item (const std::vector< std::string > &arguments)=0 |
virtual std::string | printable (int description_column, int *chars_before_desc) const =0 |
Private Attributes | |
bool | fFirstPass |
bool | fPresent {false} |
|
inlineexplicit |
Definition at line 24 of file ArgParser.h.
|
default |
|
defaultnoexcept |
|
virtualdefault |
|
pure virtual |
Implemented in ArgParseConfig< T >, and ArgParseConfig< bool >.
|
inline |
Definition at line 35 of file ArgParser.h.
References fPresent.
|
pure virtual |
Implemented in ArgParseConfig< T >, and ArgParseConfig< bool >.
|
pure virtual |
Implemented in ArgParseConfig< T >, and ArgParseConfig< bool >.
|
pure virtual |
Implemented in ArgParseConfigT< T >, and ArgParseConfigT< bool >.
Referenced by ArgParser::handle_long_flag(), ArgParser::handle_short_flag(), parse(), and ArgParseConfig< T >::printable().
|
defaultnoexcept |
|
default |
|
inline |
Definition at line 38 of file ArgParser.h.
References fFirstPass, fPresent, num_arguments(), and parse_item().
Referenced by ArgParser::handle_default_option(), ArgParser::handle_long_flag(), ArgParser::handle_short_flag(), and ArgParser::parse_file().
|
pure virtual |
Implemented in ArgParseConfigT< T >, and ArgParseConfigT< bool >.
Referenced by parse().
|
pure virtual |
Implemented in ArgParseConfig< T >, and ArgParseConfig< bool >.
Referenced by ArgParser::print().
|
private |
Definition at line 64 of file ArgParser.h.
Referenced by parse().
|
private |
Definition at line 63 of file ArgParser.h.
Referenced by is_present(), and parse().