7 #ifndef _INDEXEDFILE_HELPER_CLASS_HEADER_
8 #define _INDEXEDFILE_HELPER_CLASS_HEADER_
32 FM_Description = 0x01,
44 IIndexedFile::tFileHeader* psFileHeader);
56 const IIndexedFile::tFileHeader* psFileHeader,
124 IIndexedFile::tFileExtension* psExtensionInfo,
138 IIndexedFile::tFileExtension* psExtensionInfo,
void tVoid
The tVoid is always the definition for the void (non-type).
int tInt
type definition for signed integer value (platform and compiler dependent type).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
Helper class to access file information.
static tResult WriteExtension(const cString &strFilename, IIndexedFile::tFileExtension *psExtensionInfo, const tVoid *pData)
Write an extension If the extension already exists, it will be overwritten.
static tResult Stream2AdditonalIndexInfo(const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tAdditionalIndexInfo *psAdditonalIndexInfo)
Convert a additional stream info structure to native byte order.
static tResult UpdateHeader(const cString &strFilename, const IIndexedFile::tFileHeader *psFileHeader, tUInt32 ui32Mask)
Update header info.
static tResult Stream2ChunkRef(const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tChunkRef *psChunkRef)
Convert a chunk reference structure to native byte order.
static tResult CheckFile(const cFilename &strFilename, cString &strError, const cFilename &strMD5File="")
Checks if a DAT file has been corrupted.
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 p...
static tResult Stream2ChunkHeader(const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tChunkHeader *psChunk)
Convert a chunk header structure to native byte order.
static tResult IsADTFDatfile(const cFilename &strFilename)
Check if a particular file is a DAT file.
static tResult Stream2StreamRef(const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tStreamRef *psStreamRef)
Convert a stream reference structure to native byte order.
static tResult Stream2FileHeaderExtension(const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tFileExtension *pHeaderExt, tInt nNumExtensions)
Convert a file header extension structure to native byte order.
static tResult QueryFileInfo(const cString &strFilename, cString &strFileInfo)
Returns the date and the description of a file in a string.
static tResult Stream2StreamInfoHeader(const IIndexedFile::tFileHeader *psFileHeader, IIndexedFile::tStreamInfoHeader *psStreamInfo)
Convert a stream info header structure to native byte order.
static tResult GetExtension(const cString &strFilename, const cString &strExtension, IIndexedFile::tFileExtension *psExtensionInfo, tVoid **ppData)
Return the requested file extension.
static tResult QueryFileInfo(const cString &strFilename, cString &strFileInfo, cStringList &lstExtensions)
Returns the date and the description of a file in a string.
static tResult GetHeader(const cString &strFilename, IIndexedFile::tFileHeader *psFileHeader)
Returns the header of a file.
static tResult Stream2FileHeader(IIndexedFile::tFileHeader *psFileHeader)
Convert a file header structure to native byte order.
static tResult CreateChecksumFile(const cFilename &strFilename, cString &strError)
Creates an MD5 Checksum file for the given DAT file.
A common result class usable as return value throughout.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.