XmlReader Class Reference

XML reader class used to build State objects from XML representations. More...

#include <ArmarXGui/gui-plugins/StatechartEditorPlugin/io/XmlReader.h>

Public Member Functions

armarx::statechartmodel::StatePtr getLoadedState () const
 Returns the State object created by this XML reader. More...
 
void parseXml (const QString &xmlString)
 Parses the given XML document and builds a State object (that can be retrieved using getRootState()). More...
 
 XmlReader (Ice::CommunicatorPtr iceCommunicator, VariantInfoPtr info)
 Creates a new XmlReader. More...
 

Detailed Description

XML reader class used to build State objects from XML representations.

Definition at line 38 of file XmlReader.h.

Constructor & Destructor Documentation

◆ XmlReader()

XmlReader ( Ice::CommunicatorPtr  iceCommunicator,
VariantInfoPtr  info 
)

Creates a new XmlReader.

The ICE communicator is required for deserialization of parameter default values from JSON.

Parameters
iceCommunicatorIce communicator.

Definition at line 38 of file XmlReader.cpp.

Member Function Documentation

◆ getLoadedState()

armarx::statechartmodel::StatePtr getLoadedState ( ) const
inline

Returns the State object created by this XML reader.

Returns
State object.

Definition at line 58 of file XmlReader.h.

◆ parseXml()

void parseXml ( const QString &  xmlString)

Parses the given XML document and builds a State object (that can be retrieved using getRootState()).

The State object will not contain references to other states until addReferences() has been called.

Parameters
xmlStringXML document to parse.

Definition at line 42 of file XmlReader.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: