OpenEnroth efd3b88
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Attributes | List of all members
KeyConfigEntry Class Reference

#include <KeyConfigEntry.h>

Inheritance diagram for KeyConfigEntry:
ConfigEntry< PlatformKey > AnyConfigEntry

Public Member Functions

 KeyConfigEntry (ConfigSection *section, InputAction action, std::string_view name, PlatformKey defaultValue, std::string_view description)
 
InputAction inputAction () const
 
- Public Member Functions inherited from ConfigEntry< PlatformKey >
 ConfigEntry (const ConfigEntry &other)=delete
 
 ConfigEntry (ConfigEntry &&other)=delete
 
 ConfigEntry (ConfigSection *section, std::string_view name, PlatformKey defaultValue, TypedValidator validator, std::string_view description)
 
 ConfigEntry (ConfigSection *section, std::string_view name, PlatformKey defaultValue, std::string_view description)
 
const PlatformKeydefaultValue () const
 
const PlatformKeyvalue () const
 
void setValue (PlatformKey value)
 
void toggle ()
 
void increment ()
 
void decrement ()
 
void cycleIncrement ()
 
void cycleDecrement ()
 
void addListener (void *ctx, Listener listener)
 
void addListener (void *ctx, std::function< void()> listener)
 
- Public Member Functions inherited from AnyConfigEntry
 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)
 
ConfigSectionsection () const
 
const std::string & name () const
 
const std::string & description () const
 
void addListener (void *ctx, std::function< void()> listener)
 
void removeListeners (void *ctx)
 

Private Types

using base_type = ConfigEntry< PlatformKey >
 

Private Attributes

InputAction _inputAction
 

Additional Inherited Members

- Public Types inherited from AnyConfigEntry
using Validator = std::function< std::any(std::any)>
 
- Protected Member Functions inherited from AnyConfigEntry
Validator validator () const
 

Member Typedef Documentation

◆ base_type

Constructor & Destructor Documentation

◆ KeyConfigEntry()

KeyConfigEntry::KeyConfigEntry ( ConfigSection section,
InputAction  action,
std::string_view  name,
PlatformKey  defaultValue,
std::string_view  description 
)
inline

Member Function Documentation

◆ inputAction()

InputAction KeyConfigEntry::inputAction ( ) const
inline

Member Data Documentation

◆ _inputAction

InputAction KeyConfigEntry::_inputAction
private

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