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

#include <Config.h>

Inheritance diagram for Config:
GameConfig

Public Member Functions

 Config ()=default
 
 Config (const Config &other)=delete
 
 Config (Config &&other)=delete
 
void load (std::string_view path)
 
void save (std::string_view path) const
 
void load (InputStream *stream)
 
void save (OutputStream *stream) const
 
void reset ()
 
void registerSection (ConfigSection *section)
 
ConfigSectionsection (std::string_view name) const
 
std::vector< ConfigSection * > sections () const
 

Private Attributes

std::map< std::string, ConfigSection *, TransparentStringLess_sectionByName
 

Constructor & Destructor Documentation

◆ Config() [1/3]

Config::Config ( )
default

◆ Config() [2/3]

Config::Config ( const Config other)
delete

◆ Config() [3/3]

Config::Config ( Config &&  other)
delete

Member Function Documentation

◆ load() [1/2]

void Config::load ( InputStream stream)

◆ load() [2/2]

void Config::load ( std::string_view  path)

◆ registerSection()

void Config::registerSection ( ConfigSection section)

◆ reset()

void Config::reset ( )

◆ save() [1/2]

void Config::save ( OutputStream stream) const

◆ save() [2/2]

void Config::save ( std::string_view  path) const

◆ section()

ConfigSection * Config::section ( std::string_view  name) const

◆ sections()

std::vector< ConfigSection * > Config::sections ( ) const

Member Data Documentation

◆ _sectionByName

std::map<std::string, ConfigSection *, TransparentStringLess> Config::_sectionByName
private

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