<!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::parser::RepoindexFileReader Class Reference</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('classzypp_1_1parser_1_1RepoindexFileReader.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pri-attribs">Private Attributes</a> | <a href="classzypp_1_1parser_1_1RepoindexFileReader-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">zypp::parser::RepoindexFileReader Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>Reads through a repoindex.xml file and collects repositories. <a href="classzypp_1_1parser_1_1RepoindexFileReader.html#details">More...</a></p> <p><code>#include <<a class="el" href="RepoindexFileReader_8h_source.html">RepoindexFileReader.h</a>></code></p> <div class="dynheader"> Inheritance diagram for zypp::parser::RepoindexFileReader:</div> <div class="dyncontent"> <div class="center"><img src="classzypp_1_1parser_1_1RepoindexFileReader__inherit__graph.png" border="0" usemap="#zypp_1_1parser_1_1RepoindexFileReader_inherit__map" alt="Inheritance graph"/></div> <map name="zypp_1_1parser_1_1RepoindexFileReader_inherit__map" id="zypp_1_1parser_1_1RepoindexFileReader_inherit__map"> <area shape="rect" title="Reads through a repoindex.xml file and collects repositories." alt="" coords="5,80,196,121"/> <area shape="rect" title=" " alt="" coords="30,5,171,32"/> </map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> Classes</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader_1_1Impl.html">Impl</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> Public Types</h2></td></tr> <tr class="memitem:a8c76bd486dd46f95d2369066d9f61131"><td class="memItemLeft" align="right" valign="top">typedef function< <a class="el" href="classbool.html">bool</a>(const <a class="el" href="classzypp_1_1RepoInfo.html">RepoInfo</a> &)> </td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a8c76bd486dd46f95d2369066d9f61131">ProcessResource</a></td></tr> <tr class="memdesc:a8c76bd486dd46f95d2369066d9f61131"><td class="mdescLeft"> </td><td class="mdescRight">Callback definition. <a href="#a8c76bd486dd46f95d2369066d9f61131">More...</a><br /></td></tr> <tr class="separator:a8c76bd486dd46f95d2369066d9f61131"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a518a187e71ee65fb4a66142eb6f0f484"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a518a187e71ee65fb4a66142eb6f0f484">RepoindexFileReader</a> (const <a class="el" href="classzypp_1_1filesystem_1_1Pathname.html">zypp::Pathname</a> &repoindexFile, const <a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a8c76bd486dd46f95d2369066d9f61131">ProcessResource</a> &callback)</td></tr> <tr class="memdesc:a518a187e71ee65fb4a66142eb6f0f484"><td class="mdescLeft"> </td><td class="mdescRight">CTOR. <a href="#a518a187e71ee65fb4a66142eb6f0f484">More...</a><br /></td></tr> <tr class="separator:a518a187e71ee65fb4a66142eb6f0f484"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a86199e57dd20b81f035b12a5fa4a14b1"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a86199e57dd20b81f035b12a5fa4a14b1">RepoindexFileReader</a> (const <a class="el" href="classzypp_1_1InputStream.html">InputStream</a> &is, const <a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a8c76bd486dd46f95d2369066d9f61131">ProcessResource</a> &callback)</td></tr> <tr class="memdesc:a86199e57dd20b81f035b12a5fa4a14b1"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a86199e57dd20b81f035b12a5fa4a14b1">More...</a><br /></td></tr> <tr class="separator:a86199e57dd20b81f035b12a5fa4a14b1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ace1b269257716e28a72e76cc16a1901b"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#ace1b269257716e28a72e76cc16a1901b">~RepoindexFileReader</a> ()</td></tr> <tr class="memdesc:ace1b269257716e28a72e76cc16a1901b"><td class="mdescLeft"> </td><td class="mdescRight">DTOR. <a href="#ace1b269257716e28a72e76cc16a1901b">More...</a><br /></td></tr> <tr class="separator:ace1b269257716e28a72e76cc16a1901b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acc350e17a5b44924343731d9ab6ad9c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classzypp_1_1Date.html#a12dbb9690dca8e87337ad792c5e5c67c">Date::Duration</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#acc350e17a5b44924343731d9ab6ad9c2">ttl</a> () const</td></tr> <tr class="memdesc:acc350e17a5b44924343731d9ab6ad9c2"><td class="mdescLeft"> </td><td class="mdescRight">Metadata TTL (repoindex.xml:xpath:/repoindex@ttl or 0). <a href="#acc350e17a5b44924343731d9ab6ad9c2">More...</a><br /></td></tr> <tr class="separator:acc350e17a5b44924343731d9ab6ad9c2"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a> Private Attributes</h2></td></tr> <tr class="memitem:a46610e30db6befca28ae6616a2ab99fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structzypp_1_1RW__pointer.html">RW_pointer</a>< <a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader_1_1Impl.html">Impl</a>, <a class="el" href="structzypp_1_1rw__pointer_1_1Scoped.html">rw_pointer::Scoped</a>< <a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader_1_1Impl.html">Impl</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a46610e30db6befca28ae6616a2ab99fa">_pimpl</a></td></tr> <tr class="separator:a46610e30db6befca28ae6616a2ab99fa"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Reads through a repoindex.xml file and collects repositories. </p> <p>After each repository is read, a <a class="el" href="classzypp_1_1RepoInfo.html">RepoInfo</a> is prepared and <a class="el" href="CredentialFileReader_8cc.html#ab3d9e0e349683a0157e5b0d4a7e4517e">_callback</a> is called with this object passed in.</p> <p>The <a class="el" href="CredentialFileReader_8cc.html#ab3d9e0e349683a0157e5b0d4a7e4517e">_callback</a> is provided on construction.</p> <div class="fragment"><div class="line"><a class="code" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a518a187e71ee65fb4a66142eb6f0f484">RepoindexFileReader</a> reader(repoindex_file,</div><div class="line"> bind( &SomeClass::callbackfunc, &SomeClassInstance, _1) );</div></div><!-- fragment --> <p class="definition">Definition at line <a class="el" href="RepoindexFileReader_8h_source.html#l00044">44</a> of file <a class="el" href="RepoindexFileReader_8h_source.html">RepoindexFileReader.h</a>.</p> </div><h2 class="groupheader">Member Typedef Documentation</h2> <a id="a8c76bd486dd46f95d2369066d9f61131"></a> <h2 class="memtitle"><span class="permalink"><a href="#a8c76bd486dd46f95d2369066d9f61131">◆ </a></span>ProcessResource</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef function< <a class="el" href="classbool.html">bool</a>( const <a class="el" href="classzypp_1_1RepoInfo.html">RepoInfo</a> & )> <a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a8c76bd486dd46f95d2369066d9f61131">zypp::parser::RepoindexFileReader::ProcessResource</a></td> </tr> </table> </div><div class="memdoc"> <p>Callback definition. </p> <p>First parameter is a <a class="el" href="classzypp_1_1RepoInfo.html">RepoInfo</a> object with the resource FIXME return value is ignored </p> <p class="definition">Definition at line <a class="el" href="RepoindexFileReader_8h_source.html#l00052">52</a> of file <a class="el" href="RepoindexFileReader_8h_source.html">RepoindexFileReader.h</a>.</p> </div> </div> <h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="a518a187e71ee65fb4a66142eb6f0f484"></a> <h2 class="memtitle"><span class="permalink"><a href="#a518a187e71ee65fb4a66142eb6f0f484">◆ </a></span>RepoindexFileReader() <span class="overload">[1/2]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">zypp::parser::RepoindexFileReader::RepoindexFileReader </td> <td>(</td> <td class="paramtype">const <a class="el" href="classzypp_1_1filesystem_1_1Pathname.html">zypp::Pathname</a> & </td> <td class="paramname"><em>repoindexFile</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a8c76bd486dd46f95d2369066d9f61131">ProcessResource</a> & </td> <td class="paramname"><em>callback</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>CTOR. </p> <p>Creates also <a class="el" href="namespacexml_1_1Reader.html">xml::Reader</a> and starts reading.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">repoindexFile</td><td>is the repoindex.xml file you want to read </td></tr> <tr><td class="paramname">callback</td><td>is a function.</td></tr> </table> </dd> </dl> <dl class="section see"><dt>See also</dt><dd><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a8c76bd486dd46f95d2369066d9f61131" title="Callback definition.">RepoindexFileReader::ProcessResource</a> </dd></dl> <p class="definition">Definition at line <a class="el" href="RepoindexFileReader_8cc_source.html#l00265">265</a> of file <a class="el" href="RepoindexFileReader_8cc_source.html">RepoindexFileReader.cc</a>.</p> </div> </div> <a id="a86199e57dd20b81f035b12a5fa4a14b1"></a> <h2 class="memtitle"><span class="permalink"><a href="#a86199e57dd20b81f035b12a5fa4a14b1">◆ </a></span>RepoindexFileReader() <span class="overload">[2/2]</span></h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">zypp::parser::RepoindexFileReader::RepoindexFileReader </td> <td>(</td> <td class="paramtype">const <a class="el" href="classzypp_1_1InputStream.html">InputStream</a> & </td> <td class="paramname"><em>is</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a8c76bd486dd46f95d2369066d9f61131">ProcessResource</a> & </td> <td class="paramname"><em>callback</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Constructor. </p> <p>Creates the reader and start reading.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">is</td><td>a valid input stream </td></tr> <tr><td class="paramname">callback</td><td>Callback that will be called for each repository.</td></tr> </table> </dd> </dl> <dl class="section see"><dt>See also</dt><dd><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html#a8c76bd486dd46f95d2369066d9f61131" title="Callback definition.">RepoindexFileReader::ProcessResource</a> </dd></dl> <p class="definition">Definition at line <a class="el" href="RepoindexFileReader_8cc_source.html#l00269">269</a> of file <a class="el" href="RepoindexFileReader_8cc_source.html">RepoindexFileReader.cc</a>.</p> </div> </div> <a id="ace1b269257716e28a72e76cc16a1901b"></a> <h2 class="memtitle"><span class="permalink"><a href="#ace1b269257716e28a72e76cc16a1901b">◆ </a></span>~RepoindexFileReader()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">zypp::parser::RepoindexFileReader::~RepoindexFileReader </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>DTOR. </p> <p class="definition">Definition at line <a class="el" href="RepoindexFileReader_8cc_source.html#l00273">273</a> of file <a class="el" href="RepoindexFileReader_8cc_source.html">RepoindexFileReader.cc</a>.</p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="acc350e17a5b44924343731d9ab6ad9c2"></a> <h2 class="memtitle"><span class="permalink"><a href="#acc350e17a5b44924343731d9ab6ad9c2">◆ </a></span>ttl()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classzypp_1_1Date.html#a12dbb9690dca8e87337ad792c5e5c67c">Date::Duration</a> zypp::parser::RepoindexFileReader::ttl </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div><div class="memdoc"> <p>Metadata TTL (repoindex.xml:xpath:/repoindex@ttl or 0). </p> <p class="definition">Definition at line <a class="el" href="RepoindexFileReader_8cc_source.html#l00276">276</a> of file <a class="el" href="RepoindexFileReader_8cc_source.html">RepoindexFileReader.cc</a>.</p> </div> </div> <h2 class="groupheader">Member Data Documentation</h2> <a id="a46610e30db6befca28ae6616a2ab99fa"></a> <h2 class="memtitle"><span class="permalink"><a href="#a46610e30db6befca28ae6616a2ab99fa">◆ </a></span>_pimpl</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="structzypp_1_1RW__pointer.html">RW_pointer</a><<a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader_1_1Impl.html">Impl</a>,<a class="el" href="structzypp_1_1rw__pointer_1_1Scoped.html">rw_pointer::Scoped</a><<a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader_1_1Impl.html">Impl</a>> > zypp::parser::RepoindexFileReader::_pimpl</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">private</span></span> </td> </tr> </table> </div><div class="memdoc"> <p class="definition">Definition at line <a class="el" href="RepoindexFileReader_8h_source.html#l00085">85</a> of file <a class="el" href="RepoindexFileReader_8h_source.html">RepoindexFileReader.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>zypp/parser/<a class="el" href="RepoindexFileReader_8h_source.html">RepoindexFileReader.h</a></li> <li>zypp/parser/<a class="el" href="RepoindexFileReader_8cc_source.html">RepoindexFileReader.cc</a></li> </ul> </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="namespacezypp.html">zypp</a></li><li class="navelem"><a class="el" href="namespacezypp_1_1parser.html">parser</a></li><li class="navelem"><a class="el" href="classzypp_1_1parser_1_1RepoindexFileReader.html">RepoindexFileReader</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>