82 static Target_Ptr nullimpl();
89 bool providesFile (
const std::string & name_str,
const std::string & path_str)
const;
94 std::string whoOwnsFile (
const std::string & path_str)
const;
97 Pathname root()
const;
101 {
return Pathname::assertprefix( root(), path_r ); }
104 Date timestamp()
const;
131 static LocaleSet requestedLocales(
const Pathname & root_r );
145 std::string targetDistribution()
const;
147 static std::string targetDistribution(
const Pathname & root_r );
152 std::string targetDistributionRelease()
const;
154 static std::string targetDistributionRelease(
const Pathname & root_r );
160 std::string targetDistributionFlavor()
const;
162 static std::string targetDistributionFlavor(
const Pathname & root_r );
176 std::string distributionVersion()
const;
178 static std::string distributionVersion(
const Pathname & root_r );
188 std::string distributionFlavor()
const;
190 static std::string distributionFlavor(
const Pathname & root_r );
200 std::string anonymousUniqueId()
const;
202 static std::string anonymousUniqueId(
const Pathname & root_r );
210 Target(
const Pathname & root =
"/",
bool doRebuild_r =
false );
213 Target(
const Impl_Ptr & impl_r );
218 std::ostream &
dumpOn( std::ostream & str )
const;
233 {
return obj.
dumpOn( str ); }
247 #endif // ZYPP_TARGET_H std::ostream & operator<<(std::ostream &str, const librpmDb::DbDirInfo &obj)
Interface to the rpm program.
std::ostream & operator<<(std::ostream &str, const Target &obj)
static Target_Ptr _nullimpl
String related utilities and Regular expression matching.
DEFINE_PTR_TYPE(TargetImpl)
TraitsType::constPtrType constPtr
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Store and operate on date (time_t).
Base class for concrete Target implementations.
Provides API related macros.
RW_pointer< Impl, rw_pointer::Intrusive< Impl > > _pimpl
Pointer to implementation.
intrusive_ptr< Impl > Impl_Ptr
Pathname assertRootPrefix(const Pathname &path_r) const
Return the path prefixed by the target root, unless it already is prefixed.
std::tr1::unordered_set< Locale > LocaleSet
Base class for reference counted objects.
std::ostream & dumpOn(std::ostream &str, const RpmPostTransCollector &obj)
Wrapper for const correct access via Smart pointer types.
std::ostream & dumpOn(std::ostream &str) const
Stream output.
Easy-to use interface to the ZYPP dependency resolver.
std::list< PoolItem > PoolItemList