Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 68c0c2ff89d8bf9051ff1b9773ed48e4 > files > 9059

libzypp-doc-17.9.0-1.1.mga7.noarch.rpm

<!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::RepoVarExpand 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&amp;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
   &#160;<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&amp;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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structzypp_1_1repo_1_1RepoVarExpand.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structzypp_1_1repo_1_1RepoVarExpand-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">zypp::repo::RepoVarExpand Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Functor expanding repo variables in a string.  
 <a href="structzypp_1_1repo_1_1RepoVarExpand.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="RepoVariables_8h_source.html">RepoVariables.h</a>&gt;</code></p>
<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:aa10e0074e741ae74948a1f7ec5ac6ed4"><td class="memItemLeft" align="right" valign="top">typedef function&lt; const std::string *(const std::string &amp;)&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">VarRetriever</a></td></tr>
<tr class="memdesc:aa10e0074e741ae74948a1f7ec5ac6ed4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Function taking a variable name and returning a pointer to the variable value or <code>nullptr</code> if unset.  <a href="#aa10e0074e741ae74948a1f7ec5ac6ed4">More...</a><br /></td></tr>
<tr class="separator:aa10e0074e741ae74948a1f7ec5ac6ed4"><td class="memSeparator" colspan="2">&#160;</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:ad425b8e55fb23bc94082f9bb7563f4d1"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html#ad425b8e55fb23bc94082f9bb7563f4d1">operator()</a> (const std::string &amp;value_r, <a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">VarRetriever</a> varRetriever_r) const</td></tr>
<tr class="memdesc:ad425b8e55fb23bc94082f9bb7563f4d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a copy of <em>value_r</em> with embedded variables expanded.  <a href="#ad425b8e55fb23bc94082f9bb7563f4d1">More...</a><br /></td></tr>
<tr class="separator:ad425b8e55fb23bc94082f9bb7563f4d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad06e9982b7f7b08b2ea375e73665f051"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html#ad06e9982b7f7b08b2ea375e73665f051">operator()</a> (std::string &amp;&amp;value_r, <a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">VarRetriever</a> varRetriever_r) const</td></tr>
<tr class="separator:ad06e9982b7f7b08b2ea375e73665f051"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Functor expanding repo variables in a string. </p>
<p>Known variables are determined by a callback function taking a variable name and returning a pointer to the variable value or <code>nullptr</code> if unset.</p>
<p>The <code>$</code> character introduces variable expansion. A valid variable name is any non-empty case-insensitive sequence of <code>[[:alnum:]_]</code>. The variable name to be expanded may be enclosed in braces, which are optional but serve to protect the variable to be expanded from characters immediately following it which could be interpreted as part of the name.</p>
<p>When braces are used, the matching ending brace is the first <code>}</code> not escaped by a backslash and not within an embedded variable expansion. Within braces only <code>$</code>, <code>}</code> and <code>backslash</code> are escaped by a backslash. There is no escaping outside braces, to stay comaptible with <code>YUM</code> (which does not support braces).</p>
<ul>
<li>
<p class="startli"><code>${variable}</code> If <code>variable</code> is unset the original is preserved like in <code>YUM</code>. Otherwise, the value of <code>variable</code> is substituted.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli"><code>${variable:-word}</code> (default value) If <code>variable</code> is unset or empty, the expansion of <code>word</code> is substituted. Otherwise, the value of <code>variable</code> is substituted.</p>
<p class="endli"></p>
</li>
<li>
<code>${variable:+word}</code> (alternate value) If variable is unset or empty nothing is substituted. Otherwise, the expansion of <code>word</code> is substituted. </li>
</ul>

<p class="definition">Definition at line <a class="el" href="RepoVariables_8h_source.html#l00057">57</a> of file <a class="el" href="RepoVariables_8h_source.html">RepoVariables.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="aa10e0074e741ae74948a1f7ec5ac6ed4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa10e0074e741ae74948a1f7ec5ac6ed4">&#9670;&nbsp;</a></span>VarRetriever</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef function&lt;const std::string * ( const std::string &amp; )&gt; <a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">zypp::repo::RepoVarExpand::VarRetriever</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Function taking a variable name and returning a pointer to the variable value or <code>nullptr</code> if unset. </p>

<p class="definition">Definition at line <a class="el" href="RepoVariables_8h_source.html#l00060">60</a> of file <a class="el" href="RepoVariables_8h_source.html">RepoVariables.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad425b8e55fb23bc94082f9bb7563f4d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad425b8e55fb23bc94082f9bb7563f4d1">&#9670;&nbsp;</a></span>operator()() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string zypp::repo::RepoVarExpand::operator() </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>value_r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">VarRetriever</a>&#160;</td>
          <td class="paramname"><em>varRetriever_r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return a copy of <em>value_r</em> with embedded variables expanded. </p>

<p class="definition">Definition at line <a class="el" href="RepoVariables_8cc_source.html#l00380">380</a> of file <a class="el" href="RepoVariables_8cc_source.html">RepoVariables.cc</a>.</p>

</div>
</div>
<a id="ad06e9982b7f7b08b2ea375e73665f051"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad06e9982b7f7b08b2ea375e73665f051">&#9670;&nbsp;</a></span>operator()() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string zypp::repo::RepoVarExpand::operator() </td>
          <td>(</td>
          <td class="paramtype">std::string &amp;&amp;&#160;</td>
          <td class="paramname"><em>value_r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html#aa10e0074e741ae74948a1f7ec5ac6ed4">VarRetriever</a>&#160;</td>
          <td class="paramname"><em>varRetriever_r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>

<p class="definition">Definition at line <a class="el" href="RepoVariables_8cc_source.html#l00383">383</a> of file <a class="el" href="RepoVariables_8cc_source.html">RepoVariables.cc</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>zypp/repo/<a class="el" href="RepoVariables_8h_source.html">RepoVariables.h</a></li>
<li>zypp/repo/<a class="el" href="RepoVariables_8cc_source.html">RepoVariables.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_1repo.html">repo</a></li><li class="navelem"><a class="el" href="structzypp_1_1repo_1_1RepoVarExpand.html">RepoVarExpand</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>