\section{File\+Reader Class Reference}
\label{class_file_reader}\index{File\+Reader@{File\+Reader}}


Reads the text file content.  




{\ttfamily \#include $<$filereader.\+h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf File\+Reader} (Q\+String file\+\_\+path)
\begin{DoxyCompactList}\small\item\em The constructor of the \doxyref{File\+Reader}{p.}{class_file_reader} class. \end{DoxyCompactList}\item 
virtual Q\+String {\bf read\+File} ()
\begin{DoxyCompactList}\small\item\em Reads one line of the file and returns it. \end{DoxyCompactList}\item 
virtual Q\+List$<$ {\bf Rectangle\+Draw} $\ast$ $>$ {\bf get\+List} () const 
\begin{DoxyCompactList}\small\item\em Returns a list of all the rectangles described in the text file. \end{DoxyCompactList}\item 
virtual Q\+String {\bf get\+Image\+Path} () const 
\begin{DoxyCompactList}\small\item\em Returns the image filepath written in the file. \end{DoxyCompactList}\item 
virtual {\bf Image} $\ast$ {\bf get\+Image} () const 
\begin{DoxyCompactList}\small\item\em Returns the image. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Reads the text file content. 

The \doxyref{File\+Reader}{p.}{class_file_reader} provides the tools which allow to read a text file associated to a T\+IF image.

\begin{DoxyAuthor}{Author}
David Carmona-\/\+Moreno
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.\+0
\end{DoxyVersion}
\begin{DoxyDate}{Date}
2016/01/11 14\+:00\+:00 
\end{DoxyDate}
\begin{DoxyRefDesc}{Bug}
\item[{\bf Bug}]Not known bugs\end{DoxyRefDesc}


Contacts\+: {\tt nikolaos.\+arvanitopoulos@epfl.\+ch} and {\tt david.\+carmona-\/moreno@epfl.\+ch}

Created on\+: Mon Jan 12 14\+:00\+:00 2016 

\subsection{Constructor \& Destructor Documentation}
\index{File\+Reader@{File\+Reader}!File\+Reader@{File\+Reader}}
\index{File\+Reader@{File\+Reader}!File\+Reader@{File\+Reader}}
\subsubsection[{File\+Reader(\+Q\+String file\+\_\+path)}]{\setlength{\rightskip}{0pt plus 5cm}File\+Reader\+::\+File\+Reader (
\begin{DoxyParamCaption}
\item[{Q\+String}]{file\+\_\+path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{class_file_reader_a6b48a6d5dae2d1964d4dc44571ee3406}


The constructor of the \doxyref{File\+Reader}{p.}{class_file_reader} class. 


\begin{DoxyParams}{Parameters}
{\em file\+\_\+path} & The filepath of the text file we want to read \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{File\+Reader@{File\+Reader}!get\+Image@{get\+Image}}
\index{get\+Image@{get\+Image}!File\+Reader@{File\+Reader}}
\subsubsection[{get\+Image() const }]{\setlength{\rightskip}{0pt plus 5cm}{\bf Image} $\ast$ File\+Reader\+::get\+Image (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_reader_a5ba7579542a6e4ba2817c49ba6b991d3}


Returns the image. 

\begin{DoxyReturn}{Returns}
The image 
\end{DoxyReturn}
\index{File\+Reader@{File\+Reader}!get\+Image\+Path@{get\+Image\+Path}}
\index{get\+Image\+Path@{get\+Image\+Path}!File\+Reader@{File\+Reader}}
\subsubsection[{get\+Image\+Path() const }]{\setlength{\rightskip}{0pt plus 5cm}Q\+String File\+Reader\+::get\+Image\+Path (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_reader_a57f95f4c31542ba64c2cbb7e1a391485}


Returns the image filepath written in the file. 

\begin{DoxyReturn}{Returns}
The image filepath 
\end{DoxyReturn}
\index{File\+Reader@{File\+Reader}!get\+List@{get\+List}}
\index{get\+List@{get\+List}!File\+Reader@{File\+Reader}}
\subsubsection[{get\+List() const }]{\setlength{\rightskip}{0pt plus 5cm}Q\+List$<$ {\bf Rectangle\+Draw} $\ast$ $>$ File\+Reader\+::get\+List (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_reader_ae5169eab9d995985a098ea14cbf3baa8}


Returns a list of all the rectangles described in the text file. 

\begin{DoxyReturn}{Returns}
The rectangles list 
\end{DoxyReturn}
\index{File\+Reader@{File\+Reader}!read\+File@{read\+File}}
\index{read\+File@{read\+File}!File\+Reader@{File\+Reader}}
\subsubsection[{read\+File()}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String File\+Reader\+::read\+File (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_reader_a820859c3f92dbdd09b3efacba69b5326}


Reads one line of the file and returns it. 

\begin{DoxyReturn}{Returns}
The line 
\end{DoxyReturn}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
/media/david/4\+A52443\+C52442\+F4\+F/\+Users/\+David/\+Desktop/\+Projet E\+P\+F\+L/\+Ground\+\_\+\+Truthing\+\_\+20\+\_\+10\+\_\+2015/filereader.\+h\item 
/media/david/4\+A52443\+C52442\+F4\+F/\+Users/\+David/\+Desktop/\+Projet E\+P\+F\+L/\+Ground\+\_\+\+Truthing\+\_\+20\+\_\+10\+\_\+2015/filereader.\+cpp\end{DoxyCompactItemize}
