1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Target.cc
16 #include "zypp/Target.h"
17 #include "zypp/target/TargetImpl.h"
21 ///////////////////////////////////////////////////////////////////
23 { /////////////////////////////////////////////////////////////////
25 IMPL_PTR_TYPE(Target);
27 ///////////////////////////////////////////////////////////////////
29 // METHOD NAME : Target::Target
32 Target::Target( const Pathname & root, bool doRebuild_r )
33 : _pimpl( new Impl(root,doRebuild_r) )
37 ///////////////////////////////////////////////////////////////////
39 // METHOD NAME : Target::Target
42 Target::Target( const Impl_Ptr & impl_r )
48 std::ostream & operator<<( std::ostream & str, const Target::DistributionLabel & obj )
50 str << "summary=" << obj.summary << endl;
51 str << "shortName=" << obj.shortName << endl;
55 ///////////////////////////////////////////////////////////////////
57 // Forward to TargetImpl:
59 ///////////////////////////////////////////////////////////////////
61 void Target::buildCache()
62 { _pimpl->buildCache(); }
64 void Target::cleanCache()
65 { _pimpl->clearCache(); }
76 target::rpm::RpmDb & Target::rpmDb()
77 { return _pimpl->rpm(); }
79 Pathname Target::root() const
80 { return _pimpl->root(); }
82 bool Target::providesFile (const std::string & name_str, const std::string & path_str) const
83 { return _pimpl->providesFile (name_str, path_str); }
85 std::string Target::whoOwnsFile (const std::string & path_str) const
86 { return _pimpl->whoOwnsFile (path_str); }
88 std::ostream & Target::dumpOn( std::ostream & str ) const
89 { return _pimpl->dumpOn( str ); }
91 Date Target::timestamp() const
92 { return _pimpl->timestamp(); }
94 Product::constPtr Target::baseProduct() const
95 { return _pimpl->baseProduct(); }
97 LocaleSet Target::requestedLocales() const
98 { return _pimpl->requestedLocales(); }
99 LocaleSet Target::requestedLocales( const Pathname & root_r )
100 { return target::TargetImpl::requestedLocales( root_r ); }
102 std::string Target::targetDistribution() const
103 { return _pimpl->targetDistribution(); }
104 std::string Target::targetDistribution( const Pathname & root_r )
105 { return target::TargetImpl::targetDistribution( root_r ); }
107 std::string Target::targetDistributionRelease() const
108 { return _pimpl->targetDistributionRelease(); }
109 std::string Target::targetDistributionRelease( const Pathname & root_r )
110 { return target::TargetImpl::targetDistributionRelease( root_r ); }
112 std::string Target::targetDistributionFlavor() const
113 { return _pimpl->targetDistributionFlavor(); }
114 std::string Target::targetDistributionFlavor( const Pathname & root_r )
115 { return target::TargetImpl::targetDistributionFlavor( root_r ); }
117 Target::DistributionLabel Target::distributionLabel() const
118 { return _pimpl->distributionLabel(); }
119 Target::DistributionLabel Target::distributionLabel( const Pathname & root_r )
120 { return target::TargetImpl::distributionLabel( root_r ); }
122 std::string Target::distributionVersion() const
123 { return _pimpl->distributionVersion(); }
124 std::string Target::distributionVersion( const Pathname & root_r )
125 { return target::TargetImpl::distributionVersion( root_r ); }
127 std::string Target::distributionFlavor() const
128 { return _pimpl->distributionFlavor(); }
129 std::string Target::distributionFlavor( const Pathname & root_r )
130 { return target::TargetImpl::distributionFlavor( root_r ); }
132 std::string Target::anonymousUniqueId() const
133 { return _pimpl->anonymousUniqueId(); }
134 std::string Target::anonymousUniqueId( const Pathname & root_r )
135 { return target::TargetImpl::anonymousUniqueId( root_r ); }
137 /////////////////////////////////////////////////////////////////
139 ///////////////////////////////////////////////////////////////////