7 #ifndef _INDEX_WRITE_TABLE_CLASS_HEADER_
8 #define _INDEX_WRITE_TABLE_CLASS_HEADER_
28 tIndexTable():nIndexTableOffset(0), nIndexCount(0), tmLastIndex(0), nIndexOffset(0) {}
116 tBool& bIndexEntryAppended);
int64_t tInt64
type definition for signed integer values (64bit) (platform and compiler independent type).
tInt64 tTimeStamp
type definition for a time value.
void tVoid
The tVoid is always the definition for the void (non-type).
uint16_t tUInt16
type definition for unsigned integer values (16bit) (platform and compiler independent type).
int tInt
type definition for signed integer value (platform and compiler dependent type).
bool tBool
The tBool defines the type for the Values tTrue and tFalse (platform and compiler dependent).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
uint64_t tUInt64
type definition for unsigned integer values (64bit) (platform and compiler independent type).
Class for storing an index table of an indexed file.
tInt64 GetBufferSize(tUInt16 ui16StreamId)
Returns the buffer size of a stream.
tInt GetMaxStreamId()
Returns the biggest possible stream id.
tResult Create()
Allocates all neccessary resources.
tResult Append(tUInt16 ui16StreamId, tUInt64 ui64StreamIndex, tUInt64 ui64ChunkIndex, tUInt64 nFilePos, tUInt32 nSize, tTimeStamp nTimeStamp, tUInt32 ui32Flags, tBool &bIndexEntryAppended)
Appends a new item to the index table.
tResult Free()
Frees all allocated resources.
tResult CopyToBuffer(tUInt16 ui16StreamId, tVoid *pvBuffer)
Copys all stream data into a buffer.
tResult Remove(tUInt64 ui64ChunkIndex, tUInt16 ui16StreamId)
The method removes an index entry from the front of the tables.
static tTimeStamp m_nIndexDelay
The maximum delay betweeen indices (microseconds)
tUInt64 GetIndexOffset(tUInt16 ui16StreamId)
Returns the offset of the first stream index in the chunk headers fro the given stream.
tUInt64 GetIndexTableOffset(tUInt16 ui16StreamId)
Returns the offset of the stream table indices in the chunk header and master/stream references.
tInt64 GetItemCount(tUInt16 ui16StreamId)
Returns the item count of a stream.
A common result class usable as return value throughout.
#define A_UTILS_D(__pclassname_)
Helper macro for d-pattern definitions.
#define MAX_INDEXED_STREAMS
Maximum of indexed streams.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.