libzypp  10.5.0
CapMatch.cc
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #include <iostream>
00013 //#include "zypp/base/Logger.h"
00014 
00015 #include "zypp/CapMatch.h"
00016 
00017 using std::endl;
00018 
00020 namespace zypp
00021 { 
00022 
00023   const CapMatch CapMatch::yes( true );
00024   const CapMatch CapMatch::no( false );
00025   const CapMatch CapMatch::irrelevant;
00026 
00027   /******************************************************************
00028   **
00029   **    FUNCTION NAME : operator<<
00030   **    FUNCTION TYPE : std::ostream &
00031   */
00032   std::ostream & operator<<( std::ostream & str, const CapMatch & obj )
00033   {
00034     if ( obj._result == CapMatch::IRRELEVANT )
00035       return str << "IRRELEVANT";
00036     return str << ( obj._result == CapMatch::MATCH ? "MATCH" : "NOMATCH" );
00037   }
00038 
00040 } // namespace zypp