![]() |
TrinityCore
|
#include <UpdateFetcher.h>
Classes | |
| struct | AppliedFileEntry |
| struct | DirectoryEntry |
| struct | PathCompare |
Public Member Functions | |
| UpdateFetcher (Path const &updateDirectory, std::function< void(std::string const &)> const &apply, std::function< void(Path const &path)> const &applyFile, std::function< QueryResult(std::string const &)> const &retrieve) | |
| ~UpdateFetcher () | |
| UpdateResult | Update (bool const redundancyChecks, bool const allowRehash, bool const archivedRedundancy, int32 const cleanDeadReferencesMaxCount) const |
Private Types | |
| enum | UpdateMode { MODE_APPLY , MODE_REHASH } |
| enum | State { RELEASED , ARCHIVED } |
| typedef boost::filesystem::path | Path |
| typedef std::pair< Path, State > | LocaleFileEntry |
| typedef std::set< LocaleFileEntry, PathCompare > | LocaleFileStorage |
| typedef std::unordered_map< std::string, std::string > | HashToFileNameStorage |
| typedef std::unordered_map< std::string, AppliedFileEntry > | AppliedFileStorage |
| typedef std::vector< UpdateFetcher::DirectoryEntry > | DirectoryStorage |
Private Member Functions | |
| LocaleFileStorage | GetFileList () const |
| void | FillFileListRecursively (Path const &path, LocaleFileStorage &storage, State const state, uint32 const depth) const |
| DirectoryStorage | ReceiveIncludedDirectories () const |
| AppliedFileStorage | ReceiveAppliedFiles () const |
| std::string | ReadSQLUpdate (Path const &file) const |
| uint32 | Apply (Path const &path) const |
| void | UpdateEntry (AppliedFileEntry const &entry, uint32 const speed=0) const |
| void | RenameEntry (std::string const &from, std::string const &to) const |
| void | CleanUp (AppliedFileStorage const &storage) const |
| void | UpdateState (std::string const &name, State const state) const |
Private Attributes | |
| std::unique_ptr< Path > const | _sourceDirectory |
| std::function< void(std::string const &)> const | _apply |
| std::function< void(Path const &path)> const | _applyFile |
| std::function< QueryResult(std::string const &)> const | _retrieve |
Definition at line 50 of file UpdateFetcher.h.
|
private |
Definition at line 126 of file UpdateFetcher.h.
|
private |
Definition at line 127 of file UpdateFetcher.h.
|
private |
Definition at line 125 of file UpdateFetcher.h.
|
private |
Definition at line 108 of file UpdateFetcher.h.
|
private |
Definition at line 124 of file UpdateFetcher.h.
|
private |
Definition at line 52 of file UpdateFetcher.h.
|
private |
| Enumerator | |
|---|---|
| RELEASED | |
| ARCHIVED | |
Definition at line 71 of file UpdateFetcher.h.
|
private |
| Enumerator | |
|---|---|
| MODE_APPLY | |
| MODE_REHASH | |
Definition at line 65 of file UpdateFetcher.h.
| UpdateFetcher::UpdateFetcher | ( | Path const & | updateDirectory, |
| std::function< void(std::string const &)> const & | apply, | ||
| std::function< void(Path const &path)> const & | applyFile, | ||
| std::function< QueryResult(std::string const &)> const & | retrieve | ||
| ) |
Definition at line 40 of file UpdateFetcher.cpp.
|
default |
|
private |
|
private |
Definition at line 61 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 51 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
Definition at line 128 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 94 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| UpdateResult UpdateFetcher::Update | ( | bool const | redundancyChecks, |
| bool const | allowRehash, | ||
| bool const | archivedRedundancy, | ||
| int32 const | cleanDeadReferencesMaxCount | ||
| ) | const |
|
private |
Definition at line 359 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 410 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 148 of file UpdateFetcher.h.
|
private |
Definition at line 149 of file UpdateFetcher.h.
|
private |
Definition at line 150 of file UpdateFetcher.h.
|
private |
Definition at line 146 of file UpdateFetcher.h.