Krita Source Code Documentation
Loading...
Searching...
No Matches
csv_read_line.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Laszlo Fazekas <mneko@freemail.hu>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef CSV_READ_LINE_H_
8#define CSV_READ_LINE_H_
9
10#include <QString>
11#include <QIODevice>
12#include <QByteArray>
13
14#include "csv_layer_record.h"
15
16/* The .png file names are within 20 characters, only the layer
17 * names can be longer. If the length exceeds this, it will be
18 * truncated.
19 */
20#define CSV_FIELD_MAX 50
21
23{
24
25public:
28
29 int nextLine(QIODevice* io);
30 QString nextField();
31 void rewind();
32
33private:
34
35 QString splitNext(int* pos);
37 bool readFrame(int* pos);
38 bool finalize();
39 int readImpl(QIODevice* io);
40
42 int m_row;
43 QByteArray m_linebuf;
44 int m_pos;
45};
46
47#endif
QString nextField()
bool readFrame(int *pos)
int nextLine(QIODevice *io)
int readImpl(QIODevice *io)
bool finalize()
QString splitNext(int *pos)
bool setLayer(CSVLayerRecord *)
QByteArray m_linebuf