TemporaryDirectory Class Reference

#include <TemporaryDirectory.h>


Public Member Functions

 TemporaryDirectory (std::vector< int > aFileSizeVector)
 TemporaryDirectory (const std::string &aDirPath)
 ~TemporaryDirectory ()
std::string getDirPath () const
std::string getDirName () const
bool operator== (const TemporaryDirectory &aDir) const

Private Types

typedef std::map< std::string,
TemporaryFile * > 
Files

Private Member Functions

void createAndAddFile (int aFileSize)

Private Attributes

std::string theDirPath
Files theFiles


Detailed Description

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

Definition at line 40 of file TemporaryDirectory.h.


Member Typedef Documentation

typedef std::map<std::string, TemporaryFile*> TemporaryDirectory::Files [private]

Definition at line 44 of file TemporaryDirectory.h.


Constructor & Destructor Documentation

TemporaryDirectory::TemporaryDirectory ( std::vector< int >  aFileSizeVector  ) 

Create a temporary file of aFileSize bytes.

TemporaryDirectory::TemporaryDirectory ( const std::string &  aDirPath  ) 

Attach this at an existing file.

TemporaryDirectory::~TemporaryDirectory (  ) 


Member Function Documentation

std::string TemporaryDirectory::getDirPath (  )  const [inline]

Return the complete file path.

Definition at line 62 of file TemporaryDirectory.h.

References theDirPath.

std::string TemporaryDirectory::getDirName (  )  const

Return the name of the file.

bool TemporaryDirectory::operator== ( const TemporaryDirectory aDir  )  const

void TemporaryDirectory::createAndAddFile ( int  aFileSize  )  [private]


Field Documentation

std::string TemporaryDirectory::theDirPath [private]

Definition at line 77 of file TemporaryDirectory.h.

Referenced by getDirPath().

Files TemporaryDirectory::theFiles [private]

Definition at line 79 of file TemporaryDirectory.h.


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