-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.h
More file actions
47 lines (34 loc) · 871 Bytes
/
parser.h
File metadata and controls
47 lines (34 loc) · 871 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef PARSER_H
#define PARSER_H
#include <QString>
#include <QFileInfo>
#include <QStringList>
// Don't use Parse class directy!!! It's mean't to be subclassed.
class Parser
{
public:
Parser();
~Parser();
enum FileType {
DAT=0,
CSV,
NoType,
};
void setFileType(Parser::FileType type);
Parser::FileType fileType();
QFileInfo exportInfo() const;
QString exportFile() const;
virtual void parse();
QStringList delimiters() const;
QStringList getFiles(const QString path);
void setDelimiters(const QStringList list);
void setDelimiters(const QString &delim);
void setExportPath(const QString path);
void setExportFile(const QString file);
private:
Parser::FileType m_type;
QFileInfo export_info;
QString export_file;
QStringList m_delims;
};
#endif // PARSER_H