#include <NetworkModelXmlHandler.h>
Public Member Functions | |
| QString | getNetworkModelString () |
| vector< NeuronGroup * > | getNeuronGrpVector () |
| bool | getParseError () |
| QString | getParseErrorString () |
| NetworkModelXmlHandler (MonitorArea *) | |
| ~NetworkModelXmlHandler () | |
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 | |
| NetworkModelXmlHandler (const NetworkModelXmlHandler &) | |
| NetworkModelXmlHandler | operator= (const NetworkModelXmlHandler &) |
Private Attributes | |
| QString | currentElement |
| MonitorArea * | monitorArea |
| QString | networkModelString |
| vector< NeuronGroup * > | neurGrpVect |
| NeuronGroup * | neuronGrp |
| bool | parseError |
| QString | parseErrorString |
Definition at line 43 of file NetworkModelXmlHandler.h.
|
|
Constructor. Definition at line 34 of file NetworkModelXmlHandler.cpp. References monitorArea. |
|
|
Destructor. Definition at line 41 of file NetworkModelXmlHandler.cpp. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Called when parser encounters characters. Definition at line 82 of file NetworkModelXmlHandler.cpp. References currentElement, NeuronGroup::length, NeuronGroup::name, networkModelString, neuronGrp, NeuronGroup::neuronType, parseError, parseErrorString, NeuronGroup::spacing, NeuronGroup::startNeuronID, NeuronGroup::width, NeuronGroup::xPos, NeuronGroup::yPos, and NeuronGroup::zPos. |
|
||||||||||||||||
|
Called when the parser encounters the end of an element. Definition at line 121 of file NetworkModelXmlHandler.cpp. References MonitorArea::addMonitorWindow(), monitorArea, networkModelString, neurGrpVect, and neuronGrp. |
|
|
Called when the parser generates an error. Definition at line 146 of file NetworkModelXmlHandler.cpp. References parseError, and parseErrorString. |
|
|
Returns a default error string. Definition at line 155 of file NetworkModelXmlHandler.cpp. |
|
|
Called when the parser generates a fatal error. Definition at line 162 of file NetworkModelXmlHandler.cpp. References parseError, and parseErrorString. |
|
|
Returns a nicely formatted version of the network model XML. Definition at line 53 of file NetworkModelXmlHandler.cpp. References networkModelString. Referenced by ArchiveWidget::loadArchive(). |
|
|
Returns a vector containing details about the neuron groups that have been extracted from the XML. Definition at line 60 of file NetworkModelXmlHandler.cpp. References neurGrpVect. Referenced by ArchiveWidget::loadArchive(). |
|
|
Returns true if an error has been encountered during parsing. Definition at line 66 of file NetworkModelXmlHandler.cpp. References parseError. Referenced by ArchiveWidget::loadArchive(). |
|
|
Returns a string describing the parsing error. Definition at line 72 of file NetworkModelXmlHandler.cpp. References parseErrorString. Referenced by ArchiveWidget::loadArchive(). |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
|
Called when parser reaches the start of the document. Definition at line 171 of file NetworkModelXmlHandler.cpp. References parseError, and parseErrorString. |
|
||||||||||||||||||||
|
Called when parser reaches the start of an element. Definition at line 179 of file NetworkModelXmlHandler.cpp. References currentElement, networkModelString, neuronGrp, NeuronGroup::neuronGrpID, parseError, and parseErrorString. |
|
|
Called when the parser generates a warning. Definition at line 227 of file NetworkModelXmlHandler.cpp. |
|
|
Stores the current element. Definition at line 70 of file NetworkModelXmlHandler.h. Referenced by characters(), and startElement(). |
|
|
Reference to the monitor area that this class is loading. Definition at line 73 of file NetworkModelXmlHandler.h. Referenced by endElement(), and NetworkModelXmlHandler(). |
|
|
A nicely formatted version of the network model string that is being parsed. This is useful for setting the paramters for the statistics. Definition at line 92 of file NetworkModelXmlHandler.h. Referenced by characters(), endElement(), getNetworkModelString(), and startElement(). |
|
|
Store the neuron groups in the network model to enable statistics to be set up. Definition at line 81 of file NetworkModelXmlHandler.h. Referenced by endElement(), and getNeuronGrpVector(). |
|
|
NeuronGroup used to hold information about the current neuron group as it is parsed. Definition at line 77 of file NetworkModelXmlHandler.h. Referenced by characters(), endElement(), and startElement(). |
|
|
Records whether there has been an error during parsing. Definition at line 84 of file NetworkModelXmlHandler.h. Referenced by characters(), error(), fatalError(), getParseError(), startDocument(), and startElement(). |
|
|
Error messages generated during parsing. Definition at line 87 of file NetworkModelXmlHandler.h. Referenced by characters(), error(), fatalError(), getParseErrorString(), startDocument(), and startElement(). |
1.4.4