Collaboration diagram for XFcCFL:
Public Member Functions | |
XFCIMPORT | XFcCFL () |
Constructor. | |
XFCIMPORT INT | openLibrary (const CHAR *aLibFilename) |
Opens library from a file (checks beginning and end of file). | |
XFCIMPORT INT | openLibrary (const CHAR *aLibFilename, INT32 aOffset) |
Opens library from a file (checks offset and end of file). | |
XFCIMPORT INT | openLibrary (XFcFile *aLibFilePtr) |
Opens library from a file pointer (file position must be at start of the library). | |
XFCIMPORT INT8 * | getFile (const CHAR *aName) |
Returns file data. | |
XFCIMPORT INT8 * | getFile (const CHAR *aName, INT32 &aSize) |
Returns file data and data length. | |
XFCIMPORT INT | getFile (const CHAR *aName, INT8 *aBuffer, INT32 aMaxSize) |
Writes file data into preallocated buffer, returns bytes written. | |
XFCIMPORT INT32 | getFileSize (const CHAR *aName) |
Returns uncompressed file size in bytes. | |
XFCIMPORT INT | fileExists (const CHAR *aName) |
Returns non-zero if file exists in directory. | |
XFCIMPORT XFcFile * | getFilePtr (const CHAR *aName) |
Returns a file pointer pointing at the beginning of (possibly compressed) data. | |
XFCIMPORT void | dropFilePtr (XFcFile *aFile) |
Drops a file pointer. | |
XFCIMPORT INT32 | getFileOfs (const CHAR *aName) |
Returns file offset to the beginning of (possibly compressed) data. | |
XFCIMPORT const CHAR * | compressionInfoString (const CHAR *aName) |
Returns a printable string information about compression of this file. | |
XFCIMPORT const CHAR * | encryptionInfoString (const CHAR *aName) |
Returns a printable string information about encryption of this file. | |
XFCIMPORT const CHAR * | preprocessorInfoString (const CHAR *aName) |
Returns a printable string information about preprocessing of this file. | |
XFCIMPORT | ~XFcCFL () |
Destructor. | |
Static Public Member Functions | |
XFCIMPORT XFcCFL * | create (const CHAR *aLibFilename) |
Creates a XFcCFL object and opens library from a file (checks beginning and end of file). | |
XFCIMPORT XFcCFL * | create (const CHAR *aLibFilename, INT32 aOffset) |
Creates a XFcCFL object and opens library from a file (checks offset and end of file). | |
XFCIMPORT XFcCFL * | create (XFcFile *aLibFilePtr) |
Creates a XFcCFL object and opens library from a file pointer (file position must be at start of the library). | |
Protected Member Functions | |
XFcCFLDirectoryEntry * | findEntry (const CHAR *aName) |
Finds directory entries by a filename. | |
Protected Attributes | |
XFcCFLLibrary * | mRootLib |
Pointer to the first XFcCFLLibrary object (linked list). | |
XFcCFLDirectoryEntry * | mRootDir |
Pointer to the first XFcCFLDirectoryEntry object (linked list). | |
Friends | |
class | XFcFileFind |
This class can be used to access files within compressed file library (.cfl) files. Multiple .cfl files can be 'mounted' to a single XFcCFL object, and multiple XFcCFL objects can exist. If several .cfl files have a file with the same name, only the last instance is found when opened. This enables the developer to override any default data, which is useful when doing localization or different levels (or mods).
|
Constructor.
|
|
Destructor.
|
|
Returns a printable string information about compression of this file.
|
|
Creates a XFcCFL object and opens library from a file pointer (file position must be at start of the library).
|
|
Creates a XFcCFL object and opens library from a file (checks offset and end of file).
|
|
Creates a XFcCFL object and opens library from a file (checks beginning and end of file).
|
|
Drops a file pointer.
|
|
Returns a printable string information about encryption of this file.
|
|
Returns non-zero if file exists in directory.
|
|
Finds directory entries by a filename.
|
|
Writes file data into preallocated buffer, returns bytes written.
|
|
Returns file data and data length.
|
|
Returns file data.
|
|
Returns file offset to the beginning of (possibly compressed) data.
|
|
Returns a file pointer pointing at the beginning of (possibly compressed) data.
|
|
Returns uncompressed file size in bytes.
|
|
Opens library from a file pointer (file position must be at start of the library).
|
|
Opens library from a file (checks offset and end of file).
|
|
Opens library from a file (checks beginning and end of file).
|
|
Returns a printable string information about preprocessing of this file.
|
|
|
|
Pointer to the first XFcCFLDirectoryEntry object (linked list).
|
|
Pointer to the first XFcCFLLibrary object (linked list).
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |