blob: 9e72b2bb00da5629d99b56dbad1908b42e2dd3bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include <QtGlobal>
#include <QObject>
#include <QStringList>
#include <QIODevice>
#include <QTextCodec>
#include <QRegExp>
#include <QtGlobal>
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;
};
|