summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2014-10-15 23:30:59 +0000
committerandreas <andreas@daaaf23c-2e50-4459-9457-1e69db5a47bf>2014-10-15 23:30:59 +0000
commit892031329a987a6aa92f5799d8a6d33831700677 (patch)
treec9b525435bd476dda3fc23c02ec490612849632d /src
parent36fb716bf809b5fbf03785c367dd9d03a3e9ad02 (diff)
added dependencies.txt, added changes in TODO list, added empty specifications document
git-svn-id: file:///var/local/svn/basicwriter@55 daaaf23c-2e50-4459-9457-1e69db5a47bf
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6e3457c..3603b9c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2,6 +2,8 @@
#include <QFile>
#include <QIODevice>
#include <QXmlStreamReader>
+#include <QScriptEngine>
+#include <QDebug>
#include <vector>
#include <iostream>
@@ -12,24 +14,27 @@ 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;
- }
+// 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;
- }
+// 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);
+// QXmlStreamReader xml(&file);
// Pass it to the XmlReader
- XmlReader xmlReader(xml);
- xmlReader.process();
+// XmlReader xmlReader(xml);
+// xmlReader.process();
return 0;
}