-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtracereader.h
51 lines (34 loc) · 920 Bytes
/
tracereader.h
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
48
49
50
51
#ifndef TRACEREADER_H
#define TRACEREADER_H
#include <QString>
#include <QRegExp>
#include <QList>
#include <stack>
#include "builder.h"
namespace Templar {
class TraceReader
{
public:
TraceReader() : entryCounter(0) {}
void addBuilder(Builder* builder);
void build(QString fileName);
void completeEntry(TraceEntry &entry);
void clearIgnoreList() { ignoreList.clear(); }
void setIgnoreList(const QList<QRegExp>& list);
bool isIgnored(QString text);
void setDirPath(const QString& path) {
dirPath = path;
}
QString getDirPath() const {
return dirPath;
}
private:
QList<Builder*> builders;
std::stack<TraceEntry> traceEntryStack;
QString dirPath;
QList<QRegExp> ignoreList;
unsigned int entryCounter;
};
class FileException{};
} // namespace Templar
#endif // TRACEREADER_H