1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/CapMatch.cc
13 //#include "zypp/base/Logger.h"
15 #include "zypp/CapMatch.h"
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
23 const CapMatch CapMatch::yes( true );
24 const CapMatch CapMatch::no( false );
25 const CapMatch CapMatch::irrelevant;
27 /******************************************************************
29 ** FUNCTION NAME : operator<<
30 ** FUNCTION TYPE : std::ostream &
32 std::ostream & operator<<( std::ostream & str, const CapMatch & obj )
34 if ( obj._result == CapMatch::IRRELEVANT )
35 return str << "IRRELEVANT";
36 return str << ( obj._result == CapMatch::MATCH ? "MATCH" : "NOMATCH" );
39 /////////////////////////////////////////////////////////////////
41 ///////////////////////////////////////////////////////////////////