Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

PkgRevRel.h

Go to the documentation of this file.
00001 #ifndef _PkgRevRel_h
00002 #define _PkgRevRel_h
00003 
00004 #include <y2pm/PkgRelation.h>
00005 #include <y2pm/PMSolvable.h>
00006 
00007 class PkgRevRelation {
00008 
00009         const PkgRelation *_relation;
00010         const PMSolvablePtr _pkg;
00011 
00012   public:
00018         PkgRevRelation( const PkgRelation *r, const PMSolvablePtr p )
00019                 : _relation(r), _pkg(p) {}
00020         // default copy constructor and assigment are ok
00021 
00022         const PkgRelation relation() const {
00023                 return _relation ? *_relation : _pkg->self_provides();
00024         }
00025         const PMSolvablePtr pkg() const { return _pkg; }
00026 };
00027 
00028 #endif  /* _PkgRevRel_h */
00029 
00030 
00031 // Local Variables:
00032 // tab-width: 4
00033 // End:

Generated on Fri Nov 9 14:30:31 2007 for yast2-packagemanager by doxygen 1.3.6