![]() |
DDNet documentation
|
#include <datafile.h>
Public Member Functions | |
| ~CDataFileReader () | |
| CDataFileReader & | operator= (CDataFileReader &&Other) |
| bool | Open (const char *pFullName, IStorage *pStorage, const char *pPath, int StorageType) |
| bool | Open (IStorage *pStorage, const char *pPath, int StorageType) |
| void | 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 | AddDataProcessor (int Index, FDataProcessor DataProcessor) |
| 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) |
| bool | OverrideItemData (int Index, const void *pData, size_t Size) |
| int | NumItems () const |
| const char * | FullName () const |
| const char * | BaseName () const |
| const char * | Path () const |
| SHA256_DIGEST | Sha256 () const |
| unsigned | Crc () const |
| int | Size () const |
Private Member Functions | |
| int | GetExternalItemType (int InternalType, CUuid *pUuid) |
| int | GetInternalItemType (int ExternalType) |
Private Attributes | |
| class CDatafile * | m_pDataFile = nullptr |
| CDataFileReader::~CDataFileReader | ( | ) |
| void CDataFileReader::AddDataProcessor | ( | int | Index, |
| FDataProcessor | DataProcessor ) |
| const char * CDataFileReader::BaseName | ( | ) | const |
| void CDataFileReader::Close | ( | ) |
| unsigned CDataFileReader::Crc | ( | ) | const |
| IOHANDLE CDataFileReader::File | ( | ) | const |
| void * CDataFileReader::FindItem | ( | int | Type, |
| int | Id ) |
| int CDataFileReader::FindItemIndex | ( | int | Type, |
| int | Id ) |
| const char * CDataFileReader::FullName | ( | ) | const |
| void * CDataFileReader::GetData | ( | int | Index | ) |
| int CDataFileReader::GetDataSize | ( | int | Index | ) | const |
| const char * CDataFileReader::GetDataString | ( | int | Index | ) |
| void * CDataFileReader::GetDataSwapped | ( | int | Index | ) |
|
private |
|
private |
| void * CDataFileReader::GetItem | ( | int | Index, |
| int * | pType = nullptr, | ||
| int * | pId = nullptr, | ||
| CUuid * | pUuid = nullptr ) |
| int CDataFileReader::GetItemSize | ( | int | Index | ) | const |
| void CDataFileReader::GetType | ( | int | Type, |
| int * | pStart, | ||
| int * | pNum ) |
| bool CDataFileReader::IsOpen | ( | ) | const |
| int CDataFileReader::NumData | ( | ) | const |
| int CDataFileReader::NumItems | ( | ) | const |
|
nodiscard |
|
nodiscard |
| CDataFileReader & CDataFileReader::operator= | ( | CDataFileReader && | Other | ) |
| bool CDataFileReader::OverrideItemData | ( | int | Index, |
| const void * | pData, | ||
| size_t | Size ) |
| const char * CDataFileReader::Path | ( | ) | const |
| SHA256_DIGEST CDataFileReader::Sha256 | ( | ) | const |
| int CDataFileReader::Size | ( | ) | const |
| void CDataFileReader::UnloadData | ( | int | Index | ) |
|
private |