TrinityCore
|
#include "Common.h"
#include "PlayerDump.h"
#include "DatabaseEnv.h"
#include "UpdateFields.h"
#include "ObjectMgr.h"
#include "Player.h"
#include "AccountMgr.h"
#include "World.h"
Classes | |
struct | DumpTable |
Macros | |
#define | DUMP_TABLE_COUNT 30 |
#define | ROLLBACK(DR) {fclose(fin); return (DR);} |
Functions | |
static bool | FindTokNth (std::string const &str, uint32 n, std::string::size_type &s, std::string::size_type &e) |
std::string | GetTokNth (std::string const &str, uint32 n) |
bool | FindNth (std::string const &str, uint32 n, std::string::size_type &s, std::string::size_type &e) |
std::string | GetTableName (std::string const &str) |
bool | ChangeNth (std::string &str, uint32 n, char const *with, bool insert=false, bool allowZero=false) |
std::string | GetNth (std::string &str, uint32 n) |
bool | ChangeTokNth (std::string &str, uint32 n, char const *with, bool insert=false, bool allowZero=false) |
ObjectGuid::LowType | RegisterNewGuid (ObjectGuid::LowType oldGuid, PlayerDump::DumpGuidMap &guidMap, ObjectGuid::LowType guidOffset) |
bool | ChangeGuid (std::string &str, uint32 n, PlayerDump::DumpGuidMap &guidMap, ObjectGuid::LowType guidOffset, bool allowZero=false) |
std::string | CreateDumpString (char const *tableName, QueryResult result) |
void | StoreGUID (QueryResult result, uint32 field, PlayerDump::DumpGuidSet &guids) |
void | StoreGUID (QueryResult result, uint32 data, uint32 field, PlayerDump::DumpGuidSet &guids) |
void | fixNULLfields (std::string &line) |
Variables | |
static DumpTable | dumpTables [DUMP_TABLE_COUNT] |
#define DUMP_TABLE_COUNT 30 |
#define ROLLBACK | ( | DR | ) | {fclose(fin); return (DR);} |
bool ChangeGuid | ( | std::string & | str, |
uint32 | n, | ||
PlayerDump::DumpGuidMap & | guidMap, | ||
ObjectGuid::LowType | guidOffset, | ||
bool | allowZero = false |
||
) |
bool ChangeNth | ( | std::string & | str, |
uint32 | n, | ||
char const * | with, | ||
bool | insert = false , |
||
bool | allowZero = false |
||
) |
bool ChangeTokNth | ( | std::string & | str, |
uint32 | n, | ||
char const * | with, | ||
bool | insert = false , |
||
bool | allowZero = false |
||
) |
std::string CreateDumpString | ( | char const * | tableName, |
QueryResult | result | ||
) |
bool FindNth | ( | std::string const & | str, |
uint32 | n, | ||
std::string::size_type & | s, | ||
std::string::size_type & | e | ||
) |
|
static |
void fixNULLfields | ( | std::string & | line | ) |
std::string GetNth | ( | std::string & | str, |
uint32 | n | ||
) |
std::string GetTableName | ( | std::string const & | str | ) |
ObjectGuid::LowType RegisterNewGuid | ( | ObjectGuid::LowType | oldGuid, |
PlayerDump::DumpGuidMap & | guidMap, | ||
ObjectGuid::LowType | guidOffset | ||
) |
void StoreGUID | ( | QueryResult | result, |
uint32 | field, | ||
PlayerDump::DumpGuidSet & | guids | ||
) |
void StoreGUID | ( | QueryResult | result, |
uint32 | data, | ||
uint32 | field, | ||
PlayerDump::DumpGuidSet & | guids | ||
) |
|
static |