Go to the documentation of this file.
25 #include "../../StatechartViewerPlugin/model/State.h"
52 void parseXml(
const QString& xmlString);
74 QString readAttribute(
rapidxml::xml_node<>* node,
const QString& attributeName,
bool required =
true)
const;
79 bool hasSubstateByInstanceName(
const QString& name)
const;
95 const QString& nodeName;
96 const QByteArray nodeNameUtf8;
106 XmlReaderException(
const std::string& errorText) : LocalException(
"Parsing the XML file failed: " + errorText) {}
107 std::string
name()
const override
109 return "armarx::exceptions::local::XmlReaderException";
XmlReader(Ice::CommunicatorPtr iceCommunicator, VariantInfoPtr info)
Creates a new XmlReader.
QList< EventPtr > EventList
void parseXml(const QString &xmlString)
Parses the given XML document and builds a State object (that can be retrieved using getRootState()).
std::shared_ptr< StateInstance > StateInstancePtr
armarx::statechartmodel::StatePtr getLoadedState() const
Returns the State object created by this XML reader.
QMap< QString, StateInstancePtr > StateInstanceMap
QMap< QString, StateParameterPtr > StateParameterMap
std::string name() const override
QList< TransitionPtr > TransitionList
Class representing a node of XML document.
Iterate over all child nodes with a certain name of a given XML node.
XmlReaderException(const std::string &errorText)
std::shared_ptr< VariantInfo > VariantInfoPtr
QList< ParameterMappingPtr > ParameterMappingList
std::shared_ptr< State > StatePtr
XML reader class used to build State objects from XML representations.
rapidxml::xml_node * getNext()
XmlNodeIterator(rapidxml::xml_node<> *parentNode, const QString &nodeName, bool required)