summaryrefslogtreecommitdiff
path: root/src/main.cpp
blob: 3603b9cbf80ea9e08809b70e342eb034fb70def4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <QApplication>
#include <QFile>
#include <QIODevice>
#include <QXmlStreamReader>
#include <QScriptEngine>
#include <QDebug>

#include <vector>
#include <iostream>

#include <xml/XmlReader.hpp>

using namespace ousia::xml;

int main(int argc, char *argv[])
{
	QScriptEngine engine;
	qDebug() << "JS Test: " << engine.evaluate("Test");

	// Open the file given as first argument
//	if (argc < 2) {
//		std::cout << "No filename specified!" << std::endl;
//		return 1;
//	}

//	QFile file(argv[1]);
//	if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
//		std::cout << "Error while opening file " << argv[1] << std::endl;
//		return 1;
//	}

	// Create the QXmlStreamReader instance
//	QXmlStreamReader xml(&file);

	// Pass it to the XmlReader
//	XmlReader xmlReader(xml);
//	xmlReader.process();

	return 0;
}