oopapidocs
2.0
|
Parses XML and returns QObject trees. More...
#include <qobjectreader.h>
Public Member Functions | |
QObjectReader (AbstractFactory *factory=0) | |
parses the file and stores a list of the objects internally, which can be obtained from importInstance() | |
QObject * | getRoot () |
Parses XML and returns QObject trees.
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, explicit] |
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 | ( | ) |
Definition at line 84 of file qobjectreader.cpp.