|
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, std::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) |
|
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 |
|
) |
| |
|
inline |
506{
507 T oldGuid(*Acore::StringTo<uint64>(
GetColumn(ts, str, column)));
508 if (allowZero && !oldGuid)
509 return true;
510
511 std::string chritem;
513 chritem = std::to_string(newGuid);
514
515 return ChangeColumn(ts, str, column, chritem, allowZero);
516}
std::string GetColumn(TableStruct const &ts, std::string &str, std::string const &column)
Definition: PlayerDump.cpp:483
bool ChangeColumn(TableStruct const &ts, std::string &str, std::string const &column, std::string const &with, bool allowZero=false)
Definition: PlayerDump.cpp:470
T RegisterNewGuid(T oldGuid, MapType< T, T, Rest... > &guidMap, T guidOffset)
Definition: PlayerDump.cpp:493
References ChangeColumn(), GetColumn(), and RegisterNewGuid().
Referenced by PlayerDumpReader::LoadDump().