Seastar
High performance C++ framework for concurrent servers
|
A switch-style configuration option value.
Contains no value, can be set or not.
#include <seastar/util/program-options.hh>
Public Member Functions | |
value (option_group &group, std::string name, std::string description) | |
value (option_group &group, std::string name, unused) | |
Construct an unused value. | |
operator bool () const | |
Is the option set? | |
void | set_value () |
void | unset_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 |
description | - the description of the value |