R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3B::ProgramOptions Class Reference

#include <R3BProgramOptions.h>

Public Member Functions

 ProgramOptions ()=default
 
 ProgramOptions (const std::string &desc)
 
template<typename OptionType>
auto create_option (const std::string &optionName, const std::string &option_desc, std::optional< OptionType > defaultValue={}) -> decltype(auto)
 
auto verify (int argc, char **argv) -> bool
 
void delete_option (const std::string &optionName)
 
auto get_posDescRef () -> auto &
 
auto get_desc_ref () -> auto &
 

Detailed Description

Definition at line 45 of file R3BProgramOptions.h.

Constructor & Destructor Documentation

◆ ProgramOptions() [1/2]

R3B::ProgramOptions::ProgramOptions ( )
default

◆ ProgramOptions() [2/2]

R3B::ProgramOptions::ProgramOptions ( const std::string & desc)
inlineexplicit

Definition at line 49 of file R3BProgramOptions.h.

Member Function Documentation

◆ create_option()

template<typename OptionType>
auto R3B::ProgramOptions::create_option ( const std::string & optionName,
const std::string & option_desc,
std::optional< OptionType > defaultValue = {} ) -> decltype(auto)
inline

Definition at line 55 of file R3BProgramOptions.h.

◆ delete_option()

void R3B::ProgramOptions::delete_option ( const std::string & optionName)
inline

Definition at line 71 of file R3BProgramOptions.h.

◆ get_desc_ref()

auto R3B::ProgramOptions::get_desc_ref ( ) -> auto&
inline

Definition at line 73 of file R3BProgramOptions.h.

◆ get_posDescRef()

auto R3B::ProgramOptions::get_posDescRef ( ) -> auto&
inline

Definition at line 72 of file R3BProgramOptions.h.

◆ verify()

auto R3B::ProgramOptions::verify ( int argc,
char ** argv ) -> bool

Definition at line 5 of file R3BProgramOptions.cxx.


The documentation for this class was generated from the following files: