DDraceNetwork Docs
CSnapshotBuilder Class Reference

#include <snapshot.h>

Public Member Functions

 CSnapshotBuilder ()
 
void Init (bool Sixup=false)
 
void Init7 (const CSnapshot *pSnapshot)
 
void * NewItem (int Type, int Id, int Size)
 
CSnapshotItemGetItem (int Index)
 
int * GetItemData (int Key)
 
int Finish (void *pSnapdata)
 

Private Types

enum  { MAX_EXTENDED_ITEM_TYPES = 64 }
 

Private Member Functions

bool AddExtendedItemType (int Index)
 
int GetExtendedItemTypeIndex (int TypeId)
 
int GetTypeFromIndex (int Index) const
 

Private Attributes

char m_aData [CSnapshot::MAX_SIZE]
 
int m_DataSize
 
int m_aOffsets [CSnapshot::MAX_ITEMS]
 
int m_NumItems
 
int m_aExtendedItemTypes [MAX_EXTENDED_ITEM_TYPES]
 
int m_NumExtendedItemTypes
 
bool m_Sixup = false
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MAX_EXTENDED_ITEM_TYPES 

Constructor & Destructor Documentation

◆ CSnapshotBuilder()

CSnapshotBuilder::CSnapshotBuilder ( )

Member Function Documentation

◆ AddExtendedItemType()

bool CSnapshotBuilder::AddExtendedItemType ( int  Index)
private

◆ Finish()

int CSnapshotBuilder::Finish ( void *  pSnapdata)

◆ GetExtendedItemTypeIndex()

int CSnapshotBuilder::GetExtendedItemTypeIndex ( int  TypeId)
private

◆ GetItem()

CSnapshotItem * CSnapshotBuilder::GetItem ( int  Index)

◆ GetItemData()

int * CSnapshotBuilder::GetItemData ( int  Key)

◆ GetTypeFromIndex()

int CSnapshotBuilder::GetTypeFromIndex ( int  Index) const
private

◆ Init()

void CSnapshotBuilder::Init ( bool  Sixup = false)

◆ Init7()

void CSnapshotBuilder::Init7 ( const CSnapshot pSnapshot)

◆ NewItem()

void * CSnapshotBuilder::NewItem ( int  Type,
int  Id,
int  Size 
)

Member Data Documentation

◆ m_aData

char CSnapshotBuilder::m_aData[CSnapshot::MAX_SIZE]
private

◆ m_aExtendedItemTypes

int CSnapshotBuilder::m_aExtendedItemTypes[MAX_EXTENDED_ITEM_TYPES]
private

◆ m_aOffsets

int CSnapshotBuilder::m_aOffsets[CSnapshot::MAX_ITEMS]
private

◆ m_DataSize

int CSnapshotBuilder::m_DataSize
private

◆ m_NumExtendedItemTypes

int CSnapshotBuilder::m_NumExtendedItemTypes
private

◆ m_NumItems

int CSnapshotBuilder::m_NumItems
private

◆ m_Sixup

bool CSnapshotBuilder::m_Sixup = false
private

The documentation for this class was generated from the following files: