FDR
4.2.7(6ecbe5a21b71ab020e8fcaeccfe5ebaad0599f4f)
|
46 virtual std::string
get()
const = 0;
52 virtual std::string
name()
const = 0;
60 virtual void set(
const std::string& new_value) = 0;
63 static const std::vector<std::shared_ptr<Option>>&
options();
68 static const std::shared_ptr<Option>&
get_option(
const std::string& option_name);
virtual void set(const std::string &new_value)=0
Sets the value of the option.
Thrown when an option is set to a disallowed value.
Definition: option.h:13
virtual std::string default_value() const =0
The default value of this option.
A setting for FDR.
Definition: option.h:30
static const std::shared_ptr< Option > & get_option(const std::string &option_name)
Returns the Option with the specified name.
virtual std::vector< std::string > allowed_values() const =0
The values that the option is allowed to take.
static const std::vector< std::shared_ptr< Option > > & options()
Returns a list of all the options available.
virtual std::string get() const =0
The current value of this option.
An error thrown by libfdr.
Definition: error.h:11
virtual std::string name() const =0
The current value of the option.
Thrown when an option is not known (i.e. the key is invalid).
Definition: option.h:20
virtual std::string description() const =0
A human-readable description of the option.