AzerothCore 3.3.5a
OpenSource WoW Emulator
|
Functions | |
bool | IsAppConfig (std::string_view fileName) |
bool | IsLoggingSystemOptions (std::string_view optionName) |
template<typename Format , typename... Args> | |
void | PrintError (std::string_view filename, Format &&fmt, Args &&... args) |
void | AddKey (std::string const &optionName, std::string const &optionKey, std::string_view fileName, bool isOptional, bool isReload) |
bool | ParseFile (std::string const &file, bool isOptional, bool isReload) |
bool | LoadFile (std::string const &file, bool isOptional, bool isReload) |
std::string | IniKeyToEnvVarKey (std::string const &key) |
std::string | GetEnvVarName (std::string const &configName) |
Optional< std::string > | EnvVarForIniKey (std::string const &key) |
Variables | |
std::string | _filename |
std::vector< std::string > | _additonalFiles |
std::vector< std::string > | _args |
std::unordered_map< std::string, std::string > | _configOptions |
std::unordered_map< std::string, std::string > | _envVarCache |
std::mutex | _configLock |
std::vector< std::string > | _fatalConfigOptions |
void anonymous_namespace{Config.cpp}::AddKey | ( | std::string const & | optionName, |
std::string const & | optionKey, | ||
std::string_view | fileName, | ||
bool | isOptional, | ||
bool | isReload | ||
) |
References _configOptions, ABORT, IsLoggingSystemOptions(), and PrintError().
Referenced by ConfigMgr::GetValueDefault< std::string >(), and ParseFile().
Optional< std::string > anonymous_namespace{Config.cpp}::EnvVarForIniKey | ( | std::string const & | key | ) |
References GetEnvVarName().
Referenced by GetEnvFromCache().
std::string anonymous_namespace{Config.cpp}::GetEnvVarName | ( | std::string const & | configName | ) |
References IniKeyToEnvVarKey().
Referenced by ConfigMgr::GetValueDefault< std::string >(), and EnvVarForIniKey().
std::string anonymous_namespace{Config.cpp}::IniKeyToEnvVarKey | ( | std::string const & | key | ) |
References isNumeric().
Referenced by GetEnvVarName().
bool anonymous_namespace{Config.cpp}::IsAppConfig | ( | std::string_view | fileName | ) |
Referenced by PrintError().
bool anonymous_namespace{Config.cpp}::IsLoggingSystemOptions | ( | std::string_view | optionName | ) |
Referenced by AddKey().
bool anonymous_namespace{Config.cpp}::LoadFile | ( | std::string const & | file, |
bool | isOptional, | ||
bool | isReload | ||
) |
References ParseFile(), and PrintError().
bool anonymous_namespace{Config.cpp}::ParseFile | ( | std::string const & | file, |
bool | isOptional, | ||
bool | isReload | ||
) |
References AddKey(), PrintError(), Acore::StringFormat(), and Acore::String::Trim().
Referenced by LoadFile().
|
inline |
References IsAppConfig(), LOG_ERROR, and Acore::StringFormat().
Referenced by AddKey(), LoadFile(), and ParseFile().
std::vector<std::string> anonymous_namespace{Config.cpp}::_additonalFiles |
std::vector<std::string> anonymous_namespace{Config.cpp}::_args |
std::mutex anonymous_namespace{Config.cpp}::_configLock |
std::unordered_map<std::string , std::string > anonymous_namespace{Config.cpp}::_configOptions |
Referenced by AddKey(), and ConfigMgr::GetValueDefault< std::string >().
std::unordered_map<std::string , std::string > anonymous_namespace{Config.cpp}::_envVarCache |
Referenced by GetEnvFromCache().
std::vector<std::string> anonymous_namespace{Config.cpp}::_fatalConfigOptions |
Referenced by ConfigMgr::GetValueDefault< std::string >().
std::string anonymous_namespace{Config.cpp}::_filename |
Referenced by ConfigMgr::GetValueDefault< std::string >().