25#define ZYPP_USE_RESOLVER_INTERNALS
27#include <zypp/base/Gettext.h>
30#include <zypp/base/Logger.h>
31#include <zypp/solver/detail/Resolver.h>
63 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
66 {
return new Impl( *
this ); }
71 : _pimpl( new
Impl() )
75 : _pimpl( new
Impl(
std::move(description) ) )
79 : _pimpl( new
Impl(
std::move(description),
std::move(details) ) )
87 {
return _pimpl->_description; }
90 {
return _pimpl->_details; }
93 {
return _pimpl->_actions; }
104 if (
_pimpl->_details.empty() )
106 if (
_pimpl->_description.empty() )
114 _pimpl->_description =
_(
"Following actions will be done:");
124 {
_pimpl->_actions.push_back( action ); }
130 os <<
"Solution:" << endl;
140 for (
const auto & ptr: obj )
Class representing one possible solution to a problem found during resolving.
void setDescription(std::string description)
Set description of the solution.
RWCOW_pointer< Impl > _pimpl
void addAction(SolutionAction_Ptr action)
Add an action to the actions list.
solver::detail::SolutionActionList SolutionActionList
const std::string & description() const
Return a one-line text description of this solution.
ProblemSolution()
Constructor.
virtual ~ProblemSolution()
Destructor.
const SolutionActionList & actions() const
Return the list of actions forming this solution.
void pushDescriptionDetail(std::string description, bool front=false)
Collect multiple action descriptions in details (NL separated)
void setDetails(std::string details)
Set detail description of the solution.
const std::string & details() const
Return a (possibly multi-line) detailed description of this solution or an empty string if there are ...
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
std::list< ProblemSolution_Ptr > ProblemSolutionList
ProblemSolution implementation.
Impl * clone() const
clone for RWCOW_pointer
Impl(std::string &&description, std::string &&details)
Impl(std::string &&description)
SolutionActionList _actions
#define IMPL_PTR_TYPE(NAME)