![]() |
TrinityCore
|
#include <DatabaseLoader.h>
Public Types | |
| enum | DatabaseTypeFlags { DATABASE_NONE = 0 , DATABASE_LOGIN = 1 , DATABASE_CHARACTER = 2 , DATABASE_WORLD = 4 , DATABASE_MASK_ALL = DATABASE_LOGIN | DATABASE_CHARACTER | DATABASE_WORLD } |
Public Member Functions | |
| DatabaseLoader (std::string const &logger, uint32 const defaultUpdateMask) | |
| template<class T > | |
| DatabaseLoader & | AddDatabase (DatabaseWorkerPool< T > &pool, std::string const &name) |
| bool | Load () |
Private Types | |
| using | Predicate = std::function< bool()> |
| using | Closer = std::function< void()> |
Private Member Functions | |
| bool | OpenDatabases () |
| bool | PopulateDatabases () |
| bool | UpdateDatabases () |
| bool | PrepareStatements () |
| bool | Process (std::queue< Predicate > &queue) |
Private Attributes | |
| std::string const | _logger |
| bool const | _autoSetup |
| uint32 const | _updateFlags |
| std::queue< Predicate > | _open |
| std::queue< Predicate > | _populate |
| std::queue< Predicate > | _update |
| std::queue< Predicate > | _prepare |
| std::stack< Closer > | _close |
Definition at line 33 of file DatabaseLoader.h.
|
private |
Definition at line 63 of file DatabaseLoader.h.
|
private |
Definition at line 62 of file DatabaseLoader.h.
| Enumerator | |
|---|---|
| DATABASE_NONE | |
| DATABASE_LOGIN | |
| DATABASE_CHARACTER | |
| DATABASE_WORLD | |
| DATABASE_MASK_ALL | |
Definition at line 45 of file DatabaseLoader.h.
| DatabaseLoader::DatabaseLoader | ( | std::string const & | logger, |
| uint32 const | defaultUpdateMask | ||
| ) |
Definition at line 26 of file DatabaseLoader.cpp.
| template TC_DATABASE_API DatabaseLoader & DatabaseLoader::AddDatabase< WorldDatabaseConnection > | ( | DatabaseWorkerPool< T > & | pool, |
| std::string const & | name | ||
| ) |
Definition at line 33 of file DatabaseLoader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool DatabaseLoader::Load | ( | ) |
Definition at line 121 of file DatabaseLoader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 141 of file DatabaseLoader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 146 of file DatabaseLoader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 156 of file DatabaseLoader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
Definition at line 151 of file DatabaseLoader.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 70 of file DatabaseLoader.h.
|
private |
Definition at line 74 of file DatabaseLoader.h.
|
private |
Definition at line 69 of file DatabaseLoader.h.
|
private |
Definition at line 73 of file DatabaseLoader.h.
|
private |
Definition at line 73 of file DatabaseLoader.h.
|
private |
Definition at line 73 of file DatabaseLoader.h.
|
private |
Definition at line 73 of file DatabaseLoader.h.
|
private |
Definition at line 71 of file DatabaseLoader.h.