#include <TmpPath.h>
Classes | |
class | Impl |
Clean or delete a directory on destruction. More... | |
Public Member Functions | |
TmpPath () | |
Default Ctor. | |
TmpPath (const Pathname &tmpPath_r) | |
Ctor. | |
virtual | ~TmpPath () |
Dtor. | |
operator const void * () 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 |
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.
zypp::filesystem::TmpPath::TmpPath | ( | ) |
zypp::filesystem::TmpPath::TmpPath | ( | const Pathname & | tmpPath_r | ) | [explicit] |
zypp::filesystem::TmpPath::~TmpPath | ( | ) | [virtual] |
zypp::filesystem::TmpPath::operator const void * | ( | ) | const |
Test whether the Pathname is valid (i.e.
not empty. NOT whether it really denotes an existing file or directory).
Definition at line 132 of file TmpPath.cc.
References _impl, and zypp::RW_pointer< _D, _Traits >::get().
Pathname zypp::filesystem::TmpPath::path | ( | ) | const |
Definition at line 143 of file TmpPath.cc.
References _impl, and zypp::RW_pointer< _D, _Traits >::get().
Referenced by zypp::media::MediaCIFS::attachTo(), zypp::target::TargetImpl::buildCache(), zypp::filesystem::exchange(), zypp::KeyRing::Impl::exportKey(), zypp::target::rpm::RpmDb::exportTrustedKeysInZyppKeyRing(), zypp::media::fillAriaCmdLine(), zypp::KeyRing::Impl::generalKeyRing(), zypp::PublicKey::Impl::Impl(), operator Pathname(), zypp::PublicKey::Impl::path(), zypp::target::rpm::RpmDb::pubkeys(), zypp::PublicKey::Impl::readFromFile(), zypp::KeyRing::Impl::readSignatureKeyId(), zypp::RepoManager::refreshMetadata(), zypp::target::SoftLocksFile::store(), zypp::target::RequestedLocalesFile::store(), zypp::target::HardLocksFile::store(), zypp::zypp_detail::ZYppImpl::tmpPath(), and zypp::KeyRing::Impl::trustedKeyRing().
zypp::filesystem::TmpPath::operator Pathname | ( | ) | const [inline] |
const Pathname & zypp::filesystem::TmpPath::defaultLocation | ( | ) | [static] |
Definition at line 154 of file TmpPath.cc.
Referenced by zypp::media::MediaHandler::createAttachPoint(), and zypp::base::InterProcessMutex::Options::Options().
RW_pointer<Impl> zypp::filesystem::TmpPath::_impl [protected] |
Definition at line 85 of file TmpPath.h.
Referenced by operator const void *(), path(), zypp::filesystem::TmpDir::TmpDir(), and zypp::filesystem::TmpFile::TmpFile().