![]() |
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 49 of file UpdateFetcher.h.
|
private |
Definition at line 116 of file UpdateFetcher.h.
|
private |
Definition at line 117 of file UpdateFetcher.h.
|
private |
Definition at line 115 of file UpdateFetcher.h.
|
private |
Definition at line 107 of file UpdateFetcher.h.
|
private |
Definition at line 114 of file UpdateFetcher.h.
|
private |
Definition at line 51 of file UpdateFetcher.h.
|
private |
| Enumerator | |
|---|---|
| RELEASED | |
| ARCHIVED | |
Definition at line 70 of file UpdateFetcher.h.
|
private |
| Enumerator | |
|---|---|
| MODE_APPLY | |
| MODE_REHASH | |
Definition at line 64 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.
| UpdateFetcher::~UpdateFetcher | ( | ) |
Definition at line 49 of file UpdateFetcher.cpp.
|
private |
|
private |
Definition at line 63 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 53 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 130 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 96 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 362 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 413 of file UpdateFetcher.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 138 of file UpdateFetcher.h.
|
private |
Definition at line 139 of file UpdateFetcher.h.
|
private |
Definition at line 140 of file UpdateFetcher.h.
|
private |
Definition at line 136 of file UpdateFetcher.h.