1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
15 #include "zypp/NVRA.h"
16 #include "zypp/Dependencies.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////
26 /** Helper storing Name, Edition, Arch and Dependencies.
28 * \note Stream output and comaprison operators based on
31 struct NVRAD : public NVRA, public Dependencies
39 NVRAD( const std::string & name_r,
40 const Edition & edition_r = Edition(),
41 const Arch & arch_r = Arch(),
42 const Dependencies & deps_r = Dependencies() )
43 : NVRA( name_r, edition_r, arch_r )
44 , Dependencies( deps_r )
49 NVRAD( const NVRA & nvra_r,
50 const Dependencies & deps_r = Dependencies() )
52 , Dependencies( deps_r )
55 /** Ctor from Resolvable::constPtr */
57 NVRAD( const NVR & nvr_r,
58 const Arch & arch_r = Arch(),
59 const Dependencies & deps_r = Dependencies() )
60 : NVRA( nvr_r, arch_r )
61 , Dependencies( deps_r )
66 NVRAD( Resolvable::constPtr res_r );
68 ///////////////////////////////////////////////////////////////////
70 /** \relates NVRAD Stream output */
71 std::ostream & operator<<( std::ostream & str, const NVRAD & obj );
73 /////////////////////////////////////////////////////////////////
75 ///////////////////////////////////////////////////////////////////
76 #endif // ZYPP_NVRAD_H