libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libzypp
Welcome to libzypp
Code Pitfalls - Frequently made mistakes
Code Snippets
Environment Variables
Testing for provided features.
Notes on revisions
Extending ZYpp: Plugins and Hooks
Services
Solver - Vendor protection
Writing and tunning testcases
Libzypp and threads
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
zypp
base
media
misc
parser
pool
repo
sat
solver
target
thread
ui
url
ws
zypp_detail
APIConfig.h
Arch.cc
Arch.h
AutoDispose.h
Bit.h
ByteCount.cc
ByteCount.h
Callback.h
Capabilities.cc
Capabilities.h
Capability.cc
Capability.h
CapMatch.cc
CapMatch.h
Changelog.cc
Changelog.h
CheckSum.cc
CheckSum.h
CountryCode.cc
CountryCode.h
Date.cc
Date.h
Dep.cc
Dep.h
Digest.cc
Digest.h
DiskUsage.cc
DiskUsage.h
DiskUsageCounter.cc
DiskUsageCounter.h
DownloadMode.cc
DownloadMode.h
Edition.cc
Edition.h
ExternalProgram.cc
ExternalProgram.h
Fetcher.cc
Fetcher.h
FileChecker.cc
FileChecker.h
Filter.h
Glob.cc
Glob.h
HistoryLog.cc
HistoryLog.h
HistoryLogData.cc
HistoryLogData.h
IdString.cc
IdString.h
IdStringType.h
InstanceId.cc
InstanceId.h
KeyContext.h
KeyRing.cc
KeyRing.h
KVMap.h
LanguageCode.cc
LanguageCode.h
Locale.cc
Locale.h
Locks.cc
Locks.h
ManagedFile.h
MediaProducts.cc
MediaProducts.h
MediaSetAccess.cc
MediaSetAccess.h
Misc.h
OnMediaLocation.cc
OnMediaLocation.h
Package.cc
Package.h
PackageKeyword.h
Patch.cc
Patch.h
PathInfo.cc
PathInfo.h
Pathname.cc
Pathname.h
Pattern.cc
Pattern.h
PluginFrame.cc
PluginFrame.h
PluginFrameException.cc
PluginFrameException.h
PluginScript.cc
PluginScript.h
PluginScriptException.cc
PluginScriptException.h
PoolItem.cc
PoolItem.h
PoolItemBest.cc
PoolItemBest.h
PoolQuery.cc
PoolQuery.h
PoolQueryResult.cc
PoolQueryResult.h
PoolQueryUtil.tcc
ProblemSolution.cc
ProblemSolution.h
ProblemTypes.h
Product.cc
Product.h
ProgressData.cc
ProgressData.h
ProvideFilePolicy.cc
ProvideFilePolicy.h
PublicKey.cc
PublicKey.h
Range.cc
Range.h
Rel.cc
Rel.h
RelCompare.h
RepoInfo.cc
RepoInfo.h
RepoManager.cc
RepoManager.h
Repository.cc
Repository.h
RepoStatus.cc
RepoStatus.h
ResFilters.h
ResKind.cc
ResKind.h
ResObject.cc
ResObject.h
ResObjects.h
Resolvable.cc
Resolvable.h
Resolver.cc
Resolver.h
ResolverProblem.cc
ResolverProblem.h
ResPool.cc
ResPool.h
ResPoolProxy.cc
ResPoolProxy.h
ResStatus.cc
ResStatus.h
ResTraits.h
ServiceInfo.cc
ServiceInfo.h
Signature.cc
Signature.h
SrcPackage.cc
SrcPackage.h
SysContent.cc
SysContent.h
Target.cc
Target.h
TmpPath.cc
TmpPath.h
TriBool.h
Url.cc
Url.h
Vendor.h
VendorAttr.cc
VendorAttr.h
VendorSupportOptions.cc
VendorSupportOptions.h
ZConfig.cc
ZConfig.h
ZYpp.cc
ZYpp.h
ZYppCallbacks.h
ZYppCommit.h
ZYppCommitPolicy.cc
ZYppCommitPolicy.h
ZYppCommitResult.cc
ZYppCommitResult.h
ZYppFactory.cc
ZYppFactory.h
File Members
TmpPath.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_TMPPATH_H
13
#define ZYPP_TMPPATH_H
14
15
#include <iosfwd>
16
17
#include "
zypp/Pathname.h
"
18
#include "
zypp/base/PtrTypes.h
"
19
20
namespace
zypp {
21
namespace
filesystem {
22
24
//
25
// CLASS NAME : TmpPath
39
class
TmpPath
40
{
41
public
:
45
TmpPath
();
46
50
explicit
51
TmpPath
(
const
Pathname
& tmpPath_r );
52
56
virtual
57
~TmpPath
();
58
63
operator
const
void
* ()
const
;
64
68
Pathname
69
path
()
const
;
70
74
operator
Pathname
()
const
75
{
return
path
(); }
76
80
bool
autoCleanup
()
const
;
81
85
void
autoCleanup
(
bool
yesno_r );
86
87
public
:
92
static
const
Pathname
&
93
defaultLocation
();
94
95
protected
:
96
class
Impl
;
97
RW_pointer<Impl>
_impl
;
98
99
};
101
105
inline
std::ostream &
106
operator<<
( std::ostream & str,
const
TmpPath
& obj )
107
{
return
str << static_cast<Pathname>(obj); }
108
110
112
//
113
// CLASS NAME : TmpFile
126
class
TmpFile
:
public
TmpPath
127
{
128
public
:
132
explicit
133
TmpFile
(
const
Pathname
& inParentDir_r =
defaultLocation
(),
134
const
std::string & prefix_r =
defaultPrefix
() );
135
143
static
TmpFile
makeSibling
(
const
Pathname
& sibling_r );
144
145
public
:
149
static
const
std::string &
150
defaultPrefix
();
151
152
};
154
156
//
157
// CLASS NAME : TmpDir
170
class
TmpDir
:
public
TmpPath
171
{
172
public
:
176
explicit
177
TmpDir
(
const
Pathname
& inParentDir_r =
defaultLocation
(),
178
const
std::string & prefix_r =
defaultPrefix
() );
179
187
static
TmpDir
makeSibling
(
const
Pathname
& sibling_r );
188
189
public
:
193
static
const
std::string &
194
defaultPrefix
();
195
};
197
198
}
// namespace filesystem
199
}
// namespace zypp
200
201
#endif // ZYPP_TMPPATH_H
zypp
TmpPath.h
Generated by
1.8.1