\section{Create\+File\+Abstraction Class Reference}
\label{class_create_file_abstraction}\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}}


Creates a text file related to an image.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Create\+File\+Abstraction} ({\bf Image} \&image\+\_\+1)
\begin{DoxyCompactList}\small\item\em The first constructor of the \doxyref{Create\+File\+Abstraction}{p.}{class_create_file_abstraction} class This constructor is called when the user opens a image which is not associated to a text file. \end{DoxyCompactList}\item 
{\bf Create\+File\+Abstraction} (Q\+String file\+Path\+\_\+1)
\begin{DoxyCompactList}\small\item\em The second constructor of the \doxyref{Create\+File\+Abstraction}{p.}{class_create_file_abstraction} class This constructor is called when the user opens a text file which is already associated to an image. \end{DoxyCompactList}\item 
virtual {\bf $\sim$\+Create\+File\+Abstraction} ()\label{class_create_file_abstraction_a420954c5be1e15e826d3febb3fb1222b}

\begin{DoxyCompactList}\small\item\em Class destructor. \end{DoxyCompactList}\item 
virtual void {\bf create\+File} ()
\begin{DoxyCompactList}\small\item\em Creates the text file associated to the image. \end{DoxyCompactList}\item 
virtual Q\+String {\bf remove\+Extension} (Q\+String filename\+\_\+with\+\_\+extension) const 
\begin{DoxyCompactList}\small\item\em Removes the \char`\"{}.\+tiff\char`\"{} extension from the image filepath. \end{DoxyCompactList}\item 
virtual {\bf File\+Abstraction} $\ast$ {\bf get\+File} () const 
\begin{DoxyCompactList}\small\item\em Returns the text file associated to the image. \end{DoxyCompactList}\item 
virtual {\bf Image} $\ast$ {\bf get\+Image} () const 
\begin{DoxyCompactList}\small\item\em Returns the image to which the text file is associated. \end{DoxyCompactList}\item 
virtual void {\bf set\+Image} ({\bf Image} $\ast$image\+\_\+1)
\begin{DoxyCompactList}\small\item\em Set the image to which the text file is associated. \end{DoxyCompactList}\item 
virtual void {\bf set\+File} ({\bf File\+Abstraction} $\ast$file\+\_\+1)
\begin{DoxyCompactList}\small\item\em Set the text file. \end{DoxyCompactList}\item 
virtual bool {\bf file\+Exists} () const 
\begin{DoxyCompactList}\small\item\em When the user opens an image, checks if a text file associated to this image already exists. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Creates a text file related to an image. 

This class creates a text file when the user opens an image for the first time.

\begin{DoxyNote}{Note}
The text file has the same name as the image to which it is related. It is also created in the same directory.
\end{DoxyNote}
\begin{DoxyAuthor}{Author}

\end{DoxyAuthor}
\begin{DoxyParagraph}{Author}
David Carmona-\/\+Moreno 
\end{DoxyParagraph}


\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Revision}
1.\+0 
\end{DoxyParagraph}


\begin{DoxyDate}{Date}

