|
CbmRoot
|
#include <ProgramOptions.h>
Public Member Functions | |
| ProgramOptions (int argc, char *argv[]) | |
| Standard constructor with command line arguments. | |
| ProgramOptions (const ProgramOptions &)=delete | |
| Copy constructor forbidden. | |
| ProgramOptions & | operator= (const ProgramOptions &)=delete |
| Assignment operator forbidden. | |
| ~ProgramOptions ()=default | |
| Destructor. | |
| const std::string & | OutputFile () const |
| Get output file name (.root format) | |
| const std::vector< std::string > & | TraFiles () const |
| Get transport file name. | |
| const std::string & | ParFile () const |
| Get parameter file name. | |
| const std::string & | ConfigFile () const |
| Get configuration file name (YAML format) | |
| const std::string & | SetupTag () const |
| Get geometry setup tag. | |
| bool | Overwrite () const |
| Get overwrite option. | |
Private Member Functions | |
| void | ParseOptions (int argc, char *argv[]) |
| Parse command line arguments using boost program_options. | |
Private Attributes | |
| std::string | fOutput = "" |
| Output file name (ROOT format) | |
| std::vector< std::string > | fTra |
| List of transport input sources (ROOT format) | |
| std::string | fPar = "" |
| Parameter file name (ROOT format) | |
| std::string | fConfig = "" |
| Configuration file name (YAML format) | |
| std::string | fSetup = "" |
| Geometry setup tag. | |
| bool | fOverwrite = false |
| Enable overwriting of existing output file. | |
Program option class for the application cbmatc
Definition at line 31 of file sim/response/app/ProgramOptions.h.
|
inline |
Standard constructor with command line arguments.
Definition at line 34 of file sim/response/app/ProgramOptions.h.
References ParseOptions().
Referenced by operator=(), and ProgramOptions().
|
delete |
Copy constructor forbidden.
References ProgramOptions().
|
default |
Destructor.
|
inlinenodiscard |
Get configuration file name (YAML format)
Definition at line 55 of file sim/response/app/ProgramOptions.h.
References fConfig.
|
delete |
Assignment operator forbidden.
References ProgramOptions().
|
inlinenodiscard |
Get output file name (.root format)
Definition at line 46 of file sim/response/app/ProgramOptions.h.
References fOutput.
|
inlinenodiscard |
Get overwrite option.
Definition at line 61 of file sim/response/app/ProgramOptions.h.
References fOverwrite.
|
inlinenodiscard |
Get parameter file name.
Definition at line 52 of file sim/response/app/ProgramOptions.h.
References fPar.
|
private |
Parse command line arguments using boost program_options.
Definition at line 29 of file sim/response/app/ProgramOptions.cxx.
References DEFAULT_CONFIG, DEFAULT_SETUP, fConfig, fOutput, fOverwrite, fPar, fSetup, and fTra.
Referenced by ProgramOptions().
|
inlinenodiscard |
Get geometry setup tag.
Definition at line 58 of file sim/response/app/ProgramOptions.h.
References fSetup.
|
inlinenodiscard |
Get transport file name.
Definition at line 49 of file sim/response/app/ProgramOptions.h.
References fTra.
|
private |
Configuration file name (YAML format)
Definition at line 73 of file sim/response/app/ProgramOptions.h.
Referenced by ConfigFile(), and ParseOptions().
|
private |
Output file name (ROOT format)
Definition at line 70 of file sim/response/app/ProgramOptions.h.
Referenced by OutputFile(), and ParseOptions().
|
private |
Enable overwriting of existing output file.
Definition at line 75 of file sim/response/app/ProgramOptions.h.
Referenced by Overwrite(), and ParseOptions().
|
private |
Parameter file name (ROOT format)
Definition at line 72 of file sim/response/app/ProgramOptions.h.
Referenced by ParFile(), and ParseOptions().
|
private |
Geometry setup tag.
Definition at line 74 of file sim/response/app/ProgramOptions.h.
Referenced by ParseOptions(), and SetupTag().
|
private |
List of transport input sources (ROOT format)
Definition at line 71 of file sim/response/app/ProgramOptions.h.
Referenced by ParseOptions(), and TraFiles().