libzypp 17.31.23
CapMatch.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#include <iostream>
13//#include <zypp/base/Logger.h>
14
15#include <zypp/CapMatch.h>
16
17using std::endl;
18
20namespace zypp
21{
22
23 const CapMatch CapMatch::yes( true );
24 const CapMatch CapMatch::no( false );
25 const CapMatch CapMatch::irrelevant;
26
27 /******************************************************************
28 **
29 ** FUNCTION NAME : operator<<
30 ** FUNCTION TYPE : std::ostream &
31 */
32 std::ostream & operator<<( std::ostream & str, const CapMatch & obj )
33 {
34 if ( obj._result == CapMatch::IRRELEVANT )
35 return str << "IRRELEVANT";
36 return str << ( obj._result == CapMatch::MATCH ? "MATCH" : "NOMATCH" );
37 }
38
40} // namespace zypp
Tri state Capability match result.
Definition: CapMatch.h:38
Result _result
Definition: CapMatch.h:91
static const CapMatch no
Definition: CapMatch.h:52
static const CapMatch irrelevant
Definition: CapMatch.h:53
static const CapMatch yes
Definition: CapMatch.h:51
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition: SerialNumber.cc:52