\end{DoxyDate}
\begin{DoxyParagraph}{Date}
2016/01/11 14\+:00\+:00 
\end{DoxyParagraph}
\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{Create\+File\+Abstraction@{Create\+File\+Abstraction}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\subsubsection[{Create\+File\+Abstraction(\+Image \&image\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}Create\+File\+Abstraction\+::\+Create\+File\+Abstraction (
\begin{DoxyParamCaption}
\item[{{\bf Image} \&}]{image\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{class_create_file_abstraction_a0ce8dcafbdc89ea71ff28e742f7dfc3f}


The first constructor of the \doxyref{Create\+File\+Abstraction}{p.}{class_create_file_abstraction} class This constructor is called when the user opens a image which is not associated to a text file. 


\begin{DoxyParams}{Parameters}
{\em image\+\_\+1} & The image to which the text file is going to be associated. \\
\hline
\end{DoxyParams}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\subsubsection[{Create\+File\+Abstraction(\+Q\+String file\+Path\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}Create\+File\+Abstraction\+::\+Create\+File\+Abstraction (
\begin{DoxyParamCaption}
\item[{Q\+String}]{file\+Path\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{class_create_file_abstraction_a671438547a9bc68833ebea96635e2979}


The second constructor of the \doxyref{Create\+File\+Abstraction}{p.}{class_create_file_abstraction} class This constructor is called when the user opens a text file which is already associated to an image. 


\begin{DoxyParams}{Parameters}
{\em file\+Path\+\_\+1} & The filepath of the text file \\
\hline
\end{DoxyParams}


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


Creates the text file associated to the image. 

\begin{DoxyReturn}{Returns}
Void. 
\end{DoxyReturn}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!file\+Exists@{file\+Exists}}
\index{file\+Exists@{file\+Exists}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\subsubsection[{file\+Exists() const }]{\setlength{\rightskip}{0pt plus 5cm}bool Create\+File\+Abstraction\+::file\+Exists (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_create_file_abstraction_af8807c31d4d71f2e5a029c8cd24c7f09}


When the user opens an image, checks if a text file associated to this image already exists. 

\begin{DoxyReturn}{Returns}
True if the text file exists and False if it does not. 
\end{DoxyReturn}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!get\+File@{get\+File}}
\index{get\+File@{get\+File}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\subsubsection[{get\+File() const }]{\setlength{\rightskip}{0pt plus 5cm}{\bf File\+Abstraction} $\ast$ Create\+File\+Abstraction\+::get\+File (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_create_file_abstraction_ad0948d36959797e28c5485441428685e}


Returns the text file associated to the image. 

\begin{DoxyReturn}{Returns}
The text file associated to the image 
\end{DoxyReturn}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!get\+Image@{get\+Image}}
\index{get\+Image@{get\+Image}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\subsubsection[{get\+Image() const }]{\setlength{\rightskip}{0pt plus 5cm}{\bf Image} $\ast$ Create\+File\+Abstraction\+::get\+Image (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_create_file_abstraction_af3f2a68b47dd581a27084bb75384a202}


Returns the image to which the text file is associated. 

\begin{DoxyReturn}{Returns}
The image to which the text file is associated 
\end{DoxyReturn}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!remove\+Extension@{remove\+Extension}}
\index{remove\+Extension@{remove\+Extension}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\subsubsection[{remove\+Extension(\+Q\+String filename\+\_\+with\+\_\+extension) const }]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Create\+File\+Abstraction\+::remove\+Extension (
\begin{DoxyParamCaption}
\item[{Q\+String}]{filename\+\_\+with\+\_\+extension}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_create_file_abstraction_a4ceea97c211b3ad46a6e6aacb571fdf9}


Removes the \char`\"{}.\+tiff\char`\"{} extension from the image filepath. 


\begin{DoxyParams}{Parameters}
{\em filename\+\_\+with\+\_\+extension} & The image filename \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
A filename without the extension \char`\"{}.\+tiff\char`\"{} 
\end{DoxyReturn}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!set\+File@{set\+File}}
\index{set\+File@{set\+File}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\subsubsection[{set\+File(\+File\+Abstraction $\ast$file\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}void Create\+File\+Abstraction\+::set\+File (
\begin{DoxyParamCaption}
\item[{{\bf File\+Abstraction} $\ast$}]{file\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_create_file_abstraction_aad80fbef6f84d7d69ada53c121c0f05e}


Set the text file. 


\begin{DoxyParams}{Parameters}
{\em file\+\_\+1} & The text file \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Void. 
\end{DoxyReturn}
\index{Create\+File\+Abstraction@{Create\+File\+Abstraction}!set\+Image@{set\+Image}}
\index{set\+Image@{set\+Image}!Create\+File\+Abstraction@{Create\+File\+Abstraction}}
\subsubsection[{set\+Image(\+Image $\ast$image\+\_\+1)}]{\setlength{\rightskip}{0pt plus 5cm}void Create\+File\+Abstraction\+::set\+Image (
\begin{DoxyParamCaption}
\item[{{\bf Image} $\ast$}]{image\+\_\+1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{class_create_file_abstraction_a96193d887dacd9f6ada69444558b0a27}


Set the image to which the text file is associated. 


\begin{DoxyParams}{Parameters}
{\em image\+\_\+1} & The image to which the text file is associated \\
\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/createfileabstraction.\+h\item 
/media/david/4\+A52443\+C52442\+F4\+F/\+Users/\+David/\+Desktop/\+Projet E\+P\+F\+L/\+Ground\+\_\+\+Truthing\+\_\+20\+\_\+10\+\_\+2015/createfileabstraction.\+cpp\end{DoxyCompactItemize}
