libzypp  17.38.7
solvable.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 ----------------------------------------------------------------------*/
9 #include "solvable.h"
10 
11 #include <zypp/ng/sat/solvable.h>
12 
13 namespace zyppng::log {
14 
15  std::ostream &zyppng::log::formatter<sat::Solvable>::stream(std::ostream &str, const sat::Solvable &obj)
16  {
17  if ( ! obj )
18  return str << (obj.isSystem() ? "systemSolvable" : "noSolvable" );
19 
20  return str << "(" << obj.id() << ")"
21  << ( obj.isKind( ResKind::srcpackage ) ? "srcpackage:" : "" ) << obj.ident()
22  << '-' << obj.edition() << '.' << obj.arch()
23  //<< "(" << obj.repository().alias() << ")"
24  ;
25  }
26 
27 }
28 
A Solvable object within the sat Pool.
Definition: solvable.h:64
Arch arch() const
The architecture.
Definition: solvable.cc:253
String related utilities and Regular expression matching.
static const ResKind srcpackage
Definition: ResKind.h:44
bool isSystem() const
Return whether this Solvable belongs to the system repo.
Definition: solvable.cc:279
Edition edition() const
The edition (version-release).
Definition: solvable.cc:247
IdType id() const
Expert backdoor.
Definition: solvable.h:338
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
Definition: solvable.cc:212
IdString ident() const
The identifier.
Definition: solvable.cc:179
Primary trait for object formatting.
Definition: format.h:67