libzypp  17.38.7
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 
13 namespace 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
std::string alias() const
Short unique string to identify a repo.
Definition: repository.cc:74
String related utilities and Regular expression matching.
int satInternalPriority() const
libsolv internal priorities.
Definition: repository.cc:82
int satInternalSubPriority() const
Definition: repository.cc:88
size_type solvablesSize() const
Number of solvables in Repository.
Definition: repository.cc:165
Primary trait for object formatting.
Definition: format.h:67