\section{File\+Writer Class Reference}
\label{class_file_writer}\index{File\+Writer@{File\+Writer}}


Write in a text file.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf File\+Writer} ({\bf Create\+File\+Abstraction} $\ast$cfa\+\_\+1)
\begin{DoxyCompactList}\small\item\em The constructor of the \doxyref{File\+Writer}{p.}{class_file_writer} class. \end{DoxyCompactList}\item 
virtual void {\bf write\+File\+Point} (int pointx, int pointy)
\begin{DoxyCompactList}\small\item\em Writes the Top-\/\+Left coordinates. \end{DoxyCompactList}\item 
virtual void {\bf write\+File\+Rectangle\+Id} (int id)
\begin{DoxyCompactList}\small\item\em Writes the ID. \end{DoxyCompactList}\item 
virtual void {\bf write\+File\+Rectangle\+Geo} (int width, int height)
\begin{DoxyCompactList}\small\item\em Writes the rectangle height and width. \end{DoxyCompactList}\item 
virtual void {\bf write\+Comment} (Q\+String comment)
\begin{DoxyCompactList}\small\item\em Writes the user\textquotesingle{}s comment. \end{DoxyCompactList}\item 
virtual void {\bf write\+Word\+Number} (Q\+String word)
\begin{DoxyCompactList}\small\item\em Writes the word number. \end{DoxyCompactList}\item 
virtual void {\bf write\+Line\+Number} (Q\+String line)
\begin{DoxyCompactList}\small\item\em Writes the line number. \end{DoxyCompactList}\item 
virtual void {\bf write\+Image\+Name} (Q\+String line)
\begin{DoxyCompactList}\small\item\em Writes image filepath. \end{DoxyCompactList}\item 
virtual void {\bf change\+Line} ()
\begin{DoxyCompactList}\small\item\em Goes to the next line. \end{DoxyCompactList}\item 
virtual {\bf Create\+File\+Abstraction} $\ast$ {\bf get\+Create\+File\+Abstraction} () const 
\begin{DoxyCompactList}\small\item\em Returns the file we are writing in. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Write in a text file. 

The \doxyref{File\+Writer}{p.}{class_file_writer} provides the tools which allow to write content in a text file.

