ADTF  3.18.2
indexedfilechanger.h
Go to the documentation of this file.
1 
7 #ifndef _INDEXEDFILE_CHANGER_CLASS_HEADER_
8 #define _INDEXEDFILE_CHANGER_CLASS_HEADER_
9 
10 namespace A_UTILS_NS
11 {
12 
13 //*************************************************************************************************
26 class DOEXPORT cIndexedFileChanger
27 : public cIndexedFileReader
28 {
29  public:
34 
39 
53  tResult Open(const cString& strFilename, tInt nCacheSize = -1, tUInt32 ui32Flags = 0);
54 
64  tResult ReplaceExtension(const tChar* strIdentifier, cString& strExtension);
65 
72 
73  protected:
86  tResult FindExtension(const tChar* strIdentifier, tFileExtensionStruct** ppsExtensionStruct);
87 };
88 
89 } // namespace
90 
91 //*************************************************************************************************
92 #endif // _INDEXEDFILE_CHANGER_CLASS_HEADER_
char tChar
The tChar defines the type for platform character set (platform and compiler dependent 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).
Class for changing the extension section of indexed files.
tResult WriteExtensions()
Writes the changed extensions to the datfile which was passed with Open()
tResult ReplaceExtension(const tChar *strIdentifier, cString &strExtension)
Replaces the extension data with the new content.
tResult Open(const cString &strFilename, tInt nCacheSize=-1, tUInt32 ui32Flags=0)
This function opens a dat-file for reading.
tResult FindExtension(const tChar *strIdentifier, tFileExtensionStruct **ppsExtensionStruct)
In difference to the existing FindExtension methods, this method will return the whole tFileExtension...
cIndexedFileChanger()
Default constructor.
Class for reading indexed files.
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11
combines a file extension information with a concrete extension page
Definition: indexedfile.h:123