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 <boost/algorithm/string/find.hpp>
#include <fstream>
#include <sstream>
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 58 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 33 of file PlayerDump.cpp.
|
inline |
Definition at line 607 of file PlayerDump.cpp.
|
inline |
Definition at line 268 of file PlayerDump.cpp.
|
inline |
Definition at line 559 of file PlayerDump.cpp.
|
inline |
Definition at line 594 of file PlayerDump.cpp.
|
inline |
Definition at line 431 of file PlayerDump.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 670 of file PlayerDump.cpp.
|
inline |
Definition at line 572 of file PlayerDump.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 229 of file PlayerDump.cpp.
|
inline |
Definition at line 252 of file PlayerDump.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 518 of file PlayerDump.cpp.
BaseTable const BaseTables[] |
Definition at line 74 of file PlayerDump.cpp.
std::vector<TableStruct> CharacterTables |
Definition at line 197 of file PlayerDump.cpp.
uint32 const DUMP_TABLE_COUNT = std::extent<decltype(DumpTables)>::value |
Definition at line 153 of file PlayerDump.cpp.
DumpTable const DumpTables[] |
Definition at line 90 of file PlayerDump.cpp.