25 #include "QTextStream" 26 #include "extractinformation.h" 27 #include "rectangledraw.h" 41 QTextStream *inStream;
50 QList<RectangleDraw*> list;
66 FileReader(QString file_path):image_path(
"NULL"),image(NULL)
69 file=
new QFile(file_path);
70 inStream=
new QTextStream(file);
81 virtual QList<RectangleDraw *>
getList()
const;
virtual QString getImagePath() const
Returns the image filepath written in the file.
Definition: filereader.cpp:65
Inherits the QPixmap class.
Definition: image.h:32
virtual Image * getImage() const
Returns the image.
Definition: filereader.cpp:69
FileReader(QString file_path)
The constructor of the FileReader class.
Definition: filereader.h:66
Describes a rectangle drawn by the user.
Definition: rectangledraw.h:34
Reads the text file content.
Definition: filereader.h:35
virtual QString readFile()
Reads one line of the file and returns it.
Definition: filereader.cpp:5
virtual QList< RectangleDraw * > getList() const
Returns a list of all the rectangles described in the text file.
Definition: filereader.cpp:61