![]() |
TrinityCore
|
#include "PlayerDump.h"#include "AccountMgr.h"#include "CharacterCache.h"#include "Common.h"#include "DatabaseEnv.h"#include "Log.h"#include "ObjectMgr.h"#include "Player.h"#include "StringConvert.h"#include "World.h"#include <fstream>#include <sstream>
Include dependency graph for PlayerDump.cpp:Go to the source code of this file.
Classes | |
| struct | FileCloser |
| struct | BaseTable |
| struct | DumpTable |
| class | StringTransaction |
| struct | TableField |
| struct | TableStruct |
Typedefs | |
| typedef std::unique_ptr< FILE, FileCloser > | FileHandle |
Enumerations | |
| enum | GuidType : uint8 { GUID_TYPE_ACCOUNT , GUID_TYPE_MAIL , GUID_TYPE_CHAR , GUID_TYPE_EQUIPMENT_SET , GUID_TYPE_ITEM , GUID_TYPE_PET , GUID_TYPE_NULL } |
Functions | |
| FileHandle | GetFileHandle (char const *path, char const *mode) |
| bool | StringsEqualCaseInsensitive (std::string const &left, std::string const &right) |
| auto | FindColumnByName (TableStruct &tableStruct, std::string const &columnName) -> decltype(tableStruct.TableFields.begin()) |
| int32 | GetColumnIndexByName (TableStruct const &tableStruct, std::string const &columnName) |
| void | MarkDependentColumn (TableStruct &tableStruct, std::string const &columnName, GuidType dependentType) |
| void | MarkWhereField (TableStruct &tableStruct, std::string const &whereField) |
| void | AssertBaseTable (BaseTable const &baseTable) |
| bool | FindColumn (TableStruct const &ts, std::string const &str, std::string const &column, std::string::size_type &s, std::string::size_type &e) |
| std::string | GetTableName (std::string const &str) |
| bool | ValidateFields (TableStruct const &ts, std::string const &str, size_t lineNumber) |
| bool | ChangeColumn (TableStruct const &ts, std::string &str, std::string const &column, std::string const &with, bool allowZero=false) |
| std::string | GetColumn (TableStruct const &ts, std::string &str, std::string const &column) |
| template<typename T , template< class, class, class... > class MapType, class... Rest> | |
| T | RegisterNewGuid (T oldGuid, MapType< T, T, Rest... > &guidMap, T guidOffset) |
| template<typename T , template< class, class, class... > class MapType, class... Rest> | |
| bool | ChangeGuid (TableStruct const &ts, std::string &str, std::string const &column, MapType< T, T, Rest... > &guidMap, T guidOffset, bool allowZero=false) |
| void | AppendTableDump (StringTransaction &trans, TableStruct const &tableStruct, QueryResult result) |
| std::string | GenerateWhereStr (std::string const &field, ObjectGuid::LowType guid) |
| template<typename T , template< class, class... > class SetType, class... Rest> | |
| std::string | GenerateWhereStr (std::string const &field, SetType< T, Rest... > const &guidSet) |
| void | FixNULLfields (std::string &line) |
Variables | |
| BaseTable const | BaseTables [] |
| DumpTable const | DumpTables [] |
| uint32 const | DUMP_TABLE_COUNT = std::extent<decltype(DumpTables)>::value |
| std::vector< TableStruct > | CharacterTables |
| typedef std::unique_ptr<FILE, FileCloser> FileHandle |
Definition at line 57 of file PlayerDump.cpp.
| Enumerator | |
|---|---|
| GUID_TYPE_ACCOUNT | |
| GUID_TYPE_MAIL | |
| GUID_TYPE_CHAR | |
| GUID_TYPE_EQUIPMENT_SET | |
| GUID_TYPE_ITEM | |
| GUID_TYPE_PET | |
| GUID_TYPE_NULL | |
Definition at line 32 of file PlayerDump.cpp.
|
inline |
Definition at line 606 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 267 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 558 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 593 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 430 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 669 of file PlayerDump.cpp.
|
inline |
Definition at line 571 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 228 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 251 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
Definition at line 517 of file PlayerDump.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| BaseTable const BaseTables[] |
Definition at line 73 of file PlayerDump.cpp.
| std::vector<TableStruct> CharacterTables |
Definition at line 196 of file PlayerDump.cpp.
| uint32 const DUMP_TABLE_COUNT = std::extent<decltype(DumpTables)>::value |
Definition at line 152 of file PlayerDump.cpp.
| DumpTable const DumpTables[] |
Definition at line 89 of file PlayerDump.cpp.