12#ifndef ZYPP_RESOBJECT_H
13#define ZYPP_RESOBJECT_H
79 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
119 {
return( isKind<TRes>( solvable_r ) ?
new TRes( solvable_r ) : 0 ); }
128 {
return make<TRes>( solvable_r ); }
140 {
return dynamic_pointer_cast<TRes>(p); }
144 {
return dynamic_pointer_cast<const TRes>(p); }
148 {
return dynamic_cast<const TRes *
>( this ); }
152 {
return dynamic_cast<TRes *
>( this ); }
Provides API related macros.
std::string asString() const
Conversion to std::string
Base for resolvable objects.
virtual std::ostream & dumpOn(std::ostream &str) const
Helper for stream output.
friend ResObject::Ptr makeResObject(const sat::Solvable &solvable_r)
Create ResObject from sat::Solvable.
Vendor vendor() const
Vendor.
virtual ~ResObject()
Dtor.
TraitsType::constPtrType constPtr
ResTraits< TRes >::PtrType asKind(const ResObject::Ptr &p)
Convert ResObject::Ptr into Ptr of a certain Kind.
ResTraits< Self > TraitsType
ResTraits< TRes >::constPtrType asKind() const
Convert this into a Ptr of a certain Kind.
Base for resolvable objects.
A Solvable object within the sat Pool.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
ResObject::Ptr make< ResObject >(const sat::Solvable &solvable_r)
ResTraits< TRes >::PtrType make(const sat::Solvable &solvable_r)
Directly create a certain kind of ResObject from sat::Solvable.
ResObject::Ptr makeResObject(const sat::Solvable &solvable_r)
Create ResObject from sat::Solvable.
ResTraits< TRes >::PtrType asKind(const sat::Solvable &solvable_r)
Directly create a certain kind of ResObject from sat::Solvable.
intrusive_ptr< const TRes > constPtrType
intrusive_ptr< TRes > PtrType
Solvable satSolvable() const
Return the corresponding sat::Solvable.