12 #ifndef ZYPP_RESOBJECT_H
13 #define ZYPP_RESOBJECT_H
160 std::string
cpeId()
const;
210 virtual std::ostream &
dumpOn( std::ostream & str )
const;
247 {
return( isKind<_Res>( solvable_r ) ?
new _Res( solvable_r ) : 0 ); }
256 {
return make<_Res>( solvable_r ); }
268 {
return dynamic_pointer_cast<_Res>(p); }
272 {
return dynamic_pointer_cast<
const _Res>(p); }
276 {
return dynamic_cast<const _Res *
>( this ); }
280 {
return dynamic_cast<_Res *
>( this ); }
285 #endif // ZYPP_RESOBJECT_H
Repository repository() const
The Repository this Solvable belongs to.
RepoInfo info() const
Return any associated RepoInfo.
bool needToAcceptLicense() const
Acceptance of Product License needed?
std::string distribution() const
The distribution string.
A Solvable object within the sat Pool.
friend ResObject::Ptr makeResObject(const sat::Solvable &solvable_r)
Create ResObject from sat::Solvable.
ResTraits< Self > TraitsType
ResTraits< _Res >::PtrType make(const sat::Solvable &solvable_r)
Directly create a certain kind of ResObject from sat::Solvable.
Repository repository() const
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
Store and operate with byte count.
LocaleSet getSupportedLocales() const
bool supportsLocales() const
Whether this Solvable claims to support locales.
bool supportsLocale(const Locale &locale_r) const
What is known about a repository.
std::string cpeId() const
The Common Platform Enumeration name for this product.
Interface base for resolvable objects (identification and dependencies).
ResTraits< _Res >::PtrType asKind(const sat::Solvable &solvable_r)
Directly create a certain kind of ResObject from sat::Solvable.
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
License or agreement to accept.
TraitsType::constPtrType constPtr
virtual std::ostream & dumpOn(std::ostream &str) const
Helper for stream output.
std::string asString() const
Conversion to std::string
ByteCount installSize() const
Installed size.
std::string description(const Locale &lang_r=Locale()) const
Long text describing the resolvable.
Store and operate on date (time_t).
ResTraits< _Res >::constPtrType asKind() const
Convert this into a Ptr of a certain Kind.
bool supportsLocale(const LocaleSet &locales_r) const
bool supportsRequestedLocales() const
Whether this Solvable supports at least one requested locale.
Provides API related macros.
std::string summary(const Locale &lang_r=Locale()) const
Short text describing the resolvable.
RepoInfo repoInfo() const
RepoInfo associated with the repository providing this resolvable.
ByteCount downloadSize() const
Size of the rpm package.
LocaleSet getSupportedLocales() const
Interface base for resolvable objects (common data).
std::tr1::unordered_set< Locale > LocaleSet
bool supportsLocales() const
std::string insnotify(const Locale &lang_r=Locale()) const
Installation Notification.
Date buildtime() const
build time of the resolvable
virtual ~ResObject()
Dtor.
const DiskUsage & diskusage() const
Disk usage per directory A common attribute, although mostly packages require noticeable disk space...
unsigned mediaNr() const
Media number where the resolvable is located 0 if no media access is required.
std::string delnotify(const Locale &lang_r=Locale()) const
De-Installation Notification.
ResObject::Ptr makeResObject(const sat::Solvable &solvable_r)
Create ResObject from sat::Solvable.
intrusive_ptr< _Res > PtrType
Date installtime() const
Installation time 0 if the resolvable is not installed.
bool supportsRequestedLocales() const
ResObject(const sat::Solvable &solvable_r)
Ctor.
ResObject::Ptr make< ResObject >(const sat::Solvable &solvable_r)
Vendor vendor() const
Vendor.
ResTraits< _Res >::PtrType asKind(const ResObject::Ptr &p)
Convert ResObject::Ptr into Ptr of a certain Kind.
intrusive_ptr< const _Res > constPtrType