|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <LUPI.hpp>
Public Member Functions | |
| Positional (std::string const &a_name, std::string const &a_descriptor="", int a_minimumNeeded=1, int a_maximumNeeded=1) | |
| ~Positional () | |
| bool | isOptionalArgument () const |
| bool | requiresAValue () const |
| void | printStatus3 (std::string const &a_indent) const |
| Public Member Functions inherited from LUPI::ArgumentBase | |
| ArgumentBase (ArgumentType a_argumentType, std::string const &a_name, std::string const &a_descriptor, int a_minimumNeeded, int a_maximumNeeded) | |
| virtual | ~ArgumentBase ()=0 |
| ArgumentType | argumentType () const |
| std::string const & | name () const |
| std::vector< std::string > const & | names () |
| bool | hasName (std::string const &a_name) const |
| std::string const & | descriptor () const |
| int | minimumNeeded () const |
| int | maximumNeeded () const |
| std::size_t | counts () const |
| virtual std::string const & | value (std::size_t a_index=0) const |
| std::vector< std::string > const & | values () const |
| virtual int | parse (ArgumentParser const &a_argumentParser, int a_index, int a_argc, char **a_argv) |
| std::string | usage (bool a_requiredOption) const |
| void | printStatus (std::string a_indent) const |
An option with a value. If multiple options with the same name are entered, the m_value member will represent the last option entered.
| LUPI::Positional::Positional | ( | std::string const & | a_name, |
| std::string const & | a_descriptor = "", | ||
| int | a_minimumNeeded = 1, | ||
| int | a_maximumNeeded = 1 ) |
Positional constructor.
| a_name | [in] The name of the argument. |
| a_descriptor | [in] The string printed with arugment's help. |
| a_minimumNeeded | [in] The minimum number of times the argument must be entered. |
| a_maximumNeeded | [in] The maximum number of times the argument can be entered. |
Definition at line 430 of file LUPI_argumentParser.cc.
Referenced by Positional().
|
inlinevirtual |
Reimplemented from LUPI::ArgumentBase.
Definition at line 330 of file LUPI.hpp.
|
virtual |
Prints the values for this. Called by printStatus.
| a_indent | [in] The amount of indentation to start the first line with. |
Reimplemented from LUPI::ArgumentBase.
Definition at line 440 of file LUPI_argumentParser.cc.
|
inlinevirtual |
Reimplemented from LUPI::ArgumentBase.
Definition at line 331 of file LUPI.hpp.