#include <ConfigEntry.h>
|
| ConfigEntry (const ConfigEntry &other)=delete |
|
| ConfigEntry (ConfigEntry &&other)=delete |
|
template<class TypedValidator > |
| ConfigEntry (ConfigSection *section, std::string_view name, T defaultValue, TypedValidator validator, std::string_view description) |
|
| ConfigEntry (ConfigSection *section, std::string_view name, T defaultValue, std::string_view description) |
|
const T & | defaultValue () const |
|
const T & | value () const |
|
void | setValue (T value) |
|
void | toggle () |
|
void | increment () |
|
void | decrement () |
|
void | cycleIncrement () |
|
void | cycleDecrement () |
|
template<std::invocable< T > Listener> |
void | addListener (void *ctx, Listener listener) |
|
void | addListener (void *ctx, std::function< void()> listener) |
|
| AnyConfigEntry (ConfigSection *section, std::string_view name, std::string_view description, AnyHandler *handler, std::any defaultValue, Validator validator) |
|
virtual | ~AnyConfigEntry ()=default |
|
const std::type_info & | type () const |
|
const std::any & | defaultValue () const |
|
const std::any & | value () const |
|
void | setValue (std::any value) |
|
void | reset () |
|
std::string | defaultString () const |
|
std::string | string () const |
|
void | setString (std::string_view value) |
|
ConfigSection * | section () const |
|
const std::string & | name () const |
|
const std::string & | description () const |
|
void | addListener (void *ctx, std::function< void()> listener) |
|
void | removeListeners (void *ctx) |
|
◆ base_type
◆ ConfigEntry() [1/4]
◆ ConfigEntry() [2/4]
◆ ConfigEntry() [3/4]
template<class T >
template<class TypedValidator >
◆ ConfigEntry() [4/4]
◆ addListener() [1/2]
template<class T >
template<std::invocable< T > Listener>
void ConfigEntry< T >::addListener |
( |
void * |
ctx, |
|
|
Listener |
listener |
|
) |
| |
|
inline |
◆ addListener() [2/2]
template<class T >
void AnyConfigEntry::addListener |
( |
void * |
ctx, |
|
|
std::function< void()> |
listener |
|
) |
| |
|
inline |
◆ cycleDecrement()
◆ cycleIncrement()
◆ decrement()
◆ defaultValue()
◆ increment()
◆ setValue()
◆ toggle()
◆ value()
◆ wrapValidator()
template<class T >
template<class TypedValidator >
The documentation for this class was generated from the following file: