|
static tResult | GetHeader (const cString &strFilename, IIndexedFile::tFileHeader *psFileHeader) |
| Returns the header of a file. More...
|
|
static tResult | UpdateHeader (const cString &strFilename, const IIndexedFile::tFileHeader *psFileHeader, tUInt32 ui32Mask) |
| Update header info. More...
|
|
static tResult | QueryFileInfo (const cString &strFilename, cString &strFileInfo) |
| Returns the date and the description of a file in a string. More...
|
|
static tResult | QueryFileInfo (const cString &strFilename, cString &strFileInfo, cStringList &lstExtensions) |
| Returns the date and the description of a file in a string. More...
|
|
static tResult | CreateChecksumFile (const cFilename &strFilename, cString &strError) |
| Creates an MD5 Checksum file for the given DAT file. More...
|
|
static tResult | CheckFile (const cFilename &strFilename, cString &strError, const cFilename &strMD5File="") |
| Checks if a DAT file has been corrupted. More...
|
|
static tResult | ExtractAndCheckDatIfNecessary (const cFilename &strFilename, cFilename &strTmpFilename, cString &strError) |
| Checks if strFilename is a compressed dat file, extracts it to a temporary location and returns the path to the temporary file in strTmpFilename. More...
|
|
static tResult | GetExtension (const cString &strFilename, const cString &strExtension, IIndexedFile::tFileExtension *psExtensionInfo, tVoid **ppData) |
| Return the requested file extension. More...
|
|
static tResult | WriteExtension (const cString &strFilename, IIndexedFile::tFileExtension *psExtensionInfo, const tVoid *pData) |
| Write an extension If the extension already exists, it will be overwritten. More...
|
|
static tResult | IsADTFDatfile (const cFilename &strFilename) |
| Check if a particular file is a DAT file. More...
|
|
static tResult | Stream2FileHeader (IIndexedFile::tFileHeader *psFileHeader) |
| Convert a file header structure to native byte order. More...
|
|
static tResult | Stream2FileHeaderExtension (const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tFileExtension *pHeaderExt, tInt nNumExtensions) |
| Convert a file header extension structure to native byte order. More...
|
|
static tResult | Stream2ChunkHeader (const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tChunkHeader *psChunk) |
| Convert a chunk header structure to native byte order. More...
|
|
static tResult | Stream2ChunkRef (const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tChunkRef *psChunkRef) |
| Convert a chunk reference structure to native byte order. More...
|
|
static tResult | Stream2StreamRef (const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tStreamRef *psStreamRef) |
| Convert a stream reference structure to native byte order. More...
|
|
static tResult | Stream2StreamInfoHeader (const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tStreamInfoHeader *psStreamInfo) |
| Convert a stream info header structure to native byte order. More...
|
|
static tResult | Stream2AdditonalIndexInfo (const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tAdditionalIndexInfo *psAdditonalIndexInfo) |
| Convert a additional stream info structure to native byte order. More...
|
|
Helper class to access file information.
- Warning
- Do not use this class for cross-platform processing of files!
- Note
- For cross-platform processing use
cIndexedFileReader
and cIndexedFileWriter
.
Definition at line 21 of file indexedfilehelper.h.
Checks if strFilename is a compressed dat file, extracts it to a temporary location and returns the path to the temporary file in strTmpFilename.
This method caches its earlier results so that the file won't be extracted and checked twice.
If the strFilename is an uncompressed file, the string is passed back unmodified.
- Parameters
-
[in] | strFilename | The input file name. |
[out] | strTmpFilename | The name of the temporary file or the strFilename. |
[out] | strError | Error String if failed. |
- Returns
- Standard result.