|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Config.h>
Public Member Functions | |
| bool | GetBoolDefault (const char *name, bool def) |
| std::string const & | GetFilename () |
| float | GetFloatDefault (const char *name, float def) |
| int | GetIntDefault (const char *name, int def) |
| std::list< std::string > | GetKeysByString (std::string const &name) |
| std::string | GetStringDefault (const char *name, const std::string &def) |
| bool | LoadInitial (char const *file) |
| Method used only for loading main configuration files (authserver.conf and worldserver.conf). | |
| bool | LoadMore (char const *file) |
| bool | Reload () |
Private Types | |
| typedef std::lock_guard< std::mutex > | GuardType |
| typedef std::mutex | LockType |
Private Member Functions | |
| ConfigMgr () | |
| ConfigMgr (ConfigMgr const &) | |
| bool | GetValueHelper (const char *name, std::string &result) |
| bool | LoadData (char const *file) |
| ConfigMgr & | operator= (ConfigMgr const &) |
| ~ConfigMgr () | |
Private Attributes | |
| Config | _config |
| bool | _configLoaded |
| LockType | _configLock |
| std::string | _filename |
Friends | |
| class | ConfigLoader |
| class | Skyfire::Singleton< ConfigMgr, Skyfire::NullMutex > |
|
private |
|
private |
|
inlineprivate |
Definition at line 23 of file Config.h.
References _configLoaded, and ConfigMgr().
Referenced by ConfigMgr(), ConfigMgr(), and operator=().
|
private |
References ConfigMgr().
| bool ConfigMgr::GetBoolDefault | ( | const char * | name, |
| bool | def ) |
Definition at line 166 of file Config.cpp.
References GetValueHelper().
| std::string const & ConfigMgr::GetFilename | ( | ) |
Definition at line 189 of file Config.cpp.
References _configLock, and _filename.
| float ConfigMgr::GetFloatDefault | ( | const char * | name, |
| float | def ) |
Definition at line 183 of file Config.cpp.
References GetValueHelper().
| int ConfigMgr::GetIntDefault | ( | const char * | name, |
| int | def ) |
Definition at line 177 of file Config.cpp.
References GetValueHelper().
| std::list< std::string > ConfigMgr::GetKeysByString | ( | std::string const & | name | ) |
Definition at line 195 of file Config.cpp.
References _config, _configLoaded, and _configLock.
| std::string ConfigMgr::GetStringDefault | ( | const char * | name, |
| const std::string & | def ) |
Definition at line 160 of file Config.cpp.
References GetValueHelper().
|
private |
Definition at line 68 of file Config.cpp.
References _config, _configLoaded, and _configLock.
Referenced by GetBoolDefault(), GetFloatDefault(), GetIntDefault(), and GetStringDefault().
|
private |
Definition at line 123 of file Config.cpp.
References _config.
Referenced by LoadInitial(), and LoadMore().
| bool ConfigMgr::LoadInitial | ( | char const * | file | ) |
Method used only for loading main configuration files (authserver.conf and worldserver.conf).
Definition at line 88 of file Config.cpp.
References _config, _configLoaded, _configLock, _filename, ASSERT, and LoadData().
Referenced by Reload().
| bool ConfigMgr::LoadMore | ( | char const * | file | ) |
This method loads additional configuration files It is recommended to use this method in WorldScript::OnConfigLoad hooks
Definition at line 108 of file Config.cpp.
References _configLoaded, _configLock, ASSERT, and LoadData().
References ConfigMgr().
| bool ConfigMgr::Reload | ( | ) |
Definition at line 118 of file Config.cpp.
References _filename, and LoadInitial().
|
friend |
|
friend |
|
private |
Definition at line 56 of file Config.h.
Referenced by GetKeysByString(), GetValueHelper(), LoadData(), and LoadInitial().
|
private |
Definition at line 57 of file Config.h.
Referenced by ConfigMgr(), GetKeysByString(), GetValueHelper(), LoadInitial(), and LoadMore().
|
private |
Definition at line 58 of file Config.h.
Referenced by GetFilename(), GetKeysByString(), GetValueHelper(), LoadInitial(), and LoadMore().
|
private |
Definition at line 55 of file Config.h.
Referenced by GetFilename(), LoadInitial(), and Reload().