diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-02 12:05:04 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-02 18:32:44 +0100 |
commit | 4c237558dd079133f48789da9e97b541c2e89fa5 (patch) | |
tree | 439a6ac064393992db47584b60ddd77b9ed6ba68 /csv/csv.h | |
parent | d97fec6daff4df7b8868b708ef543e0aa0455d4f (diff) |
rename csv module dir
Diffstat (limited to 'csv/csv.h')
-rw-r--r-- | csv/csv.h | 26 |
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); +}; |