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

libzypp 17.38.14

queue.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8----------------------------------------------------------------------*/
9#include "queue.h"
10
11#include <iostream>
12#include <zypp-core/base/LogTools.h>
13#include <zypp/ng/sat/queue.h>
14#include <zypp/ng/sat/solvable.h>
15
16#include <zypp/ng/log/sat/solvable.h>
17
18using std::endl;
19
20namespace zyppng {
21
22 namespace log {
23 std::ostream &formatter<sat::Queue>::stream(std::ostream &str, const sat::Queue &obj)
24 {
25 return zypp::dumpRangeLine( str << "Queue ", obj.begin(), obj.end() );
26 }
27 }
28
29 namespace sat {
30
31 std::ostream & dumpOn( std::ostream & str, const Queue & obj )
32 {
33 str << "Queue {";
34 if ( ! obj.empty() )
35 {
36 str << endl;
37 for ( auto it = obj.begin(); it != obj.end(); ++it )
38 str << " " << Solvable(*it) << endl;
39 }
40 return str << "}";
41 }
42
43 } // namespace sat
44} // namespace zyppng
LogTools.h
zyppng::sat::Queue
Libsolv Id queue wrapper.
Definition queue.h:37
zyppng::sat::Queue::end
const_iterator end() const
Definition queue.cc:62
zyppng::sat::Queue::empty
bool empty() const
Definition queue.cc:53
zyppng::sat::Queue::begin
const_iterator begin() const
Definition queue.cc:59
zyppng::sat::Solvable
A Solvable object within the sat Pool.
Definition solvable.h:66
queue.h
solvable.h
str
String related utilities and Regular expression matching.
zypp::sat
Libsolv interface
zypp::sat::dumpOn
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
relates: LocaleSupport More verbose stream output including dependencies
Definition LocaleSupport.cc:41
zypp::dumpRangeLine
std::ostream & dumpRangeLine(std::ostream &str, TIterator begin, TIterator end)
Print range defined by iterators (single line style).
Definition LogTools.h:442
zyppng::log
Definition format.h:29
zyppng
Definition MediaNetworkRequestExecutor.h:16
queue.h
solvable.h
zyppng::log::formatter
Primary trait for object formatting.
Definition format.h:67