TemporaryFile Class Reference

#include <TemporaryFile.h>

Public Member Functions

 TemporaryFile (int aFileSize, const std::string &aCreationPath="")
 TemporaryFile (const std::string &aFilePath)
 ~TemporaryFile ()
std::string getFilePath () const
std::string getFileName () const
bool operator== (const TemporaryFile &aRHS) const

Private Member Functions

void CreateAndFill (int aFileSize)

Private Attributes

std::string theFilePath

Detailed Description

Create a temporary file of aFileSize bytes. It is deleted automatically when the object is deleted.

Definition at line 36 of file TemporaryFile.h.

Constructor & Destructor Documentation

TemporaryFile::TemporaryFile ( int  aFileSize,
const std::string &  aCreationPath = "" 

Create a temporary file of aFileSize bytes.

TemporaryFile::TemporaryFile ( const std::string &  aFilePath  ) 

Attach this at an existing file.

TemporaryFile::~TemporaryFile (  ) 

Member Function Documentation

std::string TemporaryFile::getFilePath (  )  const [inline]

Return the complete file path.

Definition at line 54 of file TemporaryFile.h.

References theFilePath.

std::string TemporaryFile::getFileName (  )  const

Return the name of the file.

bool TemporaryFile::operator== ( const TemporaryFile aRHS  )  const

Check if two files contains the same information.

void TemporaryFile::CreateAndFill ( int  aFileSize  )  [private]

Field Documentation

std::string TemporaryFile::theFilePath [private]

Definition at line 70 of file TemporaryFile.h.

Referenced by getFilePath().

The documentation for this class was generated from the following file:
Generated on Fri Mar 9 20:09:00 2007 for MAD-FCL by  doxygen 1.5.0