#include <qobjectreader.h>
Collaboration diagram for QObjectReader:

Public Member Functions | |
| QObjectReader (AbstractFactory *factory=0) | |
| parses the file and stores a list of the objects internally, which can be obtained from importInstance() | |
| QObjectReader (QString filename, AbstractFactory *factory=0) | |
| void | parse (QString text) |
| void | parseFile (QString filename) |
| QObject * | getRoot () |
| |
| ~QObjectReader () | |
| bool | startElement (const QString &namespaceURI, const QString &name, const QString &qualifiedName, const QXmlAttributes &attributes) |
| bool | endElement (const QString &namespaceURI, const QString &localName, const QString &qualifiedName) |
| bool | endDocument () |
This class permits the importing of data from an XML file, and creates a queue of dynamically allocated QObjects, returning them one at a time through importInstance(). Parent-child relationships are maintained, and the properties are set as according to the input specification.
Definition at line 22 of file qobjectreader.h.
| QObjectReader::QObjectReader | ( | AbstractFactory * | factory = 0 |
) | [inline] |
parses the file and stores a list of the objects internally, which can be obtained from importInstance()
| factory | the objectfactory you wish to use when an <object> tag is encountered. Defaults to one which only creates PropsMap instances to hold your properties. |
Definition at line 33 of file qobjectreader.h.
| QObject * QObjectReader::getRoot | ( | ) |
NULL if there is not. If this represents an element with child-elements, the child-elements are returned as its children.
Definition at line 98 of file qobjectreader.cpp.
1.5.1