#include </home/clem/local/src/opie/noncore/apps/tableviewer/db/xmlsource.h>
Collaboration diagram for DBXmlHandler:

Public Member Functions | |
| DBXmlHandler (DBStore *ds) | |
| virtual | ~DBXmlHandler () |
| QString | errorProtocol () |
| bool | startDocument () |
| bool | startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts) |
| bool | endElement (const QString &namespaceURI, const QString &localName, const QString &qName) |
| bool | characters (const QString &ch) |
| QString | errorString () |
| bool | warning (const QXmlParseException &exception) |
| bool | error (const QXmlParseException &exception) |
| bool | fatalError (const QXmlParseException &exception) |
Private Types | |
| enum | State { StateInit, StateHeader, StateKey, StateDocument, StateRecord, StateField } |
Private Attributes | |
| QStack< QString > | stack |
| KeyList * | current_keyrep |
| DataElem * | current_data |
| TVVariant::KeyType | last_key_type |
| QString | errorProt |
| DBStore * | data_store |
| State | state |
| QDict< int > | keyIndexList |
| int | keyIndex |
| QString | key |
An xml parser for parsing the files used by the table viewer application.
The format of the xml files can be found at the front of the file dataparser.h
Definition at line 69 of file xmlsource.h.
|
|
Definition at line 103 of file xmlsource.h. |
|
|
Constructs a new DBXmlHandler, and sets that the table should be constructed in the DBStore pointed to by ds. Definition at line 134 of file xmlsource.cpp. References current_keyrep, and data_store. |
|
|
Destroys the DBXmlHandler Definition at line 143 of file xmlsource.cpp. |
|
|
Definition at line 241 of file xmlsource.cpp. References KeyList::addKey(), current_data, current_keyrep, QDict< type >::insert(), QString::isEmpty(), key, keyIndex, keyIndexList, last_key_type, oendl, owarn, DataElem::setField(), state, StateField, StateKey, and TRUE. |
|
||||||||||||||||
|
Definition at line 209 of file xmlsource.cpp. References DBStore::addItem(), current_data, current_keyrep, data_store, FALSE, oendl, owarn, DBStore::setKeys(), state, StateDocument, StateField, StateHeader, StateKey, StateRecord, and TRUE. |
|
|
Definition at line 283 of file xmlsource.cpp. |
|
|
Definition at line 147 of file xmlsource.cpp. |
|
|
Definition at line 267 of file xmlsource.cpp. |
|
|
Definition at line 294 of file xmlsource.cpp. |
|
|
Definition at line 153 of file xmlsource.cpp. |
|
||||||||||||||||||||
|
Definition at line 160 of file xmlsource.cpp. References current_data, current_keyrep, data_store, FALSE, QString::isEmpty(), key, keyIndex, keyIndexList, last_key_type, TVVariant::nameToType(), oendl, owarn, DBStore::setName(), state, StateDocument, StateField, StateHeader, StateInit, StateKey, StateRecord, TVVariant::String, and TRUE. |
|
|
Definition at line 272 of file xmlsource.cpp. |
|
|
Definition at line 97 of file xmlsource.h. Referenced by characters(), endElement(), and startElement(). |
|
|
Definition at line 96 of file xmlsource.h. Referenced by characters(), DBXmlHandler(), endElement(), and startElement(). |
|
|
Definition at line 101 of file xmlsource.h. Referenced by DBXmlHandler(), endElement(), and startElement(). |
|
|
Definition at line 100 of file xmlsource.h. Referenced by error(), errorProtocol(), fatalError(), startDocument(), and warning(). |
|
|
Definition at line 116 of file xmlsource.h. Referenced by characters(), and startElement(). |
|
|
Definition at line 115 of file xmlsource.h. Referenced by characters(), and startElement(). |
|
|
Definition at line 114 of file xmlsource.h. Referenced by characters(), and startElement(). |
|
|
Definition at line 98 of file xmlsource.h. Referenced by characters(), and startElement(). |
|
|
Definition at line 95 of file xmlsource.h. |
|
|
Definition at line 112 of file xmlsource.h. Referenced by characters(), endElement(), startDocument(), and startElement(). |
1.4.2