\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\+Writer@{File\+Writer}!File\+Writer@{File\+Writer}}
\index{File\+Writer@{File\+Writer}!File\+Writer@{File\+Writer}}
\subsubsection[{File\+Writer(\+Create\+File\+Abstraction $\ast$cfa\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}File\+Writer\+::\+File\+Writer (
\begin{DoxyParamCaption}
\item[{{\bf Create\+File\+Abstraction} $\ast$}]{cfa\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{class_file_writer_a4b2f00982d9fb8f2e52cf4b09ac417ec}


The constructor of the \doxyref{File\+Writer}{p.}{class_file_writer} class. 


\begin{DoxyParams}{Parameters}
{\em cfa\+\_\+1} & The text file in which we want to write all the rectangle informations \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{File\+Writer@{File\+Writer}!change\+Line@{change\+Line}}
\index{change\+Line@{change\+Line}!File\+Writer@{File\+Writer}}
\subsubsection[{change\+Line()}]{\setlength{\rightskip}{0pt plus 5cm}void File\+Writer\+::change\+Line (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_aa1426cf594b6850eeffcd2ee4545b7e2}


Goes to the next line. 

\begin{DoxyNote}{Note}
~\newline
 is the change line operation in Windows. The developer has to change it according to his Operating System. 
\end{DoxyNote}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{File\+Writer@{File\+Writer}!get\+Create\+File\+Abstraction@{get\+Create\+File\+Abstraction}}
\index{get\+Create\+File\+Abstraction@{get\+Create\+File\+Abstraction}!File\+Writer@{File\+Writer}}
\subsubsection[{get\+Create\+File\+Abstraction() const }]{\setlength{\rightskip}{0pt plus 5cm}{\bf Create\+File\+Abstraction} $\ast$ File\+Writer\+::get\+Create\+File\+Abstraction (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_afb2171188ec5b064ebe04ff4d9c43082}


Returns the file we are writing in. 

\begin{DoxyReturn}{Returns}
The file we are writing in 
\end{DoxyReturn}
\index{File\+Writer@{File\+Writer}!write\+Comment@{write\+Comment}}
\index{write\+Comment@{write\+Comment}!File\+Writer@{File\+Writer}}
\subsubsection[{write\+Comment(\+Q\+String comment)}]{\setlength{\rightskip}{0pt plus 5cm}void File\+Writer\+::write\+Comment (
\begin{DoxyParamCaption}
\item[{Q\+String}]{comment}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_a01a8ac2ddc577cecd36c9f7b61ed5207}


Writes the user\textquotesingle{}s comment. 


\begin{DoxyParams}{Parameters}
{\em comment} & The user\textquotesingle{}s comment \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{File\+Writer@{File\+Writer}!write\+File\+Point@{write\+File\+Point}}
\index{write\+File\+Point@{write\+File\+Point}!File\+Writer@{File\+Writer}}
\subsubsection[{write\+File\+Point(int pointx, int pointy)}]{\setlength{\rightskip}{0pt plus 5cm}void File\+Writer\+::write\+File\+Point (
\begin{DoxyParamCaption}
\item[{int}]{pointx, }
\item[{int}]{pointy}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_af290d756c1ea95690913a777ad625584}


Writes the Top-\/\+Left coordinates. 


\begin{DoxyParams}{Parameters}
{\em x} & The x Top-\/\+Left coordinate \\
\hline
{\em y} & The y Top-\/\+Left coordinate \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{File\+Writer@{File\+Writer}!write\+File\+Rectangle\+Geo@{write\+File\+Rectangle\+Geo}}
\index{write\+File\+Rectangle\+Geo@{write\+File\+Rectangle\+Geo}!File\+Writer@{File\+Writer}}
\subsubsection[{write\+File\+Rectangle\+Geo(int width, int height)}]{\setlength{\rightskip}{0pt plus 5cm}void File\+Writer\+::write\+File\+Rectangle\+Geo (
\begin{DoxyParamCaption}
\item[{int}]{width, }
\item[{int}]{height}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_af699ae6c224d7e9ba5cba614ca88cd3b}


Writes the rectangle height and width. 


\begin{DoxyParams}{Parameters}
{\em width} & The rectangle width \\
\hline
{\em height} & The rectangle height \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{File\+Writer@{File\+Writer}!write\+File\+Rectangle\+Id@{write\+File\+Rectangle\+Id}}
\index{write\+File\+Rectangle\+Id@{write\+File\+Rectangle\+Id}!File\+Writer@{File\+Writer}}
\subsubsection[{write\+File\+Rectangle\+Id(int id)}]{\setlength{\rightskip}{0pt plus 5cm}void File\+Writer\+::write\+File\+Rectangle\+Id (
\begin{DoxyParamCaption}
\item[{int}]{id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_a561e907f1a0a3781780ac75038ec29d4}


Writes the ID. 


\begin{DoxyParams}{Parameters}
{\em id} & The rectangle id \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{File\+Writer@{File\+Writer}!write\+Image\+Name@{write\+Image\+Name}}
\index{write\+Image\+Name@{write\+Image\+Name}!File\+Writer@{File\+Writer}}
\subsubsection[{write\+Image\+Name(\+Q\+String line)}]{\setlength{\rightskip}{0pt plus 5cm}void File\+Writer\+::write\+Image\+Name (
\begin{DoxyParamCaption}
\item[{Q\+String}]{line}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_aa482fb04c4d6195e657d0526160b0cf8}


Writes image filepath. 


\begin{DoxyParams}{Parameters}
{\em line} & The image filepath \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{File\+Writer@{File\+Writer}!write\+Line\+Number@{write\+Line\+Number}}
\index{write\+Line\+Number@{write\+Line\+Number}!File\+Writer@{File\+Writer}}
\subsubsection[{write\+Line\+Number(\+Q\+String line)}]{\setlength{\rightskip}{0pt plus 5cm}void File\+Writer\+::write\+Line\+Number (
\begin{DoxyParamCaption}
\item[{Q\+String}]{line}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_a938c338b40ad62bc3e608ce737547b82}


Writes the line number. 


\begin{DoxyParams}{Parameters}
{\em line} & The line number \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}
\index{File\+Writer@{File\+Writer}!write\+Word\+Number@{write\+Word\+Number}}
\index{write\+Word\+Number@{write\+Word\+Number}!File\+Writer@{File\+Writer}}
\subsubsection[{write\+Word\+Number(\+Q\+String word)}]{\setlength{\rightskip}{0pt plus 5cm}void File\+Writer\+::write\+Word\+Number (
\begin{DoxyParamCaption}
\item[{Q\+String}]{word}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_file_writer_ac64f02025a075a18ba43f5ac8ca9d9f0}


Writes the word number. 


\begin{DoxyParams}{Parameters}
{\em word} & The word number \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\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/filewriter.\+h\item 
/media/david/4\+A52443\+C52442\+F4\+F/\+Users/\+David/\+Desktop/\+Projet E\+P\+F\+L/\+Ground\+\_\+\+Truthing\+\_\+20\+\_\+10\+\_\+2015/filewriter.\+cpp\end{DoxyCompactItemize}
