#include <ZResource.h>
Public Methods | |
ZResFileWriter () | |
constructor. More... | |
ZResFileWriter (const QString &fileName) | |
constructor taking an output file name. More... | |
void | setFileName (const QString &fileName) |
set the output filename. More... | |
const QString& | fileName () const |
get the current filename being written to. More... | |
void | reset () |
throw away all data and start at the beginning. More... | |
void | add (const QString &ID, const QByteArray &data) |
add a block of data to the resource file. More... | |
bool | write () |
write the resource file. More... | |
Protected Methods | |
void | init (const QString &fullFileName) |
bool | createTables () |
bool | writeHeader (QFile &) |
bool | writeIDs (QFile &) |
bool | writeStartBlock (QFile &) |
bool | writeHashTable (QFile &) |
bool | writeData (QFile &) |
bool | deleteTables () |
bool | hash (const QString &ID, const QByteArray &inData) |
Protected Attributes | |
QString | m_fileName |
file name that we're writing to. More... | |
QSortedList<ZResEntry> | list |
list of resources before they're written to disk. More... | |
unsigned int | hashTableSize |
ZResHTEntry* | hashTable |
int | nextLabelOffset |
int | nextDataOffset |
|
constructor.
|
|
constructor taking an output file name.
|
|
add a block of data to the resource file.
|
|
|
|
|
|
get the current filename being written to.
|
|
|
|
|
|
throw away all data and start at the beginning.
|
|
set the output filename.
|
|
write the resource file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list of resources before they're written to disk.
|
|
file name that we're writing to.
|
|
|
|
|