Go to the documentation of this file.
12 #ifndef ZYPP_TMPPATH_H
13 #define ZYPP_TMPPATH_H
64 explicit operator bool()
const;
106 inline std::ostream &
108 {
return str << static_cast<Pathname>(obj); }
156 static const std::string &
200 static const std::string &
212 #endif // ZYPP_TMPPATH_H
static ManagedFile asManagedFile()
Create a temporary file and convert it to a automatically cleaned up ManagedFile.
static const Pathname & defaultLocation()
Automaticaly deletes files or directories when no longer needed.
TmpFile(const Pathname &inParentDir_r=defaultLocation(), const std::string &prefix_r=defaultPrefix())
Ctor.
@ language
language support
static const std::string & defaultPrefix()
static const std::string & defaultPrefix()
Provide a new empty temporary file and delete it when no longer needed.
static TmpDir makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.
Provide a new empty temporary directory and recursively delete it 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)
TmpDir(const Pathname &inParentDir_r=defaultLocation(), const std::string &prefix_r=defaultPrefix())
Ctor.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
std::ostream & operator<<(std::ostream &str, const Glob &obj)
String related utilities and Regular expression matching.
bool autoCleanup() const
Whether path is valid and deleted when the last reference drops.
static TmpFile makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.