SolverQueueItemUpdate.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef ZYPP_SOLVER_DETAIL_QUEUEITEMUPDATE_H
00022 #define ZYPP_SOLVER_DETAIL_QUEUEITEMUPDATE_H
00023
00024 #include <iosfwd>
00025 #include <string>
00026
00027 #include "zypp/solver/detail/SolverQueueItem.h"
00028 #include "zypp/PoolItem.h"
00029
00031 namespace zypp
00032 {
00033
00034 namespace solver
00035 {
00036
00037 namespace detail
00038 {
00039
00041
00042
00043
00044 class SolverQueueItemUpdate : public SolverQueueItem {
00045
00046 private:
00047
00048 PoolItem _item;
00049 bool _soft;
00050
00051 public:
00052
00053 SolverQueueItemUpdate (const ResPool & pool, const PoolItem & item, bool soft = false);
00054 virtual ~SolverQueueItemUpdate();
00055
00056
00057
00058 virtual std::ostream & dumpOn( std::ostream & str ) const;
00059
00060 friend std::ostream& operator<<(std::ostream & str, const SolverQueueItemUpdate & obj)
00061 { return obj.dumpOn (str); }
00062
00063
00064
00065 bool isSoft (void) const { return _soft; }
00066
00067
00068
00069 virtual bool addRule (_Queue & q);
00070 virtual SolverQueueItem_Ptr copy (void) const;
00071 virtual int cmp (SolverQueueItem_constPtr item) const;
00072 };
00073
00075 };
00078 };
00081 };
00083
00084 #endif // ZYPP_SOLVER_DETAIL_QUEUEITEMUPDATE_H