#pragma once #include #include #include #include #include #include #include class CSV { public: QString readLine(); bool parseLine(QStringList& ret); static bool getGameData(int gameID, unsigned char* table, QString& gamename); private: CSV(QIODevice* device); QIODevice* m_device; QString m_string; int m_pos; static QTextCodec const* const m_codec; static const QRegExp m_rx, m_rx2; };