|
SPAOP
|
A class with static functions to create XmlElements from Objects, create Objects from XmlElements and set existing Objects to the values given in an XmlElement. More...
#include <XmlFactory.h>
Static Public Member Functions | |
| static wonder::XmlParser * | getParser () |
| Singleton-getter for a wonder::XmlParser implementation that wraps the corresponding static functions of this class. More... | |
| static void | updateSourceFromXml (const XmlElement *sourceElement, wonder::Source *source) |
| Sets the properties of a wonder::Source object to the values given in an XML element. More... | |
| static void | updateSourceFromCWonderProject (const std::string &cwProjectXml, wonder::Source *source) |
| Sets the properties of a wonder::Source object to the values given in an XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd and sent via the /WONDER/project/xmlDump message). More... | |
| static void | updateSourceCollectionFromCWonderProject (const std::string &cwProjectXml, wonder::SourceCollection &sources) |
| Sets the properties of a wonder::SourceCollection to the values given in a cWONDER project XML string. More... | |
| static XmlElement * | createSourceXml (const wonder::Source &source) |
| Creates an XmlElement representing a WONDER source as defined in cwonder_project.dtd. More... | |
| static const wonder::Room | createRoomFromXml (const XmlElement *roomElement) |
| Creates a wonder::Room object from an XmlElement that was created by the createRoomFromXml method. More... | |
| static XmlElement * | createRoomXml (const wonder::Room &room) |
| Creates an XmlElement representing a wonder::Room object. More... | |
| static void | updateSourceControllerFromXml (const XmlElement *connectionElement, wonder::SourceController *controller) |
| Sets the properties of a wonder::SourceController to the values given in an XmlElement that was created using the createConnectionXml method. More... | |
| static XmlElement * | createConnectionXml (const wonder::SourceController *controller) |
| Creates an XmlElement representing a wonder::SourceController's connection state. More... | |
| static XmlElement * | createGuiXml (float zoomFactor, bool showOthers, bool showNames) |
| Creates an XmlElement that holds the parameters of a SPAOP gui that need to be stored. More... | |
A class with static functions to create XmlElements from Objects, create Objects from XmlElements and set existing Objects to the values given in an XmlElement.
|
static |
Creates an XmlElement representing a wonder::SourceController's connection state.
Stored are the current values of wonder::SourceController::isListening and wonder::SourceController::isSending.
| controller | The SourceController that shall be stored to XML. |
|
static |
Creates an XmlElement that holds the parameters of a SPAOP gui that need to be stored.
| zoomFactor | The zoom factor of the gui's SourcePanel. |
| showOthers | The showOthers setting of the gui's SourcePanel. |
| showNames | The showNames setting of the gui's SourcePanel. |
|
static |
Creates a wonder::Room object from an XmlElement that was created by the createRoomFromXml method.
| roomElement | an XmlElement as created by createRoomFromXml. |
|
static |
Creates an XmlElement representing a wonder::Room object.
| room | The room that shall be stored to XML. |
|
static |
Creates an XmlElement representing a WONDER source as defined in cwonder_project.dtd.
| source | The source that shall be stored to XML. |
|
static |
Singleton-getter for a wonder::XmlParser implementation that wraps the corresponding static functions of this class.
|
static |
Sets the properties of a wonder::SourceCollection to the values given in a cWONDER project XML string.
| cwProjectXml | An XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd). |
| sources | The SourceCollection that shall be updated. |
|
static |
Sets the properties of a wonder::SourceController to the values given in an XmlElement that was created using the createConnectionXml method.
cWONDER project XML string. The properties that are set are the isSending and isListening states.
| connectionElement | An XmlElement created createConnectionXml. |
| controller | The SourceController that shall be updated. |
|
static |
Sets the properties of a wonder::Source object to the values given in an XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd and sent via the /WONDER/project/xmlDump message).
The Source will only be changed if the Xml string is valid and contains information about a source with the same ID.
| cwProjectXml | An XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd). |
| source | The Source object that shall be updated. |
|
static |
Sets the properties of a wonder::Source object to the values given in an XML element.
If the XmlElement is invalid, the Source object remains unchanged.
| sourceElement | An XML element representing a WONDER source as defined in cwonder_project.dtd. |
| source | The Source object that shall be updated. |
1.8.6