#include <AnyConfigEntry.h>
|
using | Validator = std::function< std::any(std::any)> |
|
◆ Validator
◆ AnyConfigEntry()
AnyConfigEntry::AnyConfigEntry |
( |
ConfigSection * |
section, |
|
|
std::string_view |
name, |
|
|
std::string_view |
description, |
|
|
AnyHandler * |
handler, |
|
|
std::any |
defaultValue, |
|
|
Validator |
validator |
|
) |
| |
◆ ~AnyConfigEntry()
virtual AnyConfigEntry::~AnyConfigEntry |
( |
| ) |
|
|
virtualdefault |
◆ addListener()
void AnyConfigEntry::addListener |
( |
void * |
ctx, |
|
|
std::function< void()> |
listener |
|
) |
| |
|
inline |
◆ defaultString()
std::string AnyConfigEntry::defaultString |
( |
| ) |
const |
◆ defaultValue()
const std::any & AnyConfigEntry::defaultValue |
( |
| ) |
const |
|
inline |
◆ description()
const std::string & AnyConfigEntry::description |
( |
| ) |
const |
|
inline |
◆ name()
const std::string & AnyConfigEntry::name |
( |
| ) |
const |
|
inline |
◆ removeListeners()
void AnyConfigEntry::removeListeners |
( |
void * |
ctx | ) |
|
|
inline |
◆ reset()
void AnyConfigEntry::reset |
( |
| ) |
|
|
inline |
◆ section()
◆ setString()
void AnyConfigEntry::setString |
( |
std::string_view |
value | ) |
|
◆ setValue()
void AnyConfigEntry::setValue |
( |
std::any |
value | ) |
|
◆ string()
std::string AnyConfigEntry::string |
( |
| ) |
const |
◆ type()
const std::type_info & AnyConfigEntry::type |
( |
| ) |
const |
|
inline |
◆ validator()
Validator AnyConfigEntry::validator |
( |
| ) |
const |
|
inlineprotected |
◆ value()
const std::any & AnyConfigEntry::value |
( |
| ) |
const |
|
inline |
◆ _defaultValue
std::any AnyConfigEntry::_defaultValue |
|
private |
◆ _description
std::string AnyConfigEntry::_description |
|
private |
◆ _handler
◆ _listeners
std::vector<std::pair<void *, std::function<void()> > > AnyConfigEntry::_listeners |
|
private |
◆ _name
std::string AnyConfigEntry::_name |
|
private |
◆ _section
◆ _validator
Validator AnyConfigEntry::_validator = nullptr |
|
private |
◆ _value
std::any AnyConfigEntry::_value |
|
private |
The documentation for this class was generated from the following files: