14const std::string ResourceSettings::timeoutOptionName =
"timeout";
15const std::string ResourceSettings::timeoutOptionShortName =
"t";
16const std::string ResourceSettings::printTimeAndMemoryOptionName =
"timemem";
17const std::string ResourceSettings::printTimeAndMemoryOptionShortName =
"tm";
18const std::string ResourceSettings::signalWaitingTimeOptionName =
"signal-timeout";
23 .setShortName(timeoutOptionShortName)
29 .setShortName(printTimeAndMemoryOptionShortName)
32 "Specifies how much time can pass until termination when receiving a termination signal.")
virtual uint_fast64_t getValueAsUnsignedInteger() const =0
Retrieves the value of this argument as an unsigned integer.
static ArgumentBuilder createUnsignedIntegerArgument(std::string const &name, std::string const &description)
Creates an unsigned integer argument with the given parameters.
This class provides the interface to create an option...
ArgumentBase const & getArgumentByName(std::string const &argumentName) const
Returns a reference to the argument with the specified long name.
bool getHasOptionBeenSet() const
Retrieves whether the option has been set.
This is the base class of the settings for a particular module.
void addOption(std::shared_ptr< Option > const &option)
Adds and registers the given option.
Option & getOption(std::string const &longName)
Retrieves the option with the given long name.
bool isPrintTimeAndMemorySet() const
Retrieves whether time and memory consumption shall be printed at the end of a run.
uint_fast64_t getTimeoutInSeconds() const
Retrieves the time after which the computation has to be aborted in case the timeout option was set.
uint_fast64_t getSignalWaitingTimeInSeconds() const
Retrieves the waiting time of the program after a signal.
bool isTimeoutSet() const
Retrieves whether the timeout option was set.
ResourceSettings()
Creates a new set of general settings.
static const std::string moduleName
SettingsType const & getModule()
Get module.