DDraceNetwork Docs
CDataFileReader Class Reference

#include <datafile.h>

Collaboration diagram for CDataFileReader:
[legend]

Public Member Functions

 CDataFileReader ()
 
 ~CDataFileReader ()
 
CDataFileReaderoperator= (CDataFileReader &&Other)
 
bool Open (class IStorage *pStorage, const char *pFilename, int StorageType)
 
bool Close ()
 
bool IsOpen () const
 
IOHANDLE File () const
 
int GetDataSize (int Index) const
 
void * GetData (int Index)
 
void * GetDataSwapped (int Index)
 
const char * GetDataString (int Index)
 
void ReplaceData (int Index, char *pData, size_t Size)
 
void UnloadData (int Index)
 
int NumData () const
 
int GetItemSize (int Index) const
 
void * GetItem (int Index, int *pType=nullptr, int *pId=nullptr, CUuid *pUuid=nullptr)
 
void GetType (int Type, int *pStart, int *pNum)
 
int FindItemIndex (int Type, int Id)
 
void * FindItem (int Type, int Id)
 
int NumItems () const
 
SHA256_DIGEST Sha256 () const
 
unsigned Crc () const
 
int MapSize () const
 

Private Member Functions

void * GetDataImpl (int Index, bool Swap)
 
int GetFileDataSize (int Index) const
 
int GetExternalItemType (int InternalType, CUuid *pUuid)
 
int GetInternalItemType (int ExternalType)
 

Private Attributes

struct CDatafilem_pDataFile
 

Constructor & Destructor Documentation

◆ CDataFileReader()

CDataFileReader::CDataFileReader ( )
inline

◆ ~CDataFileReader()

CDataFileReader::~CDataFileReader ( )
inline

Member Function Documentation

◆ Close()

bool CDataFileReader::Close ( )

◆ Crc()

unsigned CDataFileReader::Crc ( ) const

◆ File()

IOHANDLE CDataFileReader::File ( ) const

◆ FindItem()

void * CDataFileReader::FindItem ( int  Type,
int  Id 
)

◆ FindItemIndex()

int CDataFileReader::FindItemIndex ( int  Type,
int  Id 
)

◆ GetData()

void * CDataFileReader::GetData ( int  Index)

◆ GetDataImpl()

void * CDataFileReader::GetDataImpl ( int  Index,
bool  Swap 
)
private

◆ GetDataSize()

int CDataFileReader::GetDataSize ( int  Index) const

◆ GetDataString()

const char * CDataFileReader::GetDataString ( int  Index)

◆ GetDataSwapped()

void * CDataFileReader::GetDataSwapped ( int  Index)

◆ GetExternalItemType()

int CDataFileReader::GetExternalItemType ( int  InternalType,
CUuid pUuid 
)
private

◆ GetFileDataSize()

int CDataFileReader::GetFileDataSize ( int  Index) const
private

◆ GetInternalItemType()

int CDataFileReader::GetInternalItemType ( int  ExternalType)
private

◆ GetItem()

void * CDataFileReader::GetItem ( int  Index,
int *  pType = nullptr,
int *  pId = nullptr,
CUuid pUuid = nullptr 
)

◆ GetItemSize()

int CDataFileReader::GetItemSize ( int  Index) const

◆ GetType()

void CDataFileReader::GetType ( int  Type,
int *  pStart,
int *  pNum 
)

◆ IsOpen()

bool CDataFileReader::IsOpen ( ) const
inline

◆ MapSize()

int CDataFileReader::MapSize ( ) const

◆ NumData()

int CDataFileReader::NumData ( ) const

◆ NumItems()

int CDataFileReader::NumItems ( ) const

◆ Open()

bool CDataFileReader::Open ( class IStorage pStorage,
const char *  pFilename,
int  StorageType 
)

◆ operator=()

CDataFileReader & CDataFileReader::operator= ( CDataFileReader &&  Other)
inline

◆ ReplaceData()

void CDataFileReader::ReplaceData ( int  Index,
char *  pData,
size_t  Size 
)

◆ Sha256()

SHA256_DIGEST CDataFileReader::Sha256 ( ) const

◆ UnloadData()

void CDataFileReader::UnloadData ( int  Index)

Member Data Documentation

◆ m_pDataFile

struct CDatafile* CDataFileReader::m_pDataFile
private

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