code::TempDir Class Reference

List of all members.

Detailed Description

Use this class to hold sets of temporary files that need to be cleared out later.

The directory, and its temporary files, will be deleted when the TempDir's destructor is invoked. So to keep the files around, keep the TempDir as a field in your object.

Author:
Charles Kerr
Version:
Id
code_TempDir.h,v 1.5 2009/06/02 20:17:40 lakshman Exp


Public Member Functions

 TempDir (const std::string &dir="")
 If dir is empty, a new subdirectory underneath OS::getTempDir() is created and used.
virtual ~TempDir ()
 The temporary directory and its files are deleted here.
const std::string & getDir () const

Protected Attributes

const std::string _dir


Constructor & Destructor Documentation

code::TempDir::TempDir ( const std::string &  dir = ""  ) 

If dir is empty, a new subdirectory underneath OS::getTempDir() is created and used.

virtual code::TempDir::~TempDir (  )  [virtual]

The temporary directory and its files are deleted here.


Member Function Documentation

const std::string& code::TempDir::getDir (  )  const


Member Data Documentation

const std::string code::TempDir::_dir [protected]


Generated on Fri May 4 13:40:13 2012 for WDSS-IIw2 by  doxygen 1.4.7