OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ConfigSection Class Reference

#include <ConfigSection.h>

Inheritance diagram for ConfigSection:
GameConfig::Audio GameConfig::CheatCommands GameConfig::Debug GameConfig::Gamepad GameConfig::Gameplay GameConfig::Graphics GameConfig::Keybindings GameConfig::Settings GameConfig::Window

Public Member Functions

 ConfigSection (Config *config, std::string_view name)
 
 ConfigSection (const ConfigSection &other)=delete
 
 ConfigSection (ConfigSection &&other)=delete
 
Configconfig () const
 
const std::string & name () const
 
void registerEntry (AnyConfigEntry *entry)
 
AnyConfigEntryentry (std::string_view name) const
 
std::vector< AnyConfigEntry * > entries () const
 

Private Attributes

Config_config = nullptr
 
std::string _name
 
std::map< std::string, AnyConfigEntry *, TransparentStringLess_entryByName
 

Constructor & Destructor Documentation

◆ ConfigSection() [1/3]

ConfigSection::ConfigSection ( Config config,
std::string_view  name 
)

◆ ConfigSection() [2/3]

ConfigSection::ConfigSection ( const ConfigSection other)
delete

◆ ConfigSection() [3/3]

ConfigSection::ConfigSection ( ConfigSection &&  other)
delete

Member Function Documentation

◆ config()

Config * ConfigSection::config ( ) const
inline

◆ entries()

std::vector< AnyConfigEntry * > ConfigSection::entries ( ) const

◆ entry()

AnyConfigEntry * ConfigSection::entry ( std::string_view  name) const

◆ name()

const std::string & ConfigSection::name ( ) const
inline

◆ registerEntry()

void ConfigSection::registerEntry ( AnyConfigEntry entry)

Member Data Documentation

◆ _config

Config* ConfigSection::_config = nullptr
private

◆ _entryByName

std::map<std::string, AnyConfigEntry *, TransparentStringLess> ConfigSection::_entryByName
private

◆ _name

std::string ConfigSection::_name
private

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