libzypp 17.38.6
repository.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------*/
9#include "repository.h"
11#include <iostream>
12
13namespace zyppng {
14
15 namespace log {
16 std::ostream &formatter<sat::Repository>::stream(std::ostream &str, const sat::Repository &obj)
17 {
18 if ( ! obj )
19 return str << "noRepository";
20
21 return str << "sat::repo(" << obj.alias() << ")"
22 << "{"
23 << "prio " << obj.satInternalPriority() << '.' << obj.satInternalSubPriority()
24 << ", size " << obj.solvablesSize()
25 << "}";
26 }
27 }
28
29} // namespace zyppng
int satInternalSubPriority() const
Definition repository.cc:88
std::string alias() const
Short unique string to identify a repo.
Definition repository.cc:74
int satInternalPriority() const
libsolv internal priorities.
Definition repository.cc:82
size_type solvablesSize() const
Number of solvables in Repository.
String related utilities and Regular expression matching.
Primary trait for object formatting.
Definition format.h:67