#include <xmlrw.h>
Collaboration diagram for XmlRead:
Signals | |
void | newScene (const QString &, double) |
void | newPlugin (QGraphicsItem *) |
Public Member Functions | |
XmlRead () | |
bool | read (const QString &) |
Private Member Functions | |
void | readScenes () |
void | readController () |
void | readProperty (QDomElement *, ModuleInterface *) |
Private Attributes | |
QDomDocument | m_domDoc |
QDomElement | m_rootElem |
PropertyModel | m_model |
XmlRead::XmlRead | ( | ) |
void XmlRead::newPlugin | ( | QGraphicsItem * | ) | [signal] |
emits every time after a new plugin was loaded and initialized
void XmlRead::newScene | ( | const QString & | , | |
double | ||||
) | [signal] |
emits every time before a new scene was loaded
bool XmlRead::read | ( | const QString & | filename | ) |
read a project xml file into the program
AccessFailureException | is thrown when the program can not open the project xml file |
filename | is the name of the project xml file |
void XmlRead::readController | ( | ) | [private] |
reads the first detected controller into the program
void XmlRead::readProperty | ( | QDomElement * | parentElem, | |
ModuleInterface * | module | |||
) | [private] |
reads and updates all properties of a module
InvalidDataException | is thrown when a property is not valid |
parentElem | is the parent xml element where the property item starts | |
module | shall be updated |
void XmlRead::readScenes | ( | ) | [private] |
reads all available scenes into the program
QDomDocument XmlRead::m_domDoc [private] |
contains the content of the project xml file
PropertyModel XmlRead::m_model [private] |
QDomElement XmlRead::m_rootElem [private] |
is the first xml element of the project xml file