|
SLIC
6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
|
Command-line option with a single letter, full name and description plus an associated Geant4 command (which is optional). More...
#include <CommandLineOption.hh>
Public Member Functions | |
| CommandLineOption (const std::string &shortname, const std::string &longname, const std::string &description, unsigned int minArgs=0, unsigned int maxArgs=0, const std::string ¯oCommand="") | |
| virtual | ~CommandLineOption () |
| const std::string & | getDescription () const |
| const std::string & | getG4CommandString () const |
| const std::string & | getLongName () const |
| unsigned int | getMaxArgs () const |
| unsigned int | getMinArgs () const |
| const std::string & | getShortName () const |
Private Attributes | |
| std::string | m_description |
| std::string | m_g4cmdstr |
| std::string | m_longname |
| int | m_maxArgs |
| int | m_minArgs |
| std::string | m_shortname |
Command-line option with a single letter, full name and description plus an associated Geant4 command (which is optional).
Definition at line 17 of file CommandLineOption.hh.
|
inline |
The fully qualified constructor for CommandLineOption.
| [in] | shortname | The single letter command switch. |
| [in] | longname | The longer name of the command. |
| [in] | minArgs | The minimum number of arguments. |
| [in] | maxArgs | The maximum number of arguments. |
| [in] | macroCommand | The corresponding Geant4 macro string. |
Definition at line 29 of file CommandLineOption.hh.
|
inlinevirtual |
Class destructor.
Definition at line 46 of file CommandLineOption.hh.
|
inline |
Get a brief description of this option.
Definition at line 74 of file CommandLineOption.hh.
References CommandLineOption::m_description.
Referenced by CommandLineProcessor::printOptions().
|
inline |
Get the Geant4 command associated with this option. This may be a null string if there is no associated Geant4 command, though currently all of SLIC's options have a corresponding macro.
Definition at line 85 of file CommandLineOption.hh.
References CommandLineOption::m_g4cmdstr.
Referenced by CommandLineProcessor::printOptions(), and CommandLineProcessor::processOption().
|
inline |
Get the long name associated with this option. This must be one or more words separated by dashes, such as "lcio-path".
Definition at line 66 of file CommandLineOption.hh.
References CommandLineOption::m_longname.
Referenced by CommandLineProcessor::printOptions().
|
inline |
Get the maximum number of arguments to this option.
Definition at line 101 of file CommandLineOption.hh.
References CommandLineOption::m_maxArgs.
Referenced by CommandLineProcessor::createOptionsString().
|
inline |
Get the minimum number of arguments to this option.
Definition at line 93 of file CommandLineOption.hh.
References CommandLineOption::m_minArgs.
Referenced by CommandLineProcessor::createOptionsString().
|
inline |
Get the short name associated with this option. This must be a single letter, such as 'm'.
Definition at line 56 of file CommandLineOption.hh.
References CommandLineOption::m_shortname.
Referenced by CommandLineProcessor::createOptionsString(), and CommandLineProcessor::printOptions().
|
private |
Definition at line 109 of file CommandLineOption.hh.
Referenced by CommandLineOption::getDescription().
|
private |
Definition at line 110 of file CommandLineOption.hh.
Referenced by CommandLineOption::getG4CommandString().
|
private |
Definition at line 108 of file CommandLineOption.hh.
Referenced by CommandLineOption::getLongName().
|
private |
Definition at line 112 of file CommandLineOption.hh.
Referenced by CommandLineOption::getMaxArgs().
|
private |
Definition at line 111 of file CommandLineOption.hh.
Referenced by CommandLineOption::getMinArgs().
|
private |
Definition at line 107 of file CommandLineOption.hh.
Referenced by CommandLineOption::getShortName().