Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

DeleteTempFile Class Reference

A ProcessEndCallback that deletes a file when called. More...

#include <typehelper.hh>

Inheritance diagram for DeleteTempFile:

ProcessEndCallback List of all members.

Public Member Functions


Detailed Description

A ProcessEndCallback that deletes a file when called.

Definition at line 56 of file typehelper.hh.


Constructor & Destructor Documentation

DeleteTempFile::DeleteTempFile const string &  f  ) 
 

Deletes a file when called back.

Parameters:
f The name of the file to delete.

Definition at line 308 of file typehelper.cc.

DeleteTempFile::DeleteTempFile const string &  f,
set< int > *  pidset
 

Removes the PID for the helper associated with this callback from the given set of PIDs.

If that set is then empty, then the file is deleted and the PID set is freed from the heap. Use a new instance of DeleteTempFile for each process, and pass each of them a pointer to the PID set.

Parameters:
f File to delete when the PID set becomes empty.
pidset The PID set. If NULL, then behavior will be as described in DeleteTempFile(const string&).

Definition at line 311 of file typehelper.cc.

DeleteTempFile::~DeleteTempFile  )  [virtual]
 

Definition at line 314 of file typehelper.cc.


Member Function Documentation

void DeleteTempFile::notifyProcessTerminate int  pid  )  [virtual]
 

Override this method.

Implements ProcessEndCallback.

Definition at line 317 of file typehelper.cc.


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 03:55:53 2003 for Interreality Project - VOS by doxygen 1.3.2