<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libzypp: zypp/OnMediaLocation.cc Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libzypp  <span id="projectnumber">17.9.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('OnMediaLocation_8cc_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">OnMediaLocation.cc</div> </div> </div><!--header--> <div class="contents"> <a href="OnMediaLocation_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*---------------------------------------------------------------------\</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">| ____ _ __ __ ___ |</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">| |__ / \ / / . \ . \ |</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">| / / \ V /| _/ _/ |</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">| / /__ | | | | | | |</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">| /_____||_| |_| |_| |</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">| |</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">\---------------------------------------------------------------------*/</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <iostream></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">//#include "zypp/base/Logger.h"</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="OnMediaLocation_8h.html">zypp/OnMediaLocation.h</a>"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">using</span> std::endl;</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> { </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="comment">/******************************************************************</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> **</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> ** FUNCTION NAME : operator<<</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> ** FUNCTION TYPE : std::ostream &</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> */</span></div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespacezypp.html#a633d478e6ae9600415f710d9d196c123"> 28</a></span>  std::ostream & <a class="code" href="namespacezypp.html#a736823673697753a9826f368fefff5f0">operator<<</a>( std::ostream & <a class="code" href="namespacestr.html">str</a>, <span class="keyword">const</span> <a class="code" href="classzypp_1_1OnMediaLocation.html">OnMediaLocation</a> & obj )</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <a class="code" href="namespacestr.html">str</a> << <span class="stringliteral">"["</span> << obj.<a class="code" href="classzypp_1_1OnMediaLocation.html#a633cd31c3688d20d2aa4672f1130d81a">medianr</a>() << <span class="stringliteral">"]"</span> << obj.<a class="code" href="classzypp_1_1OnMediaLocation.html#a6056a4f294e658f4d1a38e612136c31b">filename</a>()</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  << <span class="stringliteral">"{"</span> << obj.<a class="code" href="classzypp_1_1OnMediaLocation.html#a9f2e0d3641bd09df7fa13ecdd77dad2d">downloadSize</a>() << <span class="stringliteral">"|"</span> << obj.<a class="code" href="classzypp_1_1OnMediaLocation.html#a8d72adf000cfb8ad0313aaa0c83f686a">checksum</a>() << <span class="stringliteral">"}"</span>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  }</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> } <span class="comment">// namespace zypp</span></div><div class="ttc" id="classzypp_1_1OnMediaLocation_html"><div class="ttname"><a href="classzypp_1_1OnMediaLocation.html">zypp::OnMediaLocation</a></div><div class="ttdoc">Describes a path on a certain media amongs as the information required to download it,...</div><div class="ttdef"><b>Definition:</b> <a href="OnMediaLocation_8h_source.html#l00039">OnMediaLocation.h:39</a></div></div> <div class="ttc" id="classzypp_1_1OnMediaLocation_html_a9f2e0d3641bd09df7fa13ecdd77dad2d"><div class="ttname"><a href="classzypp_1_1OnMediaLocation.html#a9f2e0d3641bd09df7fa13ecdd77dad2d">zypp::OnMediaLocation::downloadSize</a></div><div class="ttdeci">const ByteCount & downloadSize() const</div><div class="ttdoc">The size of the resource on the server.</div><div class="ttdef"><b>Definition:</b> <a href="OnMediaLocation_8h_source.html#l00079">OnMediaLocation.h:79</a></div></div> <div class="ttc" id="namespacestr_html"><div class="ttname"><a href="namespacestr.html">str</a></div><div class="ttdoc">String related utilities and Regular expression matching.</div></div> <div class="ttc" id="classzypp_1_1OnMediaLocation_html_a633cd31c3688d20d2aa4672f1130d81a"><div class="ttname"><a href="classzypp_1_1OnMediaLocation.html#a633cd31c3688d20d2aa4672f1130d81a">zypp::OnMediaLocation::medianr</a></div><div class="ttdeci">unsigned medianr() const</div><div class="ttdoc">media number where the resource is located.</div><div class="ttdef"><b>Definition:</b> <a href="OnMediaLocation_8h_source.html#l00064">OnMediaLocation.h:64</a></div></div> <div class="ttc" id="namespacezypp_html_a736823673697753a9826f368fefff5f0"><div class="ttname"><a href="namespacezypp.html#a736823673697753a9826f368fefff5f0">zypp::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &str, const Exception &obj)</div><div class="ttdef"><b>Definition:</b> <a href="Exception_8cc_source.html#l00147">Exception.cc:147</a></div></div> <div class="ttc" id="classzypp_1_1OnMediaLocation_html_a6056a4f294e658f4d1a38e612136c31b"><div class="ttname"><a href="classzypp_1_1OnMediaLocation.html#a6056a4f294e658f4d1a38e612136c31b">zypp::OnMediaLocation::filename</a></div><div class="ttdeci">const Pathname & filename() const</div><div class="ttdoc">The path to the resource relatve to the url and path.</div><div class="ttdef"><b>Definition:</b> <a href="OnMediaLocation_8h_source.html#l00070">OnMediaLocation.h:70</a></div></div> <div class="ttc" id="OnMediaLocation_8h_html"><div class="ttname"><a href="OnMediaLocation_8h.html">OnMediaLocation.h</a></div></div> <div class="ttc" id="namespacezypp_html"><div class="ttname"><a href="namespacezypp.html">zypp</a></div><div class="ttdoc">Easy-to use interface to the ZYPP dependency resolver.</div><div class="ttdef"><b>Definition:</b> <a href="CodePitfalls_8doc_source.html#l00001">CodePitfalls.doc:1</a></div></div> <div class="ttc" id="classzypp_1_1OnMediaLocation_html_a8d72adf000cfb8ad0313aaa0c83f686a"><div class="ttname"><a href="classzypp_1_1OnMediaLocation.html#a8d72adf000cfb8ad0313aaa0c83f686a">zypp::OnMediaLocation::checksum</a></div><div class="ttdeci">const CheckSum & checksum() const</div><div class="ttdoc">the checksum of the resource</div><div class="ttdef"><b>Definition:</b> <a href="OnMediaLocation_8h_source.html#l00074">OnMediaLocation.h:74</a></div></div> </div><!-- fragment --></div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="dir_c187b43c6f283d9fc95eff3f44ce072a.html">zypp</a></li><li class="navelem"><a class="el" href="OnMediaLocation_8cc.html">OnMediaLocation.cc</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>