DeleteTempFile Class Reference
[libtypehelper]
#include <typehelper.hh>
Inheritance diagram for DeleteTempFile:

Detailed Description
A ProcessEndCallback that deletes a file when called.
Definition at line 53 of file typehelper.hh.
Public Member Functions
- DeleteTempFile (const std::string &f)
- DeleteTempFile (const std::string &f, std::set< int > *pidset)
- virtual ~DeleteTempFile ()
- virtual void notifyProcessTerminate (int pid)
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] |
The documentation for this class was generated from the following file:
- /home/tetron/hack/vos/libs/vos/vutil/typehelper.hh