Seastar
High performance C++ framework for concurrent servers
|
A configuration option value.
T | the type of the contained value. |
#include <seastar/util/program-options.hh>
Public Member Functions | |
value (option_group &group, std::string name, std::optional< T > default_value, std::string description) | |
value (option_group &group, std::string name, unused) | |
Construct an unused value. | |
value (value &&)=default | |
operator bool () const | |
Is there a contained value? | |
bool | defaulted () const |
Does this value still contain a default-value? | |
const T & | get_value () const |
Return the contained value, assumes there is one, see operator bool(). | |
T & | get_value () |
void | set_default_value (T value) |
void | set_value (T value) |
bool | used () const |
const std::string & | name () const |
const std::string & | description () const |
void | describe (options_descriptor &descriptor) const |
void | mutate (options_mutator &mutator) |
Public Attributes | |
option_group * | _group |
bool | _used = true |
std::string | _name |
std::string | _description |
|
inline |
Construct a value.
group | - the group containing this value |
name | - the name of this value |
default_value | - the default value, can be unset |
description | - the description of the value |