Version: 8.3.0
SMESHGUI_XmlHandler Class Reference

#include <SMESHGUI_XmlHandler.h>

Inheritance diagram for SMESHGUI_XmlHandler:

Public Member Functions

 SMESHGUI_XmlHandler ()
 Constructor. More...
 
virtual ~SMESHGUI_XmlHandler ()
 Destructor. More...
 
bool startDocument ()
 Starts parsing of document. More...
 
bool startElement (const QString &, const QString &, const QString &, const QXmlAttributes &)
 Does different actions depending on the name of the tag and the state you are in document. More...
 
bool endElement (const QString &, const QString &, const QString &)
 Reimplemented from QXmlDefaultHandler. More...
 
bool characters (const QString &)
 Reimplemented from QXmlDefaultHandler. More...
 
QString errorString ()
 Returns the default error string. More...
 
QString errorProtocol ()
 Returns the error protocol if parsing failed. More...
 
bool fatalError (const QXmlParseException &)
 Returns exception. More...
 

Data Fields

IMap< QString, HypothesisData * > myHypothesesMap
 
IMap< QString, HypothesisData * > myAlgorithmsMap
 
QList< HypothesesSet * > myListOfHypothesesSets
 

Private Attributes

QString myErrorProt
 
QString myPluginName
 
QString myServerLib
 
QString myClientLib
 

Constructor & Destructor Documentation

SMESHGUI_XmlHandler::SMESHGUI_XmlHandler ( )

Constructor.

SMESHGUI_XmlHandler::~SMESHGUI_XmlHandler ( )
virtual

Destructor.

Member Function Documentation

bool SMESHGUI_XmlHandler::characters ( const QString &  ch)

Reimplemented from QXmlDefaultHandler.

bool SMESHGUI_XmlHandler::endElement ( const QString &  ,
const QString &  ,
const QString &   
)

Reimplemented from QXmlDefaultHandler.

QString SMESHGUI_XmlHandler::errorProtocol ( )

Returns the error protocol if parsing failed.

Reimplemented from QXmlDefaultHandler.

References myErrorProt.

Referenced by SMESH::InitAvailableHypotheses().

QString SMESHGUI_XmlHandler::errorString ( )

Returns the default error string.

Reimplemented from QXmlDefaultHandler.

bool SMESHGUI_XmlHandler::fatalError ( const QXmlParseException &  exception)

Returns exception.

Reimplemented from QXmlDefaultHandler.

References myErrorProt.

bool SMESHGUI_XmlHandler::startDocument ( )

Starts parsing of document.

Does some initialization

Reimplemented from QXmlDefaultHandler.

References myErrorProt.

bool SMESHGUI_XmlHandler::startElement ( const QString &  ,
const QString &  ,
const QString &  qName,
const QXmlAttributes &  atts 
)

Does different actions depending on the name of the tag and the state you are in document.

Reimplemented from QXmlDefaultHandler.

References BAD_HYP_FLAG, myAlgorithmsMap, myClientLib, myHypothesesMap, myListOfHypothesesSets, myPluginName, myServerLib, and SMESHGUI::resourceMgr().

Field Documentation

IMap<QString, HypothesisData*> SMESHGUI_XmlHandler::myAlgorithmsMap
QString SMESHGUI_XmlHandler::myClientLib
private

Referenced by startElement().

QString SMESHGUI_XmlHandler::myErrorProt
private
IMap<QString, HypothesisData*> SMESHGUI_XmlHandler::myHypothesesMap
QList<HypothesesSet*> SMESHGUI_XmlHandler::myListOfHypothesesSets
QString SMESHGUI_XmlHandler::myPluginName
private

Referenced by startElement().

QString SMESHGUI_XmlHandler::myServerLib
private

Referenced by startElement().