interreality.org [VOS]
[Home] [About]
[Screenshots]
[Download]
[News]
[Community]
[Documentation] [Manual]
[Bugs & Requests] [Wiki]

DeleteTempFile Class Reference
[libtypehelper]

#include <typehelper.hh>

Inheritance diagram for DeleteTempFile:

ProcessEndCallback List of all members.

Detailed Description

A ProcessEndCallback that deletes a file when called.

Definition at line 53 of file typehelper.hh.

Public Member Functions


Constructor & Destructor Documentation

DeleteTempFile::DeleteTempFile ( const std::string &  f  ) 

Deletes a file when called back.

Parameters:
f The name of the file to delete.

DeleteTempFile::DeleteTempFile ( const std::string &  f,
std::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 std::string&).

virtual DeleteTempFile::~DeleteTempFile (  )  [virtual]


Member Function Documentation

virtual void DeleteTempFile::notifyProcessTerminate ( int  pid  )  [virtual]

Override this method.

Implements ProcessEndCallback.


The documentation for this class was generated from the following file: