9 #ifndef ZYPP_SOLVER_DETAIL_SOLUTIONACTION_H
10 #define ZYPP_SOLVER_DETAIL_SOLUTIONACTION_H
46 virtual std::ostream &
dumpOn( std::ostream & str )
const;
48 {
return action.
dumpOn (str); }
104 virtual std::ostream &
dumpOn( std::ostream & str )
const;
106 {
return action.
dumpOn (str); }
155 virtual std::ostream &
dumpOn( std::ostream & str )
const;
157 {
return action.
dumpOn (str); }
181 #endif // ZYPP_SOLVER_DETAIL_SOLUTIONACTION_H
virtual bool execute(Resolver &resolver) const =0
Execute this action.
InjectSolutionAction(PoolItem item, const InjectSolutionKind &kind)
A problem solution action that injects an artificial "provides" to the pool to satisfy open requireme...
const Capability capability() const
TransactionSolutionAction(PoolItem item, TransactionKind action)
friend std::ostream & operator<<(std::ostream &str, const SolutionAction &action)
friend std::ostream & operator<<(std::ostream &str, const TransactionSolutionAction &action)
TransactionSolutionAction(SolverQueueItem_Ptr item, TransactionKind action)
Abstract base class for one action of a problem solution.
A mid layer class we should remove.
TransactionKind action() const
const TransactionKind _action
SolverQueueItem_Ptr _solverQueueItem
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize std::ostream & operator<<.
virtual bool execute(Resolver &resolver) const
Execute this action.
Base class for reference counted objects.
InjectSolutionKind
Type of ignoring; currently only WEAK.
std::list< SolutionAction_constPtr > CSolutionActionList
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize std::ostream & operator<<.
friend std::ostream & operator<<(std::ostream &str, const InjectSolutionAction &action)
TransactionKind
A problem solution action that performs a transaction (installs, removes, keep ...) one resolvable (package, patch, pattern, product).
const PoolItem item() const
const PoolItem item() const
const InjectSolutionKind _kind
virtual std::ostream & dumpOn(std::ostream &str) const
Overload to realize std::ostream & operator<<.
Reference to a PoolItem connecting ResObject and ResStatus.
virtual ~SolutionAction()
TransactionSolutionAction(TransactionKind action)
TransactionSolutionAction(Capability capability, TransactionKind action)
virtual bool execute(Resolver &resolver) const
Execute this action.
std::list< SolutionAction_Ptr > SolutionActionList