Storm
A Modern Probabilistic Model Checker
|
This class provides the interface to create an option... More...
#include <OptionBuilder.h>
Public Member Functions | |
OptionBuilder (std::string const &moduleName, std::string const &longName, bool requireModulePrefix, std::string const &description) | |
Creates a new option builder for an option with the given module, name and description. | |
OptionBuilder & | setShortName (std::string const &shortName) |
Sets a short name for the option. | |
OptionBuilder & | setIsRequired (bool isRequired) |
Sets whether the option is required. | |
OptionBuilder & | setIsAdvanced (bool isAdvanced=true) |
Sets whether the option is only displayed in the advanced help. | |
OptionBuilder & | addArgument (std::shared_ptr< ArgumentBase > argument) |
Adds the given argument to the arguments of this option. | |
std::shared_ptr< Option > | build () |
Builds an option from the data that was added to this builder. | |
This class provides the interface to create an option...
Definition at line 26 of file OptionBuilder.h.
|
inline |
Creates a new option builder for an option with the given module, name and description.
moduleName | The name of the module to which this option belongs. |
longName | The long name of the option. |
requireModulePrefix | Sets whether this option can only be set by specifying the module name as its prefix. |
description | A description that explains the purpose of this option. |
Definition at line 36 of file OptionBuilder.h.
|
inline |
Adds the given argument to the arguments of this option.
argument | The argument to be added. |
Definition at line 88 of file OptionBuilder.h.
|
inline |
Builds an option from the data that was added to this builder.
Definition at line 109 of file OptionBuilder.h.
|
inline |
Sets whether the option is only displayed in the advanced help.
Definition at line 77 of file OptionBuilder.h.
|
inline |
Sets whether the option is required.
isRequired | A flag indicating whether the option is required. |
Definition at line 69 of file OptionBuilder.h.
|
inline |
Sets a short name for the option.
shortName | A short name for the option. |
Definition at line 57 of file OptionBuilder.h.