Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

MonitorXmlHandler Class Reference

#include <MonitorXmlHandler.h>

List of all members.

Public Member Functions

bool getParseError ()
QString getParseErrorString ()
 MonitorXmlHandler (MonitorDataPlotter *)
 ~MonitorXmlHandler ()

Protected Member Functions

bool characters (const QString &ch)
bool endElement (const QString &, const QString &, const QString &)
bool error (const QXmlParseException &exception)
QString errorString ()
bool fatalError (const QXmlParseException &exception)
bool startDocument ()
bool startElement (const QString &, const QString &, const QString &, const QXmlAttributes &)
bool warning (const QXmlParseException &exception)

Private Member Functions

 MonitorXmlHandler (const MonitorXmlHandler &)
MonitorXmlHandler operator= (const MonitorXmlHandler &)

Private Attributes

QString currentElement
MonitorDataPlottermonitorDataPlotter
NewGraph newGraph
bool parseError
QString parseErrorString


Detailed Description

Unpacks the description of data sent by neuron or synapse classes and uses it to create new graphs.

Definition at line 39 of file MonitorXmlHandler.h.


Constructor & Destructor Documentation

MonitorXmlHandler::MonitorXmlHandler MonitorDataPlotter monDatPlot  ) 
 

Constructor.

Definition at line 33 of file MonitorXmlHandler.cpp.

References monitorDataPlotter.

MonitorXmlHandler::~MonitorXmlHandler  ) 
 

Destructor.

Definition at line 40 of file MonitorXmlHandler.cpp.

MonitorXmlHandler::MonitorXmlHandler const MonitorXmlHandler  )  [private]
 

Declare copy constructor private so it cannot be used inadvertently.


Member Function Documentation

bool MonitorXmlHandler::characters const QString &  chars  )  [protected]
 

Called when parser encounters characters.

Definition at line 68 of file MonitorXmlHandler.cpp.

References currentElement, NewGraph::description, newGraph, parseError, parseErrorString, NewGraph::rangeHigh, and NewGraph::rangeLow.

bool MonitorXmlHandler::endElement const QString &  ,
const QString &  ,
const QString &  qName
[protected]
 

Called when the parser encounters the end of an element.

Definition at line 91 of file MonitorXmlHandler.cpp.

References MonitorDataPlotter::addGraph(), MonitorDataPlotter::loadingComplete(), monitorDataPlotter, and newGraph.

bool MonitorXmlHandler::error const QXmlParseException &  parseEx  )  [protected]
 

Called when the parser generates an error.

Definition at line 102 of file MonitorXmlHandler.cpp.

References parseError, and parseErrorString.

QString MonitorXmlHandler::errorString  )  [protected]
 

Returns a default error string.

Definition at line 111 of file MonitorXmlHandler.cpp.

bool MonitorXmlHandler::fatalError const QXmlParseException &  parseEx  )  [protected]
 

Called when the parser generates a fatal error.

Definition at line 118 of file MonitorXmlHandler.cpp.

References parseError, and parseErrorString.

bool MonitorXmlHandler::getParseError  ) 
 

Returns true if an error has been encountered during parsing.

Definition at line 52 of file MonitorXmlHandler.cpp.

References parseError.

Referenced by MonitorDataPlotter::setUpGraphs().

QString MonitorXmlHandler::getParseErrorString  ) 
 

Returns a string describing the parsing error.

Definition at line 58 of file MonitorXmlHandler.cpp.

References parseErrorString.

Referenced by MonitorDataPlotter::setUpGraphs().

MonitorXmlHandler MonitorXmlHandler::operator= const MonitorXmlHandler  )  [private]
 

Declare assignment private so it cannot be used inadvertently.

bool MonitorXmlHandler::startDocument  )  [protected]
 

Called when parser reaches the start of the document.

Definition at line 127 of file MonitorXmlHandler.cpp.

References parseError, and parseErrorString.

bool MonitorXmlHandler::startElement const QString &  ,
const QString &  ,
const QString &  qName,
const QXmlAttributes &  xmlAttributes
[protected]
 

Called when parser reaches the start of an element.

Definition at line 135 of file MonitorXmlHandler.cpp.

References currentElement.

bool MonitorXmlHandler::warning const QXmlParseException &  exception  )  [protected]
 

Called when the parser generates a warning.

Definition at line 142 of file MonitorXmlHandler.cpp.


Member Data Documentation

QString MonitorXmlHandler::currentElement [private]
 

Stores the current element.

Definition at line 64 of file MonitorXmlHandler.h.

Referenced by characters(), and startElement().

MonitorDataPlotter* MonitorXmlHandler::monitorDataPlotter [private]
 

Reference to the Neuron Monitor that this class is loading data for.

Definition at line 67 of file MonitorXmlHandler.h.

Referenced by endElement(), and MonitorXmlHandler().

NewGraph MonitorXmlHandler::newGraph [private]
 

NeuronGroup used to hold information about the neuron group as it is parsed.

Definition at line 71 of file MonitorXmlHandler.h.

Referenced by characters(), and endElement().

bool MonitorXmlHandler::parseError [private]
 

Records whether there has been an error during parsing.

Definition at line 74 of file MonitorXmlHandler.h.

Referenced by characters(), error(), fatalError(), getParseError(), and startDocument().

QString MonitorXmlHandler::parseErrorString [private]
 

Error messages generated during parsing.

Definition at line 77 of file MonitorXmlHandler.h.

Referenced by characters(), error(), fatalError(), getParseErrorString(), and startDocument().


The documentation for this class was generated from the following files:
Generated on Mon Sep 3 22:29:05 2007 for SpikeStream Application by  doxygen 1.4.4