Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

CPredicateFileIO Class Reference

Handles file I/O during binary file loading. More...

#include <pred_fileio.h>

List of all members.

Public Member Functions

bool OpenInputFile (const std::string &a_path)
 Opens an input file for reading.

bool CloseInputFile ()
 Closes the input file.

std::string GetPredicate (bool *a_flag)
 Gets a raw predicate from the input file.

 CPredicateFileIO ()
 Constructor.

 ~CPredicateFileIO ()
 Destructor.


Private Member Functions

bool p_GetLine (std::string &a_string) const
 Gets a line from the file.


Private Attributes

FILE * m_fp
 File handle for current opened file.


Detailed Description

Handles file I/O during binary file loading.

Definition at line 30 of file pred_fileio.h.


Constructor & Destructor Documentation

CPredicateFileIO::CPredicateFileIO  )  [inline]
 

Constructor.

Definition at line 93 of file pred_fileio.h.

References m_fp.

CPredicateFileIO::~CPredicateFileIO  )  [inline]
 

Destructor.

Definition at line 99 of file pred_fileio.h.

References CloseInputFile().

Here is the call graph for this function:


Member Function Documentation

bool CPredicateFileIO::CloseInputFile  )  [inline]
 

Closes the input file.

Definition at line 52 of file pred_fileio.h.

References m_fp.

Referenced by COMCSNet::LoadPredicateFile(), and ~CPredicateFileIO().

std::string CPredicateFileIO::GetPredicate bool *  a_flag  )  [inline]
 

Gets a raw predicate from the input file.

Definition at line 67 of file pred_fileio.h.

References m_fp, and p_GetLine().

Referenced by COMCSNet::LoadPredicateFile().

Here is the call graph for this function:

bool CPredicateFileIO::OpenInputFile const std::string &  a_path  )  [inline]
 

Opens an input file for reading.

Definition at line 34 of file pred_fileio.h.

References m_fp.

Referenced by COMCSNet::LoadPredicateFile().

bool CPredicateFileIO::p_GetLine std::string &  a_string  )  const [inline, private]
 

Gets a line from the file.

Definition at line 106 of file pred_fileio.h.

References m_fp.

Referenced by GetPredicate().


Member Data Documentation

FILE* CPredicateFileIO::m_fp [private]
 

File handle for current opened file.

Definition at line 147 of file pred_fileio.h.

Referenced by CloseInputFile(), CPredicateFileIO(), GetPredicate(), OpenInputFile(), and p_GetLine().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 09:45:10 2003 for OMCSNetCPP by doxygen 1.3.3