\hypertarget{classCPredicateFileIO}{
\section{CPredicate\-File\-IO Class Reference}
\label{classCPredicateFileIO}\index{CPredicateFileIO@{CPredicateFileIO}}
}
Handles file I/O during binary file loading.  


{\tt \#include $<$pred\_\-fileio.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
bool \hyperlink{classCPredicateFileIO_CPredicateFileIOa0}{Open\-Input\-File} (const std::string \&a\_\-path)
\begin{CompactList}\small\item\em Opens an input file for reading. \item\end{CompactList}\item 
bool \hyperlink{classCPredicateFileIO_CPredicateFileIOa1}{Close\-Input\-File} ()
\begin{CompactList}\small\item\em Closes the input file. \item\end{CompactList}\item 
std::string \hyperlink{classCPredicateFileIO_CPredicateFileIOa2}{Get\-Predicate} (bool $\ast$a\_\-flag)
\begin{CompactList}\small\item\em Gets a raw predicate from the input file. \item\end{CompactList}\item 
\hyperlink{classCPredicateFileIO_CPredicateFileIOa3}{CPredicate\-File\-IO} ()
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
\hyperlink{classCPredicateFileIO_CPredicateFileIOa4}{$\sim$CPredicate\-File\-IO} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Member Functions}
\begin{CompactItemize}
\item 
bool \hyperlink{classCPredicateFileIO_CPredicateFileIOd0}{p\_\-Get\-Line} (std::string \&a\_\-string) const
\begin{CompactList}\small\item\em Gets a line from the file. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
FILE $\ast$ \hyperlink{classCPredicateFileIO_CPredicateFileIOr0}{m\_\-fp}
\begin{CompactList}\small\item\em File handle for current opened file. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Handles file I/O during binary file loading. 



Definition at line 30 of file pred\_\-fileio.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classCPredicateFileIO_CPredicateFileIOa3}{
\index{CPredicateFileIO@{CPredicate\-File\-IO}!CPredicateFileIO@{CPredicateFileIO}}
\index{CPredicateFileIO@{CPredicateFileIO}!CPredicateFileIO@{CPredicate\-File\-IO}}
\subsubsection[CPredicateFileIO]{\setlength{\rightskip}{0pt plus 5cm}CPredicate\-File\-IO::CPredicate\-File\-IO ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCPredicateFileIO_CPredicateFileIOa3}


Constructor. 



Definition at line 93 of file pred\_\-fileio.h.

References m\_\-fp.\hypertarget{classCPredicateFileIO_CPredicateFileIOa4}{
\index{CPredicateFileIO@{CPredicate\-File\-IO}!~CPredicateFileIO@{$\sim$CPredicateFileIO}}
\index{~CPredicateFileIO@{$\sim$CPredicateFileIO}!CPredicateFileIO@{CPredicate\-File\-IO}}
\subsubsection[$\sim$CPredicateFileIO]{\setlength{\rightskip}{0pt plus 5cm}CPredicate\-File\-IO::$\sim$\hyperlink{classCPredicateFileIO}{CPredicate\-File\-IO} ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCPredicateFileIO_CPredicateFileIOa4}


Destructor. 



Definition at line 99 of file pred\_\-fileio.h.

References Close\-Input\-File().

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=220pt]{classCPredicateFileIO_CPredicateFileIOa4_cgraph}
\end{center}
\end{figure}


\subsection{Member Function Documentation}
\hypertarget{classCPredicateFileIO_CPredicateFileIOa1}{
\index{CPredicateFileIO@{CPredicate\-File\-IO}!CloseInputFile@{CloseInputFile}}
\index{CloseInputFile@{CloseInputFile}!CPredicateFileIO@{CPredicate\-File\-IO}}
\subsubsection[CloseInputFile]{\setlength{\rightskip}{0pt plus 5cm}bool CPredicate\-File\-IO::Close\-Input\-File ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCPredicateFileIO_CPredicateFileIOa1}


Closes the input file. 



Definition at line 52 of file pred\_\-fileio.h.

References m\_\-fp.

Referenced by COMCSNet::Load\-Predicate\-File(), and $\sim$CPredicate\-File\-IO().\hypertarget{classCPredicateFileIO_CPredicateFileIOa2}{
\index{CPredicateFileIO@{CPredicate\-File\-IO}!GetPredicate@{GetPredicate}}
\index{GetPredicate@{GetPredicate}!CPredicateFileIO@{CPredicate\-File\-IO}}
\subsubsection[GetPredicate]{\setlength{\rightskip}{0pt plus 5cm}std::string CPredicate\-File\-IO::Get\-Predicate (bool $\ast$ {\em a\_\-flag})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCPredicateFileIO_CPredicateFileIOa2}


Gets a raw predicate from the input file. 



Definition at line 67 of file pred\_\-fileio.h.

References m\_\-fp, and p\_\-Get\-Line().

Referenced by COMCSNet::Load\-Predicate\-File().

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=198pt]{classCPredicateFileIO_CPredicateFileIOa2_cgraph}
\end{center}
\end{figure}
\hypertarget{classCPredicateFileIO_CPredicateFileIOa0}{
\index{CPredicateFileIO@{CPredicate\-File\-IO}!OpenInputFile@{OpenInputFile}}
\index{OpenInputFile@{OpenInputFile}!CPredicateFileIO@{CPredicate\-File\-IO}}
\subsubsection[OpenInputFile]{\setlength{\rightskip}{0pt plus 5cm}bool CPredicate\-File\-IO::Open\-Input\-File (const std::string \& {\em a\_\-path})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCPredicateFileIO_CPredicateFileIOa0}


Opens an input file for reading. 



Definition at line 34 of file pred\_\-fileio.h.

References m\_\-fp.

Referenced by COMCSNet::Load\-Predicate\-File().\hypertarget{classCPredicateFileIO_CPredicateFileIOd0}{
\index{CPredicateFileIO@{CPredicate\-File\-IO}!p_GetLine@{p\_\-GetLine}}
\index{p_GetLine@{p\_\-GetLine}!CPredicateFileIO@{CPredicate\-File\-IO}}
\subsubsection[p\_\-GetLine]{\setlength{\rightskip}{0pt plus 5cm}bool CPredicate\-File\-IO::p\_\-Get\-Line (std::string \& {\em a\_\-string}) const\hspace{0.3cm}{\tt  \mbox{[}inline, private\mbox{]}}}}
\label{classCPredicateFileIO_CPredicateFileIOd0}


Gets a line from the file. 



Definition at line 106 of file pred\_\-fileio.h.

References m\_\-fp.

Referenced by Get\-Predicate().

\subsection{Member Data Documentation}
\hypertarget{classCPredicateFileIO_CPredicateFileIOr0}{
\index{CPredicateFileIO@{CPredicate\-File\-IO}!m_fp@{m\_\-fp}}
\index{m_fp@{m\_\-fp}!CPredicateFileIO@{CPredicate\-File\-IO}}
\subsubsection[m\_\-fp]{\setlength{\rightskip}{0pt plus 5cm}FILE$\ast$ \hyperlink{classCPredicateFileIO_CPredicateFileIOr0}{CPredicate\-File\-IO::m\_\-fp}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classCPredicateFileIO_CPredicateFileIOr0}


File handle for current opened file. 



Definition at line 147 of file pred\_\-fileio.h.

Referenced by Close\-Input\-File(), CPredicate\-File\-IO(), Get\-Predicate(), Open\-Input\-File(), and p\_\-Get\-Line().

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
\hyperlink{pred__fileio_8h}{pred\_\-fileio.h}\end{CompactItemize}
