/[kvoss_old]/kvsvv/trunk/src/xmlstreamreader.h
ViewVC logotype

Contents of /kvsvv/trunk/src/xmlstreamreader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3206 - (show annotations) (download)
Wed Jan 4 12:34:06 2012 UTC (7 years, 10 months ago) by terjeer
File MIME type: text/plain
File size: 1598 byte(s)
- first checkin -
1 #ifndef XMLSTREAMREADER_H
2 #define XMLSTREAMREADER_H
3 #include "filehandling.h"
4 #include <QXmlStreamReader>
5 #include "observasjon.h"
6 #include "feltstasjon.h"
7 #include "stasjon.h"
8 #include "eksdb.h"
9 #include <QXmlQuery>
10 class QTreeWidget;
11 class QTreeWidgetItem;
12
13 class XmlStreamReader
14 {
15 public:
16 XmlStreamReader(QString opdataPath,QString xmlLogFile,QString databaseName,QString databaseIp);
17 ~XmlStreamReader();
18 QTreeWidgetItem *readFile(const QString &fileName);
19 void start3(QTreeWidgetItem *p);
20 int deleteNodes2(QTreeWidgetItem *parent);
21 QString createParameterHeader(QString *param,int nr);
22 void nyFeltStasjon(QString stationId,QString tidsPunkt,QString parameterValue,QString parameterName,QString nrInKvalobs,Stasjon &stasjon);
23 void collectData(QString streng,QString fileName,QString parameterName,Stasjon &stasjon,QString *svvNr,QString *kvalobsNr);
24 void XQueries(QString fileName);
25 void test(QString queryString,QString parameterName,QString fileName,Stasjon &stasjon,QString *svvNr,QString *kvalobsNr);
26 int indexOfKvalobsNr(QString streng, QString * var, int maxLines);
27 QTreeWidgetItem *startElements(QFile &file,QString fileName);
28 void readBookindexElement();
29 void skipUnknownElement();
30 QTreeWidgetItem *item(QString name, QTreeWidgetItem* parent);
31 private:
32 QTreeWidget *treeWidget;
33 QTreeWidgetItem *root,*p;
34 QXmlStreamReader reader;
35 int maxLines,nrKvalobsId;
36 QString xmlFileName,convertPath,xmlLogFile,databaseName,databaseIp;
37 QString name;
38 bool canReadFile;
39 QXmlQuery query2;
40
41 };
42
43 #endif

svn@met.no
ViewVC Help
Powered by ViewVC 1.1.5