#include <Config.h>
|
| | ConfigMgr (ConfigMgr const &)=delete |
| |
| | ConfigMgr (ConfigMgr &&)=delete |
| |
| ConfigMgr & | operator= (ConfigMgr const &)=delete |
| |
| ConfigMgr & | operator= (ConfigMgr &&)=delete |
| |
| bool | LoadInitial (std::string file, std::vector< std::string > args, std::string &error) |
| | Method used only for loading main configuration files (bnetserver.conf and worldserver.conf)
|
| |
| bool | LoadAdditionalFile (std::string file, bool keepOnReload, std::string &error) |
| |
| bool | LoadAdditionalDir (std::string const &dir, bool keepOnReload, std::vector< std::string > &loadedFiles, std::vector< std::string > &errors) |
| |
| std::vector< std::string > | OverrideWithEnvVariablesIfAny () |
| | Overrides configuration with environment variables and returns overridden keys.
|
| |
| bool | Reload (std::vector< std::string > &errors) |
| |
| std::string | GetStringDefault (std::string_view name, std::string_view def, bool quiet=false) const |
| |
| bool | GetBoolDefault (std::string_view name, bool def, bool quiet=false) const |
| |
| int32 | GetIntDefault (std::string_view name, int32 def, bool quiet=false) const |
| |
| int64 | GetInt64Default (std::string_view name, int64 def, bool quiet=false) const |
| |
| float | GetFloatDefault (std::string_view name, float def, bool quiet=false) const |
| |
| std::string const & | GetFilename () |
| |
| std::vector< std::string > const & | GetArguments () const |
| |
| std::vector< std::string > | GetKeysByString (std::string const &name) |
| |
Definition at line 26 of file Config.h.
◆ ConfigMgr() [1/3]
◆ ~ConfigMgr()
| ConfigMgr::~ConfigMgr |
( |
| ) |
|
|
privatedefault |
◆ ConfigMgr() [2/3]
◆ ConfigMgr() [3/3]
◆ GetArguments()
| std::vector< std::string > const & ConfigMgr::GetArguments |
( |
| ) |
const |
◆ GetBoolDefault()
| bool ConfigMgr::GetBoolDefault |
( |
std::string_view |
name, |
|
|
bool |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetFilename()
| std::string const & ConfigMgr::GetFilename |
( |
| ) |
|
◆ GetFloatDefault()
| float ConfigMgr::GetFloatDefault |
( |
std::string_view |
name, |
|
|
float |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetInt64Default()
| int64 ConfigMgr::GetInt64Default |
( |
std::string_view |
name, |
|
|
int64 |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetIntDefault()
| int32 ConfigMgr::GetIntDefault |
( |
std::string_view |
name, |
|
|
int32 |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetKeysByString()
| std::vector< std::string > ConfigMgr::GetKeysByString |
( |
std::string const & |
name | ) |
|
◆ GetStringDefault()
| std::string ConfigMgr::GetStringDefault |
( |
std::string_view |
name, |
|
|
std::string_view |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetValueDefault()
template<class T , class R >
| R ConfigMgr::GetValueDefault |
( |
std::string_view const & |
name, |
|
|
T |
def, |
|
|
bool |
quiet |
|
) |
| const |
|
private |
◆ instance()
◆ LoadAdditionalDir()
| bool ConfigMgr::LoadAdditionalDir |
( |
std::string const & |
dir, |
|
|
bool |
keepOnReload, |
|
|
std::vector< std::string > & |
loadedFiles, |
|
|
std::vector< std::string > & |
errors |
|
) |
| |
◆ LoadAdditionalFile()
| bool ConfigMgr::LoadAdditionalFile |
( |
std::string |
file, |
|
|
bool |
keepOnReload, |
|
|
std::string & |
error |
|
) |
| |
◆ LoadInitial()
| bool ConfigMgr::LoadInitial |
( |
std::string |
file, |
|
|
std::vector< std::string > |
args, |
|
|
std::string & |
error |
|
) |
| |
Method used only for loading main configuration files (bnetserver.conf and worldserver.conf)
Definition at line 137 of file Config.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ OverrideWithEnvVariablesIfAny()
| std::vector< std::string > ConfigMgr::OverrideWithEnvVariablesIfAny |
( |
| ) |
|
Overrides configuration with environment variables and returns overridden keys.
Definition at line 198 of file Config.cpp.
◆ Reload()
| bool ConfigMgr::Reload |
( |
std::vector< std::string > & |
errors | ) |
|
The documentation for this class was generated from the following files: