aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Database/DBCFileLoader.h
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-27 17:44:30 +0200
committerQAston <none@none>2009-08-27 17:44:30 +0200
commit6b703d600bd08fa642a2e121fb53d5749d677076 (patch)
treefb9841c1ce09e9f83542c84340f97ded510db85a /src/shared/Database/DBCFileLoader.h
parent562b4fc0a4cc748df4a5732771a8b83b8af093c1 (diff)
*Add `spell_dbc` table to store dbc entries not present in client
*Remove workaround from Demonic Circle code and use the sql table instead. --HG-- branch : trunk
Diffstat (limited to 'src/shared/Database/DBCFileLoader.h')
-rw-r--r--src/shared/Database/DBCFileLoader.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/shared/Database/DBCFileLoader.h b/src/shared/Database/DBCFileLoader.h
index 13562148dfc..ef29af84bc1 100644
--- a/src/shared/Database/DBCFileLoader.h
+++ b/src/shared/Database/DBCFileLoader.h
@@ -32,7 +32,9 @@ enum
FT_BYTE='b', //uint8
FT_SORT='d', //sorted by this field, field is not included
FT_IND='n', //the same,but parsed to data
- FT_LOGIC='l' //Logical (boolean)
+ FT_LOGIC='l', //Logical (boolean)
+ FT_SQL_PRESENT='p', //Used in sql format to mark column present in sql dbc
+ FT_SQL_ABSENT='a' //Used in sql format to mark column absent in sql dbc
};
class DBCFileLoader
@@ -88,10 +90,11 @@ class DBCFileLoader
/// Get begin iterator over records
uint32 GetNumRows() const { return recordCount;}
+ uint32 GetRowSize() const { return recordSize;}
uint32 GetCols() const { return fieldCount; }
uint32 GetOffset(size_t id) const { return (fieldsOffset != NULL && id < fieldCount) ? fieldsOffset[id] : 0; }
bool IsLoaded() {return (data!=NULL);}
- char* AutoProduceData(const char* fmt, uint32& count, char**& indexTable);
+ char* AutoProduceData(const char* fmt, uint32& count, char**& indexTable, uint32 sqlRecordCount, uint32 sqlHighestIndex, char *& sqlDataTable);
char* AutoProduceStrings(const char* fmt, char* dataTable);
static uint32 GetFormatRecordSize(const char * format, int32 * index_pos = NULL);
private: