12 #ifndef ZYPP_TMPPATH_H
13 #define ZYPP_TMPPATH_H
21 namespace filesystem {
63 explicit operator bool()
const;
105 inline std::ostream &
107 {
return str << static_cast<Pathname>(obj); }
149 static const std::string &
193 static const std::string &
201 #endif // ZYPP_TMPPATH_H
TmpFile(const Pathname &inParentDir_r=defaultLocation(), const std::string &prefix_r=defaultPrefix())
Ctor.
static TmpDir makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.
static const Pathname & defaultLocation()
TmpDir(const Pathname &inParentDir_r=defaultLocation(), const std::string &prefix_r=defaultPrefix())
Ctor.
Provide a new empty temporary file and delete it when no longer needed.
Clean or delete a directory on destruction.
Provide a new empty temporary directory and recursively delete it when no longer needed.
static const std::string & defaultPrefix()
Wrapper for const correct access via Smart pointer types.
Automaticaly deletes files or directories when no longer needed.
static TmpFile makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.
bool autoCleanup() const
Whether path is valid and deleted when the last reference drops.
std::ostream & operator<<(std::ostream &str, const Glob &obj)
static const std::string & defaultPrefix()