diff logparser.h @ 43:c32067cd19f8

* Some experiments towards a graph history view
author Chris Cannam
date Sun, 07 Nov 2010 19:59:54 +0000
parents
children f583e44d9d31
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logparser.h	Sun Nov 07 19:59:54 2010 +0000
@@ -0,0 +1,24 @@
+#ifndef LOGPARSER_H
+#define LOGPARSER_H
+
+#include <QObject>
+#include <QString>
+#include <QList>
+#include <QMap>
+
+typedef QMap<QString, QString> LogEntry;
+typedef QList<LogEntry> LogList;
+
+class LogParser : public QObject
+{
+public:
+    LogParser(QString text);
+
+    QStringList split();
+    LogList parse();
+
+private:
+    QString m_text;
+};
+
+#endif // LOGPARSER_H