TmpPath Class Reference
Automaticaly deletes files or directories when no longer needed.
More...
#include <TmpPath.h>
Inheritance diagram for TmpPath:
List of all members.
Detailed Description
Automaticaly deletes files or directories when no longer needed.
TmpPath is constructed from a Pathname. Multiple TmpPath instances created by copy and assign, share the same reference counted internal repesentation.
When the last reference drops any file or directory located at the path passed to the ctor is deleted (recursivly in case of directories).
Principally serves as base class, but standalone usable.
Constructor & Destructor Documentation
TmpPath::TmpPath |
( |
const Pathname & |
tmpPath_r |
) |
[explicit] |
|
virtual TmpPath::~TmpPath |
( |
|
) |
[virtual] |
|
Member Function Documentation
static const Pathname& TmpPath::defaultLocation |
( |
|
) |
[static] |
|
|
- Returns:
- The default directory where temporary files should be are created (/var/tmp).
|
TmpPath::operator const void *const |
( |
|
) |
const |
|
|
Test whether the Pathname is valid (i.e. not empty. NOT whether it realy denotes an existing file or directory). |
TmpPath::operator Pathname |
( |
|
) |
const [inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
Generated on Fri Feb 24 00:30:02 2006 for liby2util by
1.4.4