SpinParser  1.0
CommandLineOptions.hpp
Go to the documentation of this file.
1 
9 #pragma once
10 #include <string>
11 
16 {
17 public:
24  CommandLineOptions(int argc, char **argv);
25 
31  bool help() const;
32 
38  bool verbose() const;
39 
45  int checkpointTime() const;
46 
52  bool forceRestart() const;
53 
59  bool deferMeasurements() const;
60 
66  bool debugLattice() const;
67 
73  std::string taskFile() const;
74 
80  std::string resourcePath() const;
81 
82 protected:
83  bool _help;
84  bool _verbose;
89  std::string _taskFile;
90  std::string _resourcePath;
91 };
CommandLineOptions::resourcePath
std::string resourcePath() const
Retrieve the value of the '–resourcePath' flag.
Definition: CommandLineOptions.cpp:111
CommandLineOptions::deferMeasurements
bool deferMeasurements() const
Retrieve the '–defer' flag setting.
Definition: CommandLineOptions.cpp:96
CommandLineOptions::debugLattice
bool debugLattice() const
Retrieve the '–debugLattice' flag setting.
Definition: CommandLineOptions.cpp:101
CommandLineOptions::forceRestart
bool forceRestart() const
Retrieve the '–forceRestart' flag setting.
Definition: CommandLineOptions.cpp:91
CommandLineOptions::_help
bool _help
Help flag '–help' is set.
Definition: CommandLineOptions.hpp:83
CommandLineOptions
Parser object, which can be fed with argc/argv information and which then holds the parsed values in ...
Definition: CommandLineOptions.hpp:15
CommandLineOptions::taskFile
std::string taskFile() const
Retrieve the value of the '–taskFile' flag.
Definition: CommandLineOptions.cpp:106
CommandLineOptions::help
bool help() const
Retrieve the '–help' flag setting.
Definition: CommandLineOptions.cpp:76
CommandLineOptions::verbose
bool verbose() const
Retrieve the '–verbose' flag setting.
Definition: CommandLineOptions.cpp:81
CommandLineOptions::_taskFile
std::string _taskFile
Value of the '–taskFile' argument.
Definition: CommandLineOptions.hpp:89
CommandLineOptions::CommandLineOptions
CommandLineOptions(int argc, char **argv)
Construct a new CommandLineOptions object and parse argc/argv information.
Definition: CommandLineOptions.cpp:14
CommandLineOptions::_deferMeasurements
bool _deferMeasurements
Defer flag '–defer' is set.
Definition: CommandLineOptions.hpp:87
CommandLineOptions::_checkpointTime
int _checkpointTime
Value of the '–checkpointTime' argument.
Definition: CommandLineOptions.hpp:85
CommandLineOptions::_resourcePath
std::string _resourcePath
Value of the '–resourcePath' argument.
Definition: CommandLineOptions.hpp:90
CommandLineOptions::_verbose
bool _verbose
Verbose flag '–verbose' is set.
Definition: CommandLineOptions.hpp:84
CommandLineOptions::_debugLattice
bool _debugLattice
Lattice debug flag '–debugLattice' is set.
Definition: CommandLineOptions.hpp:88
CommandLineOptions::checkpointTime
int checkpointTime() const
Retrieve the value of the '–checkpointTime' flag.
Definition: CommandLineOptions.cpp:86
CommandLineOptions::_forceRestart
bool _forceRestart
Force flag '–forceRestart' is set.
Definition: CommandLineOptions.hpp:86