libzypp: zypp/CapMatch.cc Source File

libzypp 17.38.5

CapMatch.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#include <iostream>
13//#include <zypp-core/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
CapMatch.h
zypp::CapMatch
Tri state Capability match result.
Definition CapMatch.h:39
zypp::CapMatch::_result
Result _result
Definition CapMatch.h:92
zypp::CapMatch::no
static const CapMatch no
Definition CapMatch.h:53
zypp::CapMatch::irrelevant
static const CapMatch irrelevant
Definition CapMatch.h:54
zypp::CapMatch::yes
static const CapMatch yes
Definition CapMatch.h:52
zypp::CapMatch::CapMatch
CapMatch()
Definition CapMatch.h:44
zypp::CapMatch::MATCH
@ MATCH
Definition CapMatch.h:40
zypp::CapMatch::IRRELEVANT
@ IRRELEVANT
Definition CapMatch.h:40
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition SerialNumber.cc:52