XmlRead Class Reference

The XmlRead class loads a xml project file into the program.

#include <xmlrw.h>

Collaboration diagram for XmlRead:

Collaboration graph
[legend]
List of all members.

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

Constructor & Destructor Documentation

XmlRead::XmlRead (  ) 


Member Function Documentation

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

Exceptions:
AccessFailureException is thrown when the program can not open the project xml file
Parameters:
filename is the name of the project xml file
Returns:
true on success otherwise false

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

Exceptions:
InvalidDataException is thrown when a property is not valid
Parameters:
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


Member Data Documentation

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


The documentation for this class was generated from the following files:
Generated on Thu Apr 5 13:13:28 2007 for LCDBuilder by  doxygen 1.4.7