Seastar
High performance C++ framework for concurrent servers
Public Member Functions | Public Attributes | List of all members
seastar::program_options::value< std::monostate > Class Reference

Detailed Description

A switch-style configuration option value.

Contains no value, can be set or not.

#include <seastar/util/program-options.hh>

Inheritance diagram for seastar::program_options::value< std::monostate >:
seastar::program_options::basic_value

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
 

Constructor & Destructor Documentation

◆ value()

seastar::program_options::value< std::monostate >::value ( option_group group,
std::string  name,
std::string  description 
)
inline

Construct a value.

Parameters
group- the group containing this value
name- the name of this value
description- the description of the value

The documentation for this class was generated from the following file: