AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Config.h"
#include "Log.h"
#include "StringConvert.h"
#include "StringFormat.h"
#include "Tokenize.h"
#include "Util.h"
#include <cstdlib>
#include <fstream>
#include <mutex>
#include <unordered_map>
Go to the source code of this file.
Namespaces | |
namespace | anonymous_namespace{Config.cpp} |
Macros | |
#define | TEMPLATE_CONFIG_OPTION(__typename) template __typename ConfigMgr::GetOption<__typename>(std::string const& name, __typename const& def, bool showLogs /*= true*/) const; |
Functions | |
bool | anonymous_namespace{Config.cpp}::IsAppConfig (std::string_view fileName) |
bool | anonymous_namespace{Config.cpp}::IsLoggingSystemOptions (std::string_view optionName) |
template<typename Format , typename... Args> | |
void | anonymous_namespace{Config.cpp}::PrintError (std::string_view filename, Format &&fmt, Args &&... args) |
void | anonymous_namespace{Config.cpp}::AddKey (std::string const &optionName, std::string const &optionKey, std::string_view fileName, bool isOptional, bool isReload) |
bool | anonymous_namespace{Config.cpp}::ParseFile (std::string const &file, bool isOptional, bool isReload) |
bool | anonymous_namespace{Config.cpp}::LoadFile (std::string const &file, bool isOptional, bool isReload) |
std::string | anonymous_namespace{Config.cpp}::IniKeyToEnvVarKey (std::string const &key) |
std::string | anonymous_namespace{Config.cpp}::GetEnvVarName (std::string const &configName) |
Optional< std::string > | anonymous_namespace{Config.cpp}::EnvVarForIniKey (std::string const &key) |
Optional< std::string > | GetEnvFromCache (std::string const &configName, std::string const &envVarName) |
template<> | |
std::string | ConfigMgr::GetValueDefault< std::string > (std::string const &name, std::string const &def, bool showLogs) const |
Variables | |
std::string | anonymous_namespace{Config.cpp}::_filename |
std::vector< std::string > | anonymous_namespace{Config.cpp}::_additonalFiles |
std::vector< std::string > | anonymous_namespace{Config.cpp}::_args |
std::unordered_map< std::string, std::string > | anonymous_namespace{Config.cpp}::_configOptions |
std::unordered_map< std::string, std::string > | anonymous_namespace{Config.cpp}::_envVarCache |
std::mutex | anonymous_namespace{Config.cpp}::_configLock |
#define TEMPLATE_CONFIG_OPTION | ( | __typename | ) | template __typename ConfigMgr::GetOption<__typename>(std::string const& name, __typename const& def, bool showLogs /*= true*/) const; |
std::string ConfigMgr::GetValueDefault< std::string > | ( | std::string const & | name, |
std::string const & | def, | ||
bool | showLogs | ||
) | const |
References anonymous_namespace{Config.cpp}::_configOptions, anonymous_namespace{Config.cpp}::_filename, anonymous_namespace{Config.cpp}::AddKey(), GetEnvFromCache(), anonymous_namespace{Config.cpp}::GetEnvVarName(), LOG_ERROR, and LOG_INFO.
Optional< std::string > GetEnvFromCache | ( | std::string const & | configName, |
std::string const & | envVarName | ||
) |
References anonymous_namespace{Config.cpp}::_envVarCache, and anonymous_namespace{Config.cpp}::EnvVarForIniKey().
Referenced by ConfigMgr::GetValueDefault< std::string >(), and ConfigMgr::GetValueDefault().