summaryrefslogtreecommitdiffhomepage
path: root/csv/csv.h
diff options
context:
space:
mode:
Diffstat (limited to 'csv/csv.h')
-rw-r--r--csv/csv.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/csv/csv.h b/csv/csv.h
new file mode 100644
index 00000000..e0eac7dd
--- /dev/null
+++ b/csv/csv.h
@@ -0,0 +1,26 @@
+#pragma once
+#include <QObject>
+#include <QStringList>
+#include <QIODevice>
+#include <QTextCodec>
+#include <QRegExp>
+#include <QtGlobal>
+
+class CSV
+{
+public:
+ QString readLine();
+ QStringList parseLine();
+ static QStringList parseLine(QString line);
+
+ void setCodec(const char* codecName);
+ static void getGameData(const int gameID, unsigned char* table, QString& gamename);
+private:
+ QIODevice *m_device;
+ QTextCodec *m_codec;
+ QString m_string;
+ int m_pos;
+ QRegExp m_rx;
+ CSV(QIODevice * device);
+ CSV(QString &string);
+};