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); }
static const std::string & defaultPrefix()
TmpDir(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.
TmpFile(const Pathname &inParentDir_r=defaultLocation(), const std::string &prefix_r=defaultPrefix())
Ctor.
static TmpFile makeSibling(const Pathname &sibling_r)
Provide a new empty temporary directory as sibling.
static ManagedFile asManagedFile()
Create a temporary file and convert it to a automatically cleaned up ManagedFile.
static const std::string & defaultPrefix()
static const Pathname & defaultLocation()
std::ostream & operator<<(std::ostream &str, const TmpPath &obj)
Stream output as pathname.
String related utilities and Regular expression matching.
Types and functions for filesystem operations.
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).
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Wrapper for const correct access via Smart pointer types.