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
22
class
CSVReadLine
23
{
24
25
public
:
26
CSVReadLine
();
27
~CSVReadLine
();
28
29
int
nextLine
(QIODevice* io);
30
QString
nextField
();
31
void
rewind
();
32
33
private
:
34
35
QString
splitNext
(
int
* pos);
36
bool
setLayer
(
CSVLayerRecord
* );
37
bool
readFrame
(
int
* pos);
38
bool
finalize
();
39
int
readImpl
(QIODevice* io);
40
41
char
m_separator
;
42
int
m_row
;
43
QByteArray
m_linebuf
;
44
int
m_pos
;
45
};
46
47
#endif
CSVLayerRecord
Definition
csv_layer_record.h:15
CSVReadLine
Definition
csv_read_line.h:23
CSVReadLine::nextField
QString nextField()
Definition
csv_read_line.cpp:55
CSVReadLine::readFrame
bool readFrame(int *pos)
CSVReadLine::nextLine
int nextLine(QIODevice *io)
Definition
csv_read_line.cpp:31
CSVReadLine::CSVReadLine
CSVReadLine()
Definition
csv_read_line.cpp:18
CSVReadLine::m_pos
int m_pos
Definition
csv_read_line.h:44
CSVReadLine::readImpl
int readImpl(QIODevice *io)
CSVReadLine::m_row
int m_row
Definition
csv_read_line.h:42
CSVReadLine::finalize
bool finalize()
CSVReadLine::splitNext
QString splitNext(int *pos)
CSVReadLine::rewind
void rewind()
Definition
csv_read_line.cpp:126
CSVReadLine::~CSVReadLine
~CSVReadLine()
Definition
csv_read_line.cpp:26
CSVReadLine::setLayer
bool setLayer(CSVLayerRecord *)
CSVReadLine::m_linebuf
QByteArray m_linebuf
Definition
csv_read_line.h:43
CSVReadLine::m_separator
char m_separator
Definition
csv_read_line.h:41
csv_layer_record.h
plugins
impex
csv
csv_read_line.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52