libzypp  13.10.6
MediaSource.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
11 #include <iostream>
12 
13 #include "zypp/media/MediaSource.h"
14 
15 namespace zypp {
16  namespace media {
17 
18  std::ostream & operator<<( std::ostream & str, const AttachPoint & obj )
19  {
20  return str << (obj.temp ? "*" : "") << obj.path;
21  }
22 
23  std::ostream & operator<<( std::ostream & str, const AttachedMedia & obj )
24  {
25  return str << "media(" << obj.mediaSource << ")attached(" << obj.attachPoint << ")";
26  }
27 
28  } // namespace media
29 } // namespace zypp
Attach point of a media source.
Definition: MediaSource.h:105
Pathname path
The path name (mount point).
Definition: MediaSource.h:116
bool temp
If it was created temporary.
Definition: MediaSource.h:117
std::ostream & operator<<(std::ostream &str, const MediaAccess &obj)
Definition: MediaAccess.cc:482
AttachPointRef attachPoint
Definition: MediaSource.h:145
MediaSourceRef mediaSource
Definition: MediaSource.h:144
A simple structure containing references to a media source and its attach point.
Definition: MediaSource.h:133