|
SpinParser
1.0
|
Parser object, which can be fed with argc/argv information and which then holds the parsed values in its member variables. More...
#include <CommandLineOptions.hpp>
Public Member Functions | |
| CommandLineOptions (int argc, char **argv) | |
| Construct a new CommandLineOptions object and parse argc/argv information. More... | |
| bool | help () const |
| Retrieve the '–help' flag setting. More... | |
| bool | verbose () const |
| Retrieve the '–verbose' flag setting. More... | |
| int | checkpointTime () const |
| Retrieve the value of the '–checkpointTime' flag. More... | |
| bool | forceRestart () const |
| Retrieve the '–forceRestart' flag setting. More... | |
| bool | deferMeasurements () const |
| Retrieve the '–defer' flag setting. More... | |
| bool | debugLattice () const |
| Retrieve the '–debugLattice' flag setting. More... | |
| std::string | taskFile () const |
| Retrieve the value of the '–taskFile' flag. More... | |
| std::string | resourcePath () const |
| Retrieve the value of the '–resourcePath' flag. More... | |
Protected Attributes | |
| bool | _help |
| Help flag '–help' is set. | |
| bool | _verbose |
| Verbose flag '–verbose' is set. | |
| int | _checkpointTime |
| Value of the '–checkpointTime' argument. | |
| bool | _forceRestart |
| Force flag '–forceRestart' is set. | |
| bool | _deferMeasurements |
| Defer flag '–defer' is set. | |
| bool | _debugLattice |
| Lattice debug flag '–debugLattice' is set. | |
| std::string | _taskFile |
| Value of the '–taskFile' argument. | |
| std::string | _resourcePath |
| Value of the '–resourcePath' argument. | |
Parser object, which can be fed with argc/argv information and which then holds the parsed values in its member variables.
| CommandLineOptions::CommandLineOptions | ( | int | argc, |
| char ** | argv | ||
| ) |
Construct a new CommandLineOptions object and parse argc/argv information.
| argc | Argument count as passed to the program call. |
| argv | Argument vector as passed to the program call. |
| int CommandLineOptions::checkpointTime | ( | ) | const |
Retrieve the value of the '–checkpointTime' flag.
| bool CommandLineOptions::debugLattice | ( | ) | const |
Retrieve the '–debugLattice' flag setting.
| bool CommandLineOptions::deferMeasurements | ( | ) | const |
Retrieve the '–defer' flag setting.
| bool CommandLineOptions::forceRestart | ( | ) | const |
Retrieve the '–forceRestart' flag setting.
| bool CommandLineOptions::help | ( | ) | const |
Retrieve the '–help' flag setting.
| std::string CommandLineOptions::resourcePath | ( | ) | const |
Retrieve the value of the '–resourcePath' flag.
| std::string CommandLineOptions::taskFile | ( | ) | const |
Retrieve the value of the '–taskFile' flag.
| bool CommandLineOptions::verbose | ( | ) | const |
Retrieve the '–verbose' flag setting.
1.8.17