aboutsummaryrefslogtreecommitdiff
path: root/src/common/DataStores/DB2FileLoader.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-02-18 16:32:03 +0100
committerShauren <shauren.trinity@gmail.com>2018-02-18 16:33:50 +0100
commit75603fe1a00f9aac36bfad1378447bea973001c1 (patch)
treecf8fea04151aa15c713704b6f324d0f61e304725 /src/common/DataStores/DB2FileLoader.h
parent4af15915bc8b780ef854c2e58d7ab5bb38f56758 (diff)
Core/DataStores: Updated db2 structures to 7.3.5.25996
Diffstat (limited to 'src/common/DataStores/DB2FileLoader.h')
-rw-r--r--src/common/DataStores/DB2FileLoader.h21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/common/DataStores/DB2FileLoader.h b/src/common/DataStores/DB2FileLoader.h
index 7b54cd2bd64..2bc273d195b 100644
--- a/src/common/DataStores/DB2FileLoader.h
+++ b/src/common/DataStores/DB2FileLoader.h
@@ -43,7 +43,14 @@ struct DB2Header
uint16 Flags;
int16 IndexField;
uint32 TotalFieldCount;
+ uint32 PackedDataOffset;
+ uint32 ParentLookupCount;
+ uint32 CatalogDataOffset;
+ uint32 IdTableSize;
+ uint32 ColumnMetaSize;
uint32 CommonDataSize;
+ uint32 PalletDataSize;
+ uint32 ParentLookupDataSize;
};
#pragma pack(pop)
@@ -65,16 +72,18 @@ struct TC_COMMON_API DB2FileSource
{
virtual ~DB2FileSource();
- ///
- /**
- * Returns true when the source is open for reading
- */
+ // Returns true when the source is open for reading
virtual bool IsOpen() const = 0;
// Reads numBytes bytes from source and places them into buffer
- // Retu
+ // Returns true if numBytes was read successfully
virtual bool Read(void* buffer, std::size_t numBytes) = 0;
+
+ // Returns current read position in file
virtual std::size_t GetPosition() const = 0;
+
+ virtual std::size_t GetFileSize() const = 0;
+
virtual char const* GetFileName() const = 0;
};
@@ -96,6 +105,8 @@ public:
uint32 GetUInt32(char const* fieldName) const;
int32 GetInt32(uint32 field, uint32 arrayIndex) const;
int32 GetInt32(char const* fieldName) const;
+ uint64 GetUInt64(uint32 field, uint32 arrayIndex) const;
+ uint64 GetUInt64(char const* fieldName) const;
float GetFloat(uint32 field, uint32 arrayIndex) const;
float GetFloat(char const* fieldName) const;
char const* GetString(uint32 field, uint32 arrayIndex) const;