Ground-Truthing GUI 1.0

- Main Page
- Related Pages
- Classes
- Files

- File List

filewriter.h
1
22 #ifndef FILEWRITER
23 #define FILEWRITER
24
25 #include "fileabstraction.h"
26 #include "createfileabstraction.h"
27
28 class FileWriter
29 {
30
31 private:
32
33 // The file related to the image
34 CreateFileAbstraction *createfileabstraction;
35
36 // TextStream pipeline
37 QTextStream outStream;
38
39 public:
40
44 FileWriter(CreateFileAbstraction *cfa_1):createfileabstraction(cfa_1),
45 outStream(cfa_1->getFile())
46 {
47
48 }
49
55 virtual void writeFilePoint(int pointx,int pointy);
56
61 virtual void writeFileRectangleId(int id);
62
68 virtual void writeFileRectangleGeo(int width, int height);
69
74 virtual void writeComment(QString comment);
75
80 virtual void writeWordNumber(QString word);
81
86 virtual void writeLineNumber(QString line);
87
92 virtual void writeImageName(QString line);
93
98 virtual void changeLine();
99
103 virtual CreateFileAbstraction* getCreateFileAbstraction()const;
104 };
105
106 #endif // FILEWRITER
107
FileWriter::writeWordNumber
virtual void writeWordNumber(QString word)
Writes the word number.
Definition: filewriter.cpp:62
FileWriter::writeImageName
virtual void writeImageName(QString line)
Writes image filepath.
Definition: filewriter.cpp:5
FileWriter::writeFilePoint
virtual void writeFilePoint(int pointx, int pointy)
Writes the Top-Left coordinates.
Definition: filewriter.cpp:14
CreateFileAbstraction
Creates a text file related to an image.
Definition: createfileabstraction.h:34
FileWriter::getCreateFileAbstraction
virtual CreateFileAbstraction * getCreateFileAbstraction() const
Returns the file we are writing in.
Definition: filewriter.cpp:81
FileWriter::writeFileRectangleId
virtual void writeFileRectangleId(int id)
Writes the ID.
Definition: filewriter.cpp:23
FileWriter::writeComment
virtual void writeComment(QString comment)
Writes the user&#39;s comment.
Definition: filewriter.cpp:41
FileWriter::writeLineNumber
virtual void writeLineNumber(QString line)
Writes the line number.
Definition: filewriter.cpp:72
FileWriter::writeFileRectangleGeo
virtual void writeFileRectangleGeo(int width, int height)
Writes the rectangle height and width.
Definition: filewriter.cpp:32
FileWriter
Write in a text file.
Definition: filewriter.h:28
FileWriter::changeLine
virtual void changeLine()
Goes to the next line.
Definition: filewriter.cpp:50
FileWriter::FileWriter
FileWriter(CreateFileAbstraction *cfa_1)
The constructor of the FileWriter class.
Definition: filewriter.h:44