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

libzypp 17.38.11

repository.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------*/
9#include "repository.h"
10#include <zypp/ng/sat/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
zyppng::sat::Repository
Definition repository.h:51
zyppng::sat::Repository::satInternalSubPriority
int satInternalSubPriority() const
Definition repository.cc:89
zyppng::sat::Repository::alias
std::string alias() const
Short unique string to identify a repo.
Definition repository.cc:75
zyppng::sat::Repository::satInternalPriority
int satInternalPriority() const
libsolv internal priorities.
Definition repository.cc:83
zyppng::sat::Repository::solvablesSize
size_type solvablesSize() const
Number of solvables in Repository.
Definition repository.cc:164
repository.h
str
String related utilities and Regular expression matching.
zyppng::log
Definition format.h:29
zyppng
Definition MediaNetworkRequestExecutor.h:16
repository.h
zyppng::log::formatter
Primary trait for object formatting.
Definition format.h:67