1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp2/RepoStatus.cc
13 //#include "zypp/base/Logger.h"
14 #include "zypp2/RepoStatus.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////
24 // CLASS NAME : RepoStatus::Impl
26 /** RepoStatus implementation. */
27 struct RepoStatus::Impl
31 /** Offer default Impl. */
32 static shared_ptr<Impl> nullimpl()
34 static shared_ptr<Impl> _nullimpl( new Impl );
39 friend Impl * rwcowClone<Impl>( const Impl * rhs );
40 /** clone for RWCOW_pointer */
42 { return new Impl( *this ); }
44 ///////////////////////////////////////////////////////////////////
46 /** \relates RepoStatus::Impl Stream output */
47 inline std::ostream & operator<<( std::ostream & str, const RepoStatus::Impl & obj )
49 return str << "RepoStatus::Impl";
52 ///////////////////////////////////////////////////////////////////
54 // CLASS NAME : RepoStatus
56 ///////////////////////////////////////////////////////////////////
58 ///////////////////////////////////////////////////////////////////
60 // METHOD NAME : RepoStatus::RepoStatus
63 RepoStatus::RepoStatus()
64 : _pimpl( Impl::nullimpl() )
67 ///////////////////////////////////////////////////////////////////
69 // METHOD NAME : RepoStatus::~RepoStatus
72 RepoStatus::~RepoStatus()
75 /******************************************************************
77 ** FUNCTION NAME : operator<<
78 ** FUNCTION TYPE : std::ostream &
80 std::ostream & operator<<( std::ostream & str, const RepoStatus & obj )
82 return str << *obj._pimpl;
85 /////////////////////////////////////////////////////////////////
87 ///////////////////////////////////////////////////////////////////