24 }
catch (storm::exceptions::OptionParserException& e) {
25 STORM_LOG_ERROR(
"Unable to parse command line options. Type '" + std::string(argv[0]) +
" --help' or '" + std::string(argv[0]) +
26 " --help all' for help.");
81int process(std::string
const& name, std::string
const& executableName, std::function<
void(std::string
const&, std::string
const&)> initSettingsFunc,
82 std::function<
void(
void)> processOptionsFunc,
const int argc,
const char** argv) {
87 initSettingsFunc(name, executableName);
102 processOptionsFunc();
void setFromCommandLine(int const argc, char const *const argv[])
This function parses the given command line arguments and sets all registered options accordingly.
void printHelp(std::string const &filter="frequent") const
This function prints a help message to the standard output.
This class represents the debug settings.
bool isDebugSet() const
Retrieves whether the debug option was set.
bool isLogfileSet() const
Retrieves whether the logfile option was set.
std::string getLogfilename() const
Retrieves the name of the log file if the logfile option was set.
bool isTraceSet() const
Retrieves whether the trace option was set.
This class represents the general settings.
bool isHelpSet() const
Retrieves whether the help option was set.
bool isVerboseSet() const
Retrieves whether the verbose option was set.
bool isVersionSet() const
Retrieves whether the version option was set.
This class represents the resource settings.
uint_fast64_t getTimeoutInSeconds() const
Retrieves the time after which the computation has to be aborted in case the timeout option was set.
bool isTimeoutSet() const
Retrieves whether the timeout option was set.
A class that provides convenience operations to display run times.
MilisecondType getTimeInMilliseconds() const
Gets the measured time in milliseconds.
void stop()
Stop stopwatch and add measured time to total time.
#define STORM_LOG_ERROR(message)
void printTimeAndMemoryStatistics(uint64_t wallclockMilliseconds)
void printHeader(std::string const &name, const int argc, const char **argv)
bool parseOptions(const int argc, const char *argv[])
SettingsType const & getModule()
Get module.
SettingsManager const & manager()
Retrieves the settings manager.
SettingsManager & mutableManager()
Retrieves the settings manager.
void setTimeoutAlarm(uint_fast64_t timeout)
Set timeout by raising an alarm after timeout seconds.
void installSignalHandler(int maximalWaitTime)
Register some signal handlers to detect and correctly handle abortion (due to timeout for example).
void initializeFileLogging(std::string const &logfileName)
Sets up the logging to file.
void cleanUp()
Performs some necessary clean-up.
void setLogLevel(l3pp::LogLevel level)
Set the global log level.
void setUp()
Performs some necessary initializations.
void setOutputDigitsFromGeneralPrecision(double precision)
Set number of digits for printing output from given precision requirement.