12 #ifndef ZYPP_CORE_FS_TMPPATH_H 13 #define ZYPP_CORE_FS_TMPPATH_H 22 namespace filesystem {
64 explicit operator bool()
const;
81 bool autoCleanup()
const;
86 void autoCleanup(
bool yesno_r );
106 inline std::ostream &
108 {
return str << static_cast<Pathname>(obj); }
135 const std::string & prefix_r = defaultPrefix() );
148 static TmpFile makeSibling(
const Pathname & sibling_r,
unsigned mode );
160 static ManagedFile asManagedFile (
const Pathname & inParentDir_r,
const std::string & prefix_r = defaultPrefix() );
166 static const std::string &
195 const std::string & prefix_r = defaultPrefix() );
208 static TmpDir makeSibling(
const Pathname & sibling_r,
unsigned mode );
214 static const std::string &
226 #endif // ZYPP_CORE_FS_TMPPATH_H
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, FileType obj)
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.
Wrapper for const correct access via Smart pointer types.
Automaticaly deletes files or directories when no longer needed.
Pathname myTmpDir()
Global access to the zypp.TMPDIR (created on demand, deleted when libzypp is unloaded) ...