zypp::filesystem::TmpPath::Impl Class Reference

Clean or delete a directory on destruction. More...

Inheritance diagram for zypp::filesystem::TmpPath::Impl:
[legend]

List of all members.

Public Types

enum  Flags { NoOp = 0, Autodelete = 1L << 0, KeepTopdir = 1L << 1, CtorDefault = Autodelete }

Public Member Functions

 Impl (const Pathname &path_r, Flags flags_r=CtorDefault)
 ~Impl ()
const Pathnamepath () const

Private Attributes

Pathname _path
Flags _flags


Detailed Description

Clean or delete a directory on destruction.

Definition at line 36 of file TmpPath.cc.


Member Enumeration Documentation

enum zypp::filesystem::TmpPath::Impl::Flags

Enumerator:
NoOp 
Autodelete 
KeepTopdir 
CtorDefault 

Definition at line 40 of file TmpPath.cc.


Constructor & Destructor Documentation

zypp::filesystem::TmpPath::Impl::Impl ( const Pathname path_r,
Flags  flags_r = CtorDefault 
) [inline]

Definition at line 51 of file TmpPath.cc.

zypp::filesystem::TmpPath::Impl::~Impl (  )  [inline]

Definition at line 55 of file TmpPath.cc.

References _flags, _path, Autodelete, zypp::filesystem::clean_dir(), DBG, zypp::filesystem::Pathname::empty(), INT, zypp::filesystem::PathInfo::isDir(), zypp::filesystem::PathInfo::isExist(), KeepTopdir, zypp::filesystem::PathInfo::LSTAT, zypp::filesystem::recursive_rmdir(), and zypp::filesystem::unlink().


Member Function Documentation

const Pathname& zypp::filesystem::TmpPath::Impl::path (  )  const [inline]

Definition at line 82 of file TmpPath.cc.

References _path.


Member Data Documentation

Pathname zypp::filesystem::TmpPath::Impl::_path [private]

Definition at line 86 of file TmpPath.cc.

Referenced by path(), and ~Impl().

Flags zypp::filesystem::TmpPath::Impl::_flags [private]

Definition at line 87 of file TmpPath.cc.

Referenced by ~Impl().


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 19:23:20 2007 for libzypp by  doxygen 1.5.3