#include <Config.h>
|
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) More...
|
|
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. More...
|
|
bool | Reload (std::vector< std::string > &errors) |
|
std::string | GetStringDefault (std::string const &name, const std::string &def, bool quiet=false) const |
|
bool | GetBoolDefault (std::string const &name, bool def, bool quiet=false) const |
|
int32 | GetIntDefault (std::string const &name, int32 def, bool quiet=false) const |
|
int64 | GetInt64Default (std::string const &name, int64 def, bool quiet=false) const |
|
float | GetFloatDefault (std::string const &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/2]
◆ ConfigMgr() [2/2]
◆ ~ConfigMgr()
ConfigMgr::~ConfigMgr |
( |
| ) |
|
|
privatedefault |
◆ GetArguments()
std::vector< std::string > const & ConfigMgr::GetArguments |
( |
| ) |
const |
◆ GetBoolDefault()
bool ConfigMgr::GetBoolDefault |
( |
std::string const & |
name, |
|
|
bool |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetFilename()
std::string const & ConfigMgr::GetFilename |
( |
| ) |
|
◆ GetFloatDefault()
float ConfigMgr::GetFloatDefault |
( |
std::string const & |
name, |
|
|
float |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetInt64Default()
int64 ConfigMgr::GetInt64Default |
( |
std::string const & |
name, |
|
|
int64 |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetIntDefault()
int32 ConfigMgr::GetIntDefault |
( |
std::string const & |
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 const & |
name, |
|
|
const std::string & |
def, |
|
|
bool |
quiet = false |
|
) |
| const |
◆ GetValueDefault()
template<class T >
T ConfigMgr::GetValueDefault |
( |
std::string 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 139 of file Config.cpp.
◆ operator=()
◆ OverrideWithEnvVariablesIfAny()
std::vector< std::string > ConfigMgr::OverrideWithEnvVariablesIfAny |
( |
| ) |
|
Overrides configuration with environment variables and returns overridden keys.
Definition at line 200 of file Config.cpp.
◆ Reload()
bool ConfigMgr::Reload |
( |
std::vector< std::string > & |
errors | ) |
|
The documentation for this class was generated from the following files: