libzypp  17.10.2
OnMediaLocation.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #include <iostream>
13 //#include "zypp/base/Logger.h"
14 
15 #include "zypp/OnMediaLocation.h"
16 
17 using std::endl;
18 
20 namespace zypp
21 {
22  /******************************************************************
24  **
25  ** FUNCTION NAME : operator<<
26  ** FUNCTION TYPE : std::ostream &
27  */
28  std::ostream & operator<<( std::ostream & str, const OnMediaLocation & obj )
29  {
30  return str << "[" << obj.medianr() << "]" << obj.filename()
31  << "{" << obj.downloadSize() << "|" << obj.checksum() << "}";
32  }
33 
35 } // namespace zypp
Describes a path on a certain media amongs as the information required to download it...
const ByteCount & downloadSize() const
The size of the resource on the server.
String related utilities and Regular expression matching.
unsigned medianr() const
media number where the resource is located.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147
const Pathname & filename() const
The path to the resource relatve to the url and path.
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
const CheckSum & checksum() const
the checksum of the resource