blob: b8c40e272901e55763db8b7c3bdf94bd82fb3f92 (
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
27
28
29
|
#pragma once
#include <QtGlobal>
#include <QObject>
#include <QStringList>
#include <QIODevice>
#include <QTextCodec>
#include <QRegExp>
#include <QtGlobal>
#include "export.hpp"
class OTR_CSV_EXPORT 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 const QTextCodec* m_codec;
static const QRegExp m_rx;
static const QRegExp m_rx2; // Silly M$ compiler! It will generate an error if both of these variables are declared on the same line! (M$ Visual Studio Community 2015, Update 3)
};
|