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
Target.cc
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#include <cassert>
13
14
#include <iostream>
15
16
#include "
zypp/Target.h
"
17
#include "
zypp/target/TargetImpl.h
"
18
19
using namespace
std;
20
22
namespace
zypp
23
{
24
25
IMPL_PTR_TYPE
(Target);
26
28
//
29
// METHOD NAME : Target::Target
30
// METHOD TYPE : Ctor
31
//
32
Target::Target(
const
Pathname & root,
bool
doRebuild_r )
33
: _pimpl( new
Impl
(root,doRebuild_r) )
34
{
35
}
36
38
//
39
// METHOD NAME : Target::Target
40
// METHOD TYPE : Ctor
41
//
42
Target::Target
(
const
Impl_Ptr
& impl_r )
43
: _pimpl( impl_r )
44
{
45
assert( impl_r );
46
}
47
48
Target_Ptr
Target::_nullimpl
;
49
51
Target_Ptr
Target::nullimpl
()
52
{
53
if
(!
_nullimpl
)
54
{
55
_nullimpl
=
new
Target
(
target::TargetImpl::nullimpl
());
56
}
57
return
_nullimpl
;
58
}
59
60
std::ostream &
operator<<
( std::ostream & str,
const
Target::DistributionLabel
& obj )
61
{
62
str <<
"summary="
<< obj.
summary
<< endl;
63
str <<
"shortName="
<< obj.
shortName
<< endl;
64
return
str;
65
}
66
68
//
69
// Forward to TargetImpl:
70
//
72
73
void
Target::buildCache
()
74
{
_pimpl
->
buildCache
(); }
75
76
void
Target::cleanCache
()
77
{
_pimpl
->
clearCache
(); }
78
79
void
Target::load
()
80
{
_pimpl
->
load
(); }
81
82
void
Target::unload
()
83
{
_pimpl
->
unload
(); }
84
85
target::rpm::RpmDb
&
Target::rpmDb
()
86
{
return
_pimpl
->
rpm
(); }
87
88
Pathname
Target::root
()
const
89
{
return
_pimpl
->
root
(); }
90
91
bool
Target::providesFile
(
const
std::string & name_str,
const
std::string & path_str)
const
92
{
return
_pimpl
->
providesFile
(name_str, path_str); }
93
94
std::string
Target::whoOwnsFile
(
const
std::string & path_str)
const
95
{
return
_pimpl
->
whoOwnsFile
(path_str); }
96
97
std::ostream &
Target::dumpOn
( std::ostream & str )
const
98
{
return
_pimpl
->
dumpOn
( str ); }
99
100
Date
Target::timestamp
()
const
101
{
return
_pimpl
->
timestamp
(); }
102
103
Product::constPtr
Target::baseProduct
()
const
104
{
return
_pimpl
->
baseProduct
(); }
105
106
LocaleSet
Target::requestedLocales
()
const
107
{
return
_pimpl
->
requestedLocales
(); }
108
LocaleSet
Target::requestedLocales
(
const
Pathname & root_r )
109
{
return
target::TargetImpl::requestedLocales
( root_r ); }
110
111
std::string
Target::targetDistribution
()
const
112
{
return
_pimpl
->
targetDistribution
(); }
113
std::string
Target::targetDistribution
(
const
Pathname & root_r )
114
{
return
target::TargetImpl::targetDistribution
( root_r ); }
115
116
std::string
Target::targetDistributionRelease
()
const
117
{
return
_pimpl
->
targetDistributionRelease
(); }
118
std::string
Target::targetDistributionRelease
(
const
Pathname & root_r )
119
{
return
target::TargetImpl::targetDistributionRelease
( root_r ); }
120
121
Target::DistributionLabel
Target::distributionLabel
()
const
122
{
return
_pimpl
->
distributionLabel
(); }
123
Target::DistributionLabel
Target::distributionLabel
(
const
Pathname & root_r )
124
{
return
target::TargetImpl::distributionLabel
( root_r ); }
125
126
std::string
Target::distributionVersion
()
const
127
{
return
_pimpl
->
distributionVersion
(); }
128
std::string
Target::distributionVersion
(
const
Pathname & root_r )
129
{
return
target::TargetImpl::distributionVersion
( root_r ); }
130
131
std::string
Target::distributionFlavor
()
const
132
{
return
_pimpl
->
distributionFlavor
(); }
133
std::string
Target::distributionFlavor
(
const
Pathname & root_r )
134
{
return
target::TargetImpl::distributionFlavor
( root_r ); }
135
136
std::string
Target::anonymousUniqueId
()
const
137
{
return
_pimpl
->
anonymousUniqueId
(); }
138
std::string
Target::anonymousUniqueId
(
const
Pathname & root_r )
139
{
return
target::TargetImpl::anonymousUniqueId
( root_r ); }
140
142
}
// namespace zypp
zypp
Target.cc
Generated by
1.8.1