zypp::ResObject Class Reference

Interface base for resolvable objects (common data). More...

#include <ResObject.h>

Inheritance diagram for zypp::ResObject:

zypp::Resolvable zypp::base::ReferenceCounted NonCopyable zypp::Atom zypp::Language zypp::Message zypp::Package zypp::Patch zypp::Pattern zypp::Product zypp::Script zypp::Selection zypp::SrcPackage zypp::SystemResObject List of all members.

Public Types

typedef detail::ResObjectImplIf Impl
typedef ResObject Self
typedef ResTraits< SelfTraitsType
typedef TraitsType::PtrType Ptr
typedef TraitsType::constPtrType constPtr

Public Member Functions

Text summary () const
Text description () const
Text insnotify () const
Text delnotify () const
Text licenseToConfirm () const
Vendor vendor () const
ByteCount size () const
ByteCount archivesize () const
Source_Ref source () const
 Backlink to the source providing this.
unsigned sourceMediaNr () const
 Number of the source media that provides the data required for installation.
ZYPP_DEPRECATED unsigned mediaId () const
 Use sourceMediaNr.
bool installOnly () const
Date buildtime () const
Date installtime () const
 Time of installation, or 0.
ZmdId zmdid () const

Protected Member Functions

 ResObject (const Kind &kind_r, const NVRAD &nvrad_r)
 Ctor.
virtual ~ResObject ()
 Dtor.
virtual std::ostream & dumpOn (std::ostream &str) const
 Helper for stream output.

Private Member Functions

virtual Implpimpl ()=0
 Access implementation.
virtual const Implpimpl () const =0
 Access implementation.

Friends

class detail::ImplConnect

Related Functions

(Note that these are not member functions.)

template<class _Res>
ResTraits< _Res >::PtrType asKind (const ResObject::Ptr &p)
 Convert Resolvable::Ptr into Ptr of a certain Kind.

Detailed Description

Interface base for resolvable objects (common data).

Definition at line 38 of file ResObject.h.


Member Typedef Documentation

typedef detail::ResObjectImplIf zypp::ResObject::Impl
 

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 41 of file ResObject.h.

typedef ResObject zypp::ResObject::Self
 

Reimplemented from zypp::Resolvable.

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 42 of file ResObject.h.

typedef ResTraits<Self> zypp::ResObject::TraitsType
 

Reimplemented from zypp::Resolvable.

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 43 of file ResObject.h.

typedef TraitsType::PtrType zypp::ResObject::Ptr
 

Reimplemented from zypp::Resolvable.

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 44 of file ResObject.h.

typedef TraitsType::constPtrType zypp::ResObject::constPtr
 

Reimplemented from zypp::Resolvable.

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 45 of file ResObject.h.


Constructor & Destructor Documentation

zypp::ResObject::ResObject const Kind kind_r,
const NVRAD nvrad_r
[protected]
 

Ctor.

Definition at line 27 of file ResObject.cc.

zypp::ResObject::~ResObject  )  [protected, virtual]
 

Dtor.

Definition at line 37 of file ResObject.cc.


Member Function Documentation

Text zypp::ResObject::summary  )  const
 

Definition at line 57 of file ResObject.cc.

References pimpl(), zypp::detail::ResObjectImplIf::summary(), and zypp::TranslatedText::text().

Referenced by zypp::Product::longName().

Text zypp::ResObject::description  )  const
 

Definition at line 60 of file ResObject.cc.

References zypp::detail::ResObjectImplIf::description(), pimpl(), and zypp::TranslatedText::text().

Text zypp::ResObject::insnotify  )  const
 

Definition at line 63 of file ResObject.cc.

References zypp::detail::ResObjectImplIf::insnotify(), pimpl(), and zypp::TranslatedText::text().

Text zypp::ResObject::delnotify  )  const
 

Definition at line 66 of file ResObject.cc.

References zypp::detail::ResObjectImplIf::delnotify(), pimpl(), and zypp::TranslatedText::text().

License zypp::ResObject::licenseToConfirm  )  const
 

Definition at line 69 of file ResObject.cc.

References zypp::detail::ResObjectImplIf::licenseToConfirm(), pimpl(), and zypp::TranslatedText::text().

Vendor zypp::ResObject::vendor  )  const
 

Reimplemented in zypp::Product.

Definition at line 72 of file ResObject.cc.

References pimpl(), and zypp::detail::ResObjectImplIf::vendor().

ByteCount zypp::ResObject::size  )  const
 

Definition at line 75 of file ResObject.cc.

References pimpl(), and zypp::detail::ResObjectImplIf::size().

ByteCount zypp::ResObject::archivesize  )  const
 

Reimplemented in zypp::SrcPackage.

Definition at line 78 of file ResObject.cc.

References zypp::detail::ResObjectImplIf::archivesize(), and pimpl().

Source_Ref zypp::ResObject::source  )  const
 

Backlink to the source providing this.

Definition at line 81 of file ResObject.cc.

References pimpl(), and zypp::detail::ResObjectImplIf::source().

Referenced by dumpOn().

unsigned zypp::ResObject::sourceMediaNr  )  const
 

Number of the source media that provides the data required for installation.

Zero, if no media access is required.

Definition at line 84 of file ResObject.cc.

References pimpl(), and zypp::detail::ResObjectImplIf::sourceMediaNr().

Referenced by dumpOn(), and mediaId().

ZYPP_DEPRECATED unsigned zypp::ResObject::mediaId  )  const [inline]
 

Use sourceMediaNr.

Definition at line 82 of file ResObject.h.

References sourceMediaNr().

bool zypp::ResObject::installOnly  )  const
 

Definition at line 87 of file ResObject.cc.

References zypp::detail::ResObjectImplIf::installOnly(), and pimpl().

Date zypp::ResObject::buildtime  )  const
 

Definition at line 90 of file ResObject.cc.

References zypp::detail::ResObjectImplIf::buildtime(), and pimpl().

Date zypp::ResObject::installtime  )  const
 

Time of installation, or 0.

Definition at line 93 of file ResObject.cc.

References zypp::detail::ResObjectImplIf::installtime(), and pimpl().

ZmdId zypp::ResObject::zmdid  )  const
 

Definition at line 96 of file ResObject.cc.

References pimpl(), and zypp::detail::ResObjectImplIf::zmdid().

std::ostream & zypp::ResObject::dumpOn std::ostream &  str  )  const [protected, virtual]
 

Helper for stream output.

Reimplemented from zypp::Resolvable.

Definition at line 45 of file ResObject.cc.

References zypp::Resolvable::dumpOn(), zypp::Source_Ref::numericId(), source(), and sourceMediaNr().

virtual Impl& zypp::ResObject::pimpl  )  [private, pure virtual]
 

Access implementation.

Implemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Referenced by archivesize(), buildtime(), delnotify(), description(), insnotify(), installOnly(), installtime(), licenseToConfirm(), size(), source(), sourceMediaNr(), summary(), vendor(), and zmdid().

virtual const Impl& zypp::ResObject::pimpl  )  const [private, pure virtual]
 

Access implementation.

Implemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.


Friends And Related Function Documentation

friend class detail::ImplConnect [friend]
 

Definition at line 108 of file ResObject.h.

template<class _Res>
ResTraits< _Res >::PtrType asKind const ResObject::Ptr p  )  [related]
 

Convert Resolvable::Ptr into Ptr of a certain Kind.

Returns:
NULL iff p is NULL or points to a Resolvable not of the specified Kind.
 asKind<Package>(resPtr);

Definition at line 125 of file ResObject.h.


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:31 2006 for zypp by  doxygen 1.4.6