SolverQueueItemInstall.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_QUEUEITEMINSTALL_H
00022 #define ZYPP_SOLVER_DETAIL_QUEUEITEMINSTALL_H
00023
00024 #include <iosfwd>
00025 #include <string>
00026
00027 #include "zypp/solver/detail/SolverQueueItem.h"
00028
00030 namespace zypp
00031 {
00032
00033 namespace solver
00034 {
00035
00036 namespace detail
00037 {
00038
00039
00041
00042
00043
00044 class SolverQueueItemInstall : public SolverQueueItem {
00045
00046 private:
00047
00048 std::string _name;
00049 bool _soft;
00050
00051 public:
00052
00053 SolverQueueItemInstall (const ResPool & pool, std::string name, bool soft = false);
00054 virtual ~SolverQueueItemInstall();
00055
00056
00057
00058 virtual std::ostream & dumpOn( std::ostream & str ) const;
00059
00060 friend std::ostream& operator<<(std::ostream & str, const SolverQueueItemInstall & 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_QUEUEITEMINSTALL_H