libzypp  17.23.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/base/Logger.h>
14 
15 #include <zypp/CapMatch.h>
16 
17 using std::endl;
18 
20 namespace 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
zypp::CapMatch::MATCH
Definition: CapMatch.h:39
CapMatch.h
zypp::CapMatch::yes
static const CapMatch yes
Definition: CapMatch.h:51
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
zypp::CapMatch::IRRELEVANT
Definition: CapMatch.h:39
zypp::CapMatch::_result
Result _result
Definition: CapMatch.h:91
zypp::CapMatch::no
static const CapMatch no
Definition: CapMatch.h:52
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147
zypp::CapMatch
Tri state Capability match result.
Definition: CapMatch.h:37
zypp::CapMatch::irrelevant
static const CapMatch irrelevant
Definition: CapMatch.h:53
str
String related utilities and Regular expression matching.