<!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/repo/RepoVariables.h 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('RepoVariables_8h_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">RepoVariables.h</div> </div> </div><!--header--> <div class="contents"> <a href="RepoVariables_8h.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="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#ifndef ZYPP_REPO_VARIABLES_H_</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#define ZYPP_REPO_VARIABLES_H_</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include "<a class="code" href="Function_8h.html">zypp/base/Function.h</a>"</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="ValueTransform_8h.html">zypp/base/ValueTransform.h</a>"</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="Url_8h.html">zypp/Url.h</a>"</span></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="l00023"></a><span class="lineno"> 23</span>  <span class="keyword">namespace </span>repo</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  {</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structzypp_1_1repo_1_1RepoVarExpand.html"> 57</a></span>  <span class="keyword">struct </span><a class="code" href="structzypp_1_1repo_1_1RepoVarExpand.html">RepoVarExpand</a></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4"> 60</a></span>  <span class="keyword">typedef</span> <span class="keyword">function</span><<span class="keyword">const</span> std::string * ( <span class="keyword">const</span> std::string & )> <a class="code" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">VarRetriever</a>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  std::string <a class="code" href="structzypp_1_1repo_1_1RepoVarExpand.html#ad425b8e55fb23bc94082f9bb7563f4d1">operator()</a>( <span class="keyword">const</span> std::string & value_r, <a class="code" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">VarRetriever</a> varRetriever_r ) <span class="keyword">const</span>;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="preprocessor">#ifndef SWIG // Swig treats it as syntax error</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  std::string <a class="code" href="structzypp_1_1repo_1_1RepoVarExpand.html#ad425b8e55fb23bc94082f9bb7563f4d1">operator()</a>( std::string && value_r, <a class="code" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">VarRetriever</a> varRetriever_r ) <span class="keyword">const</span>;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  };</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="structzypp_1_1repo_1_1RepoVariablesStringReplacer.html"> 106</a></span>  <span class="keyword">struct </span><a class="code" href="structzypp_1_1repo_1_1RepoVariablesStringReplacer.html">RepoVariablesStringReplacer</a> : <span class="keyword">public</span> std::unary_function<const std::string &, std::string></div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  {</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  std::string <a class="code" href="structzypp_1_1repo_1_1RepoVariablesStringReplacer.html#a6f8fb688b8b306f9fae2993675ca2821">operator()</a>( <span class="keyword">const</span> std::string & value_r ) <span class="keyword">const</span>;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="preprocessor">#ifndef SWIG // Swig treats it as syntax error</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  std::string <a class="code" href="structzypp_1_1repo_1_1RepoVariablesStringReplacer.html#a6f8fb688b8b306f9fae2993675ca2821">operator()</a>( std::string && value_r ) <span class="keyword">const</span>;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  };</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="structzypp_1_1repo_1_1RepoVariablesUrlReplacer.html"> 121</a></span>  <span class="keyword">struct </span><a class="code" href="structzypp_1_1repo_1_1RepoVariablesUrlReplacer.html">RepoVariablesUrlReplacer</a> : <span class="keyword">public</span> std::unary_function<const Url &, Url></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  {</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="classzypp_1_1Url.html">Url</a> <a class="code" href="structzypp_1_1repo_1_1RepoVariablesUrlReplacer.html#a4fbe3e3c7f9d3237f1ce93012d7b677f">operator()</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1Url.html">Url</a> & url_r ) <span class="keyword">const</span>;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  };</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  } <span class="comment">// namespace repo</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"></span></div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="RepoVariables_8h.html#a3d8ec2127ec9e8c2893a612a1f751472"> 129</a></span>  <span class="keyword">typedef</span> base::ValueTransform<std::string, repo::RepoVariablesStringReplacer> <a class="code" href="RepoVariables_8h.html#a3d8ec2127ec9e8c2893a612a1f751472">RepoVariablesReplacedString</a>;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="RepoVariables_8h.html#a1edc27555b0f48f101680abcbb47548d"> 132</a></span>  <span class="keyword">typedef</span> base::ContainerTransform<std::list<std::string>, repo::RepoVariablesStringReplacer> <a class="code" href="RepoVariables_8h.html#a1edc27555b0f48f101680abcbb47548d">RepoVariablesReplacedStringList</a>;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="RepoVariables_8h.html#a0c5c5e22c13fa1fa2bebe90c24fbaacf"> 135</a></span>  <span class="keyword">typedef</span> base::ValueTransform<Url, repo::RepoVariablesUrlReplacer> <a class="code" href="RepoVariables_8h.html#a0c5c5e22c13fa1fa2bebe90c24fbaacf">RepoVariablesReplacedUrl</a>;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="RepoVariables_8h.html#a020e622fe9340353900f318979e7b972"> 138</a></span>  <span class="keyword">typedef</span> base::ContainerTransform<std::list<Url>, repo::RepoVariablesUrlReplacer> <a class="code" href="RepoVariables_8h.html#a020e622fe9340353900f318979e7b972">RepoVariablesReplacedUrlList</a>;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> } <span class="comment">// namespace zypp</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"></span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="ValueTransform_8h_html"><div class="ttname"><a href="ValueTransform_8h.html">ValueTransform.h</a></div></div> <div class="ttc" id="RepoVariables_8h_html_a0c5c5e22c13fa1fa2bebe90c24fbaacf"><div class="ttname"><a href="RepoVariables_8h.html#a0c5c5e22c13fa1fa2bebe90c24fbaacf">RepoVariablesReplacedUrl</a></div><div class="ttdeci">base::ValueTransform< Url, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrl</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8h_source.html#l00135">RepoVariables.h:135</a></div></div> <div class="ttc" id="RepoVariables_8h_html_a1edc27555b0f48f101680abcbb47548d"><div class="ttname"><a href="RepoVariables_8h.html#a1edc27555b0f48f101680abcbb47548d">RepoVariablesReplacedStringList</a></div><div class="ttdeci">base::ContainerTransform< std::list< std::string >, repo::RepoVariablesStringReplacer > RepoVariablesReplacedStringList</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8h_source.html#l00132">RepoVariables.h:132</a></div></div> <div class="ttc" id="structzypp_1_1repo_1_1RepoVariablesStringReplacer_html_a6f8fb688b8b306f9fae2993675ca2821"><div class="ttname"><a href="structzypp_1_1repo_1_1RepoVariablesStringReplacer.html#a6f8fb688b8b306f9fae2993675ca2821">zypp::repo::RepoVariablesStringReplacer::operator()</a></div><div class="ttdeci">std::string operator()(const std::string &value_r) const</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8cc_source.html#l00540">RepoVariables.cc:540</a></div></div> <div class="ttc" id="Url_8h_html"><div class="ttname"><a href="Url_8h.html">Url.h</a></div></div> <div class="ttc" id="structzypp_1_1repo_1_1RepoVarExpand_html"><div class="ttname"><a href="structzypp_1_1repo_1_1RepoVarExpand.html">zypp::repo::RepoVarExpand</a></div><div class="ttdoc">Functor expanding repo variables in a string.</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8h_source.html#l00057">RepoVariables.h:57</a></div></div> <div class="ttc" id="RepoVariables_8h_html_a020e622fe9340353900f318979e7b972"><div class="ttname"><a href="RepoVariables_8h.html#a020e622fe9340353900f318979e7b972">RepoVariablesReplacedUrlList</a></div><div class="ttdeci">base::ContainerTransform< std::list< Url >, repo::RepoVariablesUrlReplacer > RepoVariablesReplacedUrlList</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8h_source.html#l00138">RepoVariables.h:138</a></div></div> <div class="ttc" id="Function_8h_html"><div class="ttname"><a href="Function_8h.html">Function.h</a></div></div> <div class="ttc" id="RepoVariables_8h_html_a3d8ec2127ec9e8c2893a612a1f751472"><div class="ttname"><a href="RepoVariables_8h.html#a3d8ec2127ec9e8c2893a612a1f751472">RepoVariablesReplacedString</a></div><div class="ttdeci">base::ValueTransform< std::string, repo::RepoVariablesStringReplacer > RepoVariablesReplacedString</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8h_source.html#l00129">RepoVariables.h:129</a></div></div> <div class="ttc" id="structzypp_1_1repo_1_1RepoVariablesStringReplacer_html"><div class="ttname"><a href="structzypp_1_1repo_1_1RepoVariablesStringReplacer.html">zypp::repo::RepoVariablesStringReplacer</a></div><div class="ttdoc">Functor replacing repository variables.</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8h_source.html#l00106">RepoVariables.h:106</a></div></div> <div class="ttc" id="structzypp_1_1repo_1_1RepoVariablesUrlReplacer_html_a4fbe3e3c7f9d3237f1ce93012d7b677f"><div class="ttname"><a href="structzypp_1_1repo_1_1RepoVariablesUrlReplacer.html#a4fbe3e3c7f9d3237f1ce93012d7b677f">zypp::repo::RepoVariablesUrlReplacer::operator()</a></div><div class="ttdeci">Url operator()(const Url &url_r) const</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8cc_source.html#l00549">RepoVariables.cc:549</a></div></div> <div class="ttc" id="structzypp_1_1repo_1_1RepoVarExpand_html_aa10e0074e741ae74948a1f7ec5ac6ed4"><div class="ttname"><a href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">zypp::repo::RepoVarExpand::VarRetriever</a></div><div class="ttdeci">function< const std::string *(const std::string &)> VarRetriever</div><div class="ttdoc">Function taking a variable name and returning a pointer to the variable value or nullptr if unset.</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8h_source.html#l00060">RepoVariables.h:60</a></div></div> <div class="ttc" id="structzypp_1_1repo_1_1RepoVarExpand_html_ad425b8e55fb23bc94082f9bb7563f4d1"><div class="ttname"><a href="structzypp_1_1repo_1_1RepoVarExpand.html#ad425b8e55fb23bc94082f9bb7563f4d1">zypp::repo::RepoVarExpand::operator()</a></div><div class="ttdeci">std::string operator()(const std::string &value_r, VarRetriever varRetriever_r) const</div><div class="ttdoc">Return a copy of value_r with embedded variables expanded.</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8cc_source.html#l00380">RepoVariables.cc:380</a></div></div> <div class="ttc" id="structzypp_1_1repo_1_1RepoVariablesUrlReplacer_html"><div class="ttname"><a href="structzypp_1_1repo_1_1RepoVariablesUrlReplacer.html">zypp::repo::RepoVariablesUrlReplacer</a></div><div class="ttdoc">Functor replacing repository variables.</div><div class="ttdef"><b>Definition:</b> <a href="RepoVariables_8h_source.html#l00121">RepoVariables.h:121</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_1Url_html"><div class="ttname"><a href="classzypp_1_1Url.html">zypp::Url</a></div><div class="ttdoc">Url manipulation class.</div><div class="ttdef"><b>Definition:</b> <a href="Url_8h_source.html#l00087">Url.h:87</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="dir_87611d73de4eb3bd0276658efbbf5b67.html">repo</a></li><li class="navelem"><a class="el" href="RepoVariables_8h.html">RepoVariables.h</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>