Changeset 112 for trunk/src/game/PlayerDump.h
- Timestamp:
- 11/19/08 13:37:14 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/PlayerDump.h
r102 r112 74 74 }; 75 75 76 enum DumpReturn 77 { 78 DUMP_SUCCESS, 79 DUMP_FILE_OPEN_ERROR, 80 DUMP_TOO_MANY_CHARS, 81 DUMP_UNEXPECTED_END, 82 DUMP_FILE_BROKEN, 83 }; 84 76 85 class PlayerDump 77 86 { … … 86 95 87 96 std::string GetDump(uint32 guid); 88 boolWriteDump(std::string file, uint32 guid);97 DumpReturn WriteDump(std::string file, uint32 guid); 89 98 private: 90 99 typedef std::set<uint32> GUIDs; 91 100 92 boolDumpTable(std::string& dump, uint32 guid, char const*tableFrom, char const*tableTo, DumpTableType type);101 void DumpTable(std::string& dump, uint32 guid, char const*tableFrom, char const*tableTo, DumpTableType type); 93 102 std::string GenerateWhereStr(char const* field, GUIDs const& guids, GUIDs::const_iterator& itr); 94 103 std::string GenerateWhereStr(char const* field, uint32 guid); … … 105 114 PlayerDumpReader() {} 106 115 107 boolLoadDump(std::string file, uint32 account, std::string name, uint32 guid);116 DumpReturn LoadDump(std::string file, uint32 account, std::string name, uint32 guid); 108 117 }; 109 118