1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Resolvable.cc
14 #include "zypp/Resolvable.h"
15 #include "zypp/detail/ResolvableImpl.h"
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
23 ///////////////////////////////////////////////////////////////////
25 // METHOD NAME : Resolvable::Resolvable
28 Resolvable::Resolvable( const ResKind & kind_r,
29 const std::string & name_r,
30 const Edition & edition_r,
32 : _pimpl( new Impl( kind_r, name_r, edition_r, arch_r ) )
35 ///////////////////////////////////////////////////////////////////
37 // METHOD NAME : Resolvable::~Resolvable
40 Resolvable::~Resolvable()
43 ///////////////////////////////////////////////////////////////////
45 // METHOD NAME : Resolvable::dumpOn
46 // METHOD TYPE : std::ostream
48 std::ostream & Resolvable::dumpOn( std::ostream & str ) const
50 return str << '[' << kind() << ']'
51 << name() << '-' << edition() << '.' << arch();
54 ///////////////////////////////////////////////////////////////////
56 // Resolvable interface forwarded to implementation
58 ///////////////////////////////////////////////////////////////////
60 const ResKind & Resolvable::kind() const
61 { return _pimpl->kind(); }
63 const std::string & Resolvable::name() const
64 { return _pimpl->name(); }
66 const Edition & Resolvable::edition() const
67 { return _pimpl->edition(); }
69 const Arch & Resolvable::arch() const
70 { return _pimpl->arch(); }
72 const Dependencies & Resolvable::deps() const
73 { return _pimpl->deps(); }
75 void Resolvable::setDeps( const Dependencies & val_r )
76 { _pimpl->setDeps( val_r ); }
78 /////////////////////////////////////////////////////////////////
80 ///////////////////////////////////////////////////////////////////