12 #ifndef ZYPP_CORE_FS_TMPPATH_H 13 #define ZYPP_CORE_FS_TMPPATH_H 59 explicit operator bool()
const;
75 bool autoCleanup()
const;
80 void autoCleanup(
bool yesno_r );
89 static const Pathname & defaultLocation();
101 {
return str << static_cast<Pathname>(obj); }
124 const std::string & prefix_r = defaultPrefix() );
137 static TmpFile makeSibling(
const Pathname & sibling_r,
unsigned mode );
149 static ManagedFile asManagedFile (
const Pathname & inParentDir_r,
const std::string & prefix_r = defaultPrefix() );
155 static const std::string & defaultPrefix();
178 explicit TmpDir(
const Pathname & inParentDir_r = defaultLocation(),
179 const std::string & prefix_r = defaultPrefix() );
192 static TmpDir makeSibling(
const Pathname & sibling_r,
unsigned mode );
198 static const std::string & defaultPrefix();
209 #endif // ZYPP_CORE_FS_TMPPATH_H
String related utilities and Regular expression matching.
Provide a new empty temporary file and delete it when no longer needed.
std::ostream & operator<<(std::ostream &str, const Glob &obj)
relates: Glob Stream output
Clean or delete a directory on destruction.
Provide a new empty temporary directory and recursively delete it when no longer needed.
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Automatically deletes files or directories when no longer needed.
Easy-to use interface to the ZYPP dependency resolver.
Pathname myTmpDir()
Global access to the zypp.TMPDIR (created on demand, deleted when libzypp is unloaded) ...