#include <TmpPath.h>
Inheritance diagram for zypp::filesystem::TmpPath:
Public Member Functions | |
TmpPath () | |
Default Ctor. | |
TmpPath (const Pathname &tmpPath_r) | |
Ctor. | |
virtual | ~TmpPath () |
Dtor. | |
operator const void *const () const | |
Test whether the Pathname is valid (i.e. | |
Pathname | path () const |
operator Pathname () const | |
Type conversion to Pathname. | |
Static Public Member Functions | |
static const Pathname & | defaultLocation () |
Protected Attributes | |
RW_pointer< Impl > | _impl |
Classes | |
class | Impl |
Clean or delete a directory on destruction. More... |
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.
Definition at line 38 of file TmpPath.h.
|
Default Ctor. An empty Pathname. Definition at line 102 of file TmpPath.cc. |
|
Ctor. Takes a Pathname. Definition at line 112 of file TmpPath.cc. |
|
Dtor.
Definition at line 122 of file TmpPath.cc. |
|
Test whether the Pathname is valid (i.e. not empty. NOT whether it realy denotes an existing file or directory). Definition at line 132 of file TmpPath.cc. References _impl, and zypp::RW_pointer< _D, _Traits >::get(). |
|
|
Type conversion to Pathname.
Definition at line 73 of file TmpPath.h. References path(). |
|
Definition at line 154 of file TmpPath.cc. |
|
Definition at line 85 of file TmpPath.h. Referenced by operator const void *const(), and path(). |