libzypp: zypp/ng/log/sat/solvable.cc Source File

libzypp 17.38.11

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
13namespace 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
zyppng::ResKind::srcpackage
static const ResKind srcpackage
Definition ResKind.h:44
zyppng::sat::Solvable
A Solvable object within the sat Pool.
Definition solvable.h:66
zyppng::sat::Solvable::isSystem
bool isSystem() const
Return whether this Solvable belongs to the system repo.
Definition solvable.cc:279
zyppng::sat::Solvable::edition
Edition edition() const
The edition (version-release).
Definition solvable.cc:247
zyppng::sat::Solvable::ident
IdString ident() const
The identifier.
Definition solvable.cc:179
zyppng::sat::Solvable::id
IdType id() const
Expert backdoor.
Definition solvable.h:342
zyppng::sat::Solvable::arch
Arch arch() const
The architecture.
Definition solvable.cc:253
zyppng::sat::Solvable::isKind
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
Definition solvable.cc:212
solvable.h
str
String related utilities and Regular expression matching.
zyppng::log
Definition format.h:29
solvable.h
zyppng::log::formatter
Primary trait for object formatting.
Definition format.h:67