\hypertarget{_file_8cpp}{}\section{File.\+cpp File Reference} \label{_file_8cpp}\index{File.\+cpp@{File.\+cpp}} {\ttfamily \#include \char`\"{}packet.\+h\char`\"{}}\\* {\ttfamily \#include $<$string$>$}\\* {\ttfamily \#include $<$fstream$>$}\\* {\ttfamily \#include $<$vector$>$}\\* \subsection*{Functions} \begin{DoxyCompactItemize} \item bool \hyperlink{_file_8cpp_a96e719837f9e8411f62b2f2657a584aa}{Read\+File} (string fname, vector$<$ \hyperlink{class_packet}{Packet} $>$ \&netdata) \begin{DoxyCompactList}\small\item\em Function that reads a file and return a boolean that determines if the file was succesfully opened and read or not. \end{DoxyCompactList}\item bool \hyperlink{_file_8cpp_ac1832c1450b6f14379b397e6f90f3ada}{Save\+File} (string fname, vector$<$ \hyperlink{class_packet}{Packet} $>$ netdata) \begin{DoxyCompactList}\small\item\em Function that saves a file to the computer. It returns true when the file was succesfully saved and false if an error occurred. \end{DoxyCompactList}\end{DoxyCompactItemize} \subsection{Function Documentation} \hypertarget{_file_8cpp_a96e719837f9e8411f62b2f2657a584aa}{}\index{File.\+cpp@{File.\+cpp}!Read\+File@{Read\+File}} \index{Read\+File@{Read\+File}!File.\+cpp@{File.\+cpp}} \subsubsection[{Read\+File}]{\setlength{\rightskip}{0pt plus 5cm}bool Read\+File ( \begin{DoxyParamCaption} \item[{string}]{fname, } \item[{vector$<$ {\bf Packet} $>$ \&}]{netdata} \end{DoxyParamCaption} )}\label{_file_8cpp_a96e719837f9e8411f62b2f2657a584aa} Function that reads a file and return a boolean that determines if the file was succesfully opened and read or not. \begin{DoxyParams}{Parameters} {\em fname} & String that contains the filename of the file. \\ \hline {\em netdata} & Vector of packets. \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} true if successfuly read a file, false otherwise \end{DoxyReturn} \hypertarget{_file_8cpp_ac1832c1450b6f14379b397e6f90f3ada}{}\index{File.\+cpp@{File.\+cpp}!Save\+File@{Save\+File}} \index{Save\+File@{Save\+File}!File.\+cpp@{File.\+cpp}} \subsubsection[{Save\+File}]{\setlength{\rightskip}{0pt plus 5cm}bool Save\+File ( \begin{DoxyParamCaption} \item[{string}]{fname, } \item[{vector$<$ {\bf Packet} $>$}]{netdata} \end{DoxyParamCaption} )}\label{_file_8cpp_ac1832c1450b6f14379b397e6f90f3ada} Function that saves a file to the computer. It returns true when the file was succesfully saved and false if an error occurred. \begin{DoxyParams}{Parameters} {\em fname} & String that contains the filename of the file. \\ \hline {\em netdata} & Vector of packets. \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} true if successfuly read a file, false otherwise \end{DoxyReturn}