summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_FT/csv.h
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2013-03-01 14:39:33 +0100
committerWim Vriend <facetracknoir@gmail.com>2013-03-01 14:39:33 +0100
commit990116bf8ac838fce808316e0d5886b531318cff (patch)
treee4f68ca544d0e13654f78bb6c72ffcc75636b537 /FTNoIR_Protocol_FT/csv.h
parent204e7c8498e1abc7868828a7272b82e3085a53f9 (diff)
Add CSV-sources in FreeTrack20 and removed some obsolete files.
Diffstat (limited to 'FTNoIR_Protocol_FT/csv.h')
-rw-r--r--FTNoIR_Protocol_FT/csv.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/FTNoIR_Protocol_FT/csv.h b/FTNoIR_Protocol_FT/csv.h
new file mode 100644
index 00000000..13231293
--- /dev/null
+++ b/FTNoIR_Protocol_FT/csv.h
@@ -0,0 +1,38 @@
+/*dummy CSV reader for QT4*/
+/*version 0.1*/
+/*11.1.2009*/
+#ifndef CSV_H
+#define CSV_H
+
+//#include "myclass_api.h"
+
+#include <QObject>
+#include <QStringList>
+#include <QIODevice>
+#include <QTextCodec>
+#include <QRegExp>
+
+class /*MYCLASS_API*/ CSV /*: public QObject*/
+{
+ /*Q_OBJECT*/
+
+public:
+ CSV(QIODevice * device);
+ CSV(QString &string);
+ ~CSV();
+
+ QString readLine();
+ QStringList parseLine();
+ static QStringList parseLine(QString line);
+
+ void setCodec(const char* codecName);
+private:
+ QIODevice *m_device;
+ QTextCodec *m_codec;
+ QString m_string;
+ int m_pos;
+ QRegExp m_rx;
+
+};
+
+#endif // CSV_H