![]() |
VR-Forces 4.1 Class Documentation
|

Public Member Functions | |
| DtArchiver (QString name) | |
| virtual | ~DtArchiver () |
| virtual void | add (QString value, int *toWrite) |
| Use these routines to schedule a variable to be archived. | |
| virtual void | add (QString value, short *toWrite) |
| virtual void | add (QString value, DtArchivableObject *toWrite) |
| virtual void | add (QString value, QPen *toWrite) |
| virtual void | add (QString value, QColor *toWrite) |
| virtual void | add (QString value, double *toWrite) |
| virtual void | add (QString value, bool *toWrite) |
| virtual void | add (QString value, float *toWrite) |
| virtual void | add (QString value, QString *toWrite) |
| virtual void | add (QString value, char *toWrite) |
| virtual void | add (QString value, QPoint *toWrite) |
| virtual void | add (QString value, QPointF *toWrite) |
| virtual void | add (QString value, QRect *toWrite) |
| virtual void | add (QString value, QStringList *toWrite) |
| virtual void | add (QString value, void *toWrite, DtArchiverFunction write, DtArchiverFunction read, bool writeLevel=false) |
| template<typename Key , typename Value > | |
| void | add (QString value, QHash< Key, Value > *toWrite) |
| Currently only supports QDict. | |
| template<typename T > | |
| void | add (QString value, QList< T > *toWrite) |
| template<typename T > | |
| void | add (QString value, QLinkedList< T > *toWrite) |
| template<typename T > | |
| void | add (QString value, QVector< T > *toWrite) |
| virtual void | remove (void *toWrite) |
| Removes the specified item from the archiver. | |
| virtual void | setLevel (int iLevel) |
| virtual int | level () const |
| virtual void | setName (QString name) |
| virtual QString | name () const |
| virtual void | read (QTextStream &ts) |
| archival operators | |
| virtual void | write (QTextStream &ts) |
| virtual void | writeObject (QTextStream &ts, int level, DtArchiveObject *obj) |
| virtual void | readObject (DtArchiveObject *obj) |
Static Public Member Functions | |
| static void | addCreator (const QString &name, DtArchivableObjectCreator fnc) |
| static bool | hasCreatorFor (DtArchivableObject *obj) |
| static DtArchivableCreatorInfo * | creatorFor (const QString &name) |
| static DtArchivableObject * | createObject (const QString &name) |
| static void | cleanupCreators () |
| Call to cleanup memory owned by myObjectCreators member. | |
Protected Member Functions | |
| virtual void | writeLevel (QTextStream &ts, int iLevel) |
| virtual void | parseBlock (QTextStream &ts) |
| This call will read a block of code that can be used to parse out other object information. | |
| virtual QString | readBlock (QTextStream &ts) |
| Reads a balanced block (parens) of text. | |
| virtual QString | readNamedBlock (QString &name, QTextStream &ts) |
| Reads a block and strips out the main name. | |
| virtual void | buildArchiveDictionary (QTextStream &block) |
| Builds the dictionary for object/name pairs from the stream supplied. | |
Protected Attributes | |
| DtPtrQList< DtArchiveObject * > | myArchivableObjects |
| QHash< QString, QString > | myArchiveBlocks |
| int | myLevel |
| QString | myName |
Static Protected Attributes | |
| static QHash< QString, DtArchivableCreatorInfo > * | myObjectCreators |
| DtArchiver::DtArchiver | ( | QString | name | ) |
|
virtual |
|
virtual |
Use these routines to schedule a variable to be archived.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| void DtArchiver::add | ( | QString | value, |
| QHash< Key, Value > * | toWrite | ||
| ) |
Currently only supports QDict.
| void DtArchiver::add | ( | QString | value, |
| QList< T > * | toWrite | ||
| ) |
| void DtArchiver::add | ( | QString | value, |
| QLinkedList< T > * | toWrite | ||
| ) |
| void DtArchiver::add | ( | QString | value, |
| QVector< T > * | toWrite | ||
| ) |
|
virtual |
Removes the specified item from the archiver.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
static |
|
static |
|
static |
|
static |
|
static |
Call to cleanup memory owned by myObjectCreators member.
Current called as part of application cleanup
|
virtual |
archival operators
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
This call will read a block of code that can be used to parse out other object information.
The block of code will be defined by the name of this object. This is object does not have a name, the block of code will be read until an unbalanced close paren is seen.
|
protectedvirtual |
Reads a balanced block (parens) of text.
|
protectedvirtual |
Reads a block and strips out the main name.
|
protectedvirtual |
Builds the dictionary for object/name pairs from the stream supplied.
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |