<!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/FileChecker.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('FileChecker_8h_source.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">FileChecker.h</div> </div> </div><!--header--> <div class="contents"> <a href="FileChecker_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="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#ifndef ZYPP_FILECHECKER_H</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#define ZYPP_FILECHECKER_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 <iosfwd></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <list></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="DefaultIntegral_8h.html">zypp/base/DefaultIntegral.h</a>"</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="Exception_8h.html">zypp/base/Exception.h</a>"</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="Function_8h.html">zypp/base/Function.h</a>"</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="PathInfo_8h.html">zypp/PathInfo.h</a>"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="CheckSum_8h.html">zypp/CheckSum.h</a>"</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="KeyContext_8h.html">zypp/KeyContext.h</a>"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">namespace </span><a class="code" href="namespacezypp.html">zypp</a></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> { </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3"> 28</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1PublicKey.html">PublicKey</a>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">typedef</span> <span class="keyword">function</span><void ( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &file )> <a class="code" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classzypp_1_1FileCheckException.html"> 39</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1FileCheckException.html">FileCheckException</a> : <span class="keyword">public</span> <a class="code" href="classzypp_1_1Exception.html">Exception</a></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classzypp_1_1FileCheckException.html#a9da01b99589ad8cfcfe92918153273da"> 42</a></span>  <a class="code" href="classzypp_1_1FileCheckException.html#a9da01b99589ad8cfcfe92918153273da">FileCheckException</a>(<span class="keyword">const</span> std::string &<a class="code" href="classzypp_1_1Exception.html#a90ce3c9322069f3133564a7ddf43cd8d">msg</a>)</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  : <a class="code" href="classzypp_1_1Exception.html">Exception</a>(<a class="code" href="classzypp_1_1Exception.html#a90ce3c9322069f3133564a7ddf43cd8d">msg</a>)</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {}</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  };</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classzypp_1_1CheckSumCheckException.html"> 47</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1CheckSumCheckException.html">CheckSumCheckException</a> : <span class="keyword">public</span> <a class="code" href="classzypp_1_1FileCheckException.html">FileCheckException</a></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classzypp_1_1CheckSumCheckException.html#adb3ec56bad49e26f0230472aa609e473"> 50</a></span>  <a class="code" href="classzypp_1_1CheckSumCheckException.html#adb3ec56bad49e26f0230472aa609e473">CheckSumCheckException</a>(<span class="keyword">const</span> std::string &<a class="code" href="classzypp_1_1Exception.html#a90ce3c9322069f3133564a7ddf43cd8d">msg</a>)</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  : <a class="code" href="classzypp_1_1FileCheckException.html">FileCheckException</a>(<a class="code" href="classzypp_1_1Exception.html#a90ce3c9322069f3133564a7ddf43cd8d">msg</a>)</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {}</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  };</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureCheckException.html"> 55</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1SignatureCheckException.html">SignatureCheckException</a> : <span class="keyword">public</span> <a class="code" href="classzypp_1_1FileCheckException.html">FileCheckException</a></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureCheckException.html#afa623bb200b1a43ba9f6447e39b23c14"> 58</a></span>  <a class="code" href="classzypp_1_1SignatureCheckException.html#afa623bb200b1a43ba9f6447e39b23c14">SignatureCheckException</a>(<span class="keyword">const</span> std::string &<a class="code" href="classzypp_1_1Exception.html#a90ce3c9322069f3133564a7ddf43cd8d">msg</a>)</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  : <a class="code" href="classzypp_1_1FileCheckException.html">FileCheckException</a>(<a class="code" href="classzypp_1_1Exception.html#a90ce3c9322069f3133564a7ddf43cd8d">msg</a>)</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  {}</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  };</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="classzypp_1_1ChecksumFileChecker.html"> 70</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1ChecksumFileChecker.html">ChecksumFileChecker</a></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  {</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="classzypp_1_1ChecksumFileChecker.html#ad891c41b02782e2b8ed40b28cb68c1b2"> 73</a></span>  <span class="keyword">typedef</span> <a class="code" href="classzypp_1_1CheckSumCheckException.html">CheckSumCheckException</a> <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ad891c41b02782e2b8ed40b28cb68c1b2">ExceptionType</a>;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="classzypp_1_1ChecksumFileChecker.html#aa72c3808ef4e59438ac80ba451fa291d">ChecksumFileChecker</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1CheckSum.html">CheckSum</a> &<a class="code" href="namespacezypp_1_1filesystem.html#a20a3a87c89cc383460b922f54db7235d">checksum</a> );</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1ChecksumFileChecker.html#a121c50a1e4fa9966b02fb8afce9b4abc">operator()</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &file ) <span class="keyword">const</span>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599"> 87</a></span>  <a class="code" href="classzypp_1_1CheckSum.html">CheckSum</a> <a class="code" href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">_checksum</a>;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  };</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html"> 93</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1SignatureFileChecker.html">SignatureFileChecker</a></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#aaadf81a304bf4b28e3d9b7eced74ee31"> 96</a></span>  <span class="keyword">typedef</span> <a class="code" href="classzypp_1_1SignatureCheckException.html">SignatureCheckException</a> <a class="code" href="classzypp_1_1SignatureFileChecker.html#aaadf81a304bf4b28e3d9b7eced74ee31">ExceptionType</a>;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac4118aabb472371848abddcd5b276e89">SignatureFileChecker</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &signature );</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac4118aabb472371848abddcd5b276e89">SignatureFileChecker</a>();</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#a98fb8a830762ee007f6111a67d922fd0">setKeyContext</a>(<span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> & keycontext);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a8bb3cfcc3ad9ce7a27a465deaff78184"> 123</a></span>  <span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> & <a class="code" href="classzypp_1_1SignatureFileChecker.html#a8bb3cfcc3ad9ce7a27a465deaff78184">keyContext</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#a1b3be1cf399a308b1d9555588e6c2d4e">_context</a>; }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a0cd164d0fed74d29e8d26da45af5fa91"> 130</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#a0cd164d0fed74d29e8d26da45af5fa91">fileAccepted</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#aafd41ed3bd2ec896e768c921fc582eb6">_fileAccepted</a>; }</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a9391d2f36b62147a29cfeba0f971f58d"> 137</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#a9391d2f36b62147a29cfeba0f971f58d">fileValidated</a>()<span class="keyword"> const</span></div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="keyword"> </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#ad19ae29f2f7a3fa3a455528710c61786">_fileValidated</a>; }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">addPublicKey</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1PublicKey.html">PublicKey</a> & publickey, <span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> & keycontext = <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a>());</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">addPublicKey</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> & publickey, <span class="keyword">const</span> <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> & keycontext = <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a>());</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1SignatureFileChecker.html#a57331780d2a764ade8dc30a5bed65159">operator()</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &file ) <span class="keyword">const</span>;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keyword">protected</span>:</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#ab00e08c179f020726dd96eec8313dd97"> 162</a></span>  <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> <a class="code" href="classzypp_1_1SignatureFileChecker.html#ab00e08c179f020726dd96eec8313dd97">_signature</a>;</div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#a1b3be1cf399a308b1d9555588e6c2d4e"> 163</a></span>  <a class="code" href="structzypp_1_1KeyContext.html">KeyContext</a> <a class="code" href="classzypp_1_1SignatureFileChecker.html#a1b3be1cf399a308b1d9555588e6c2d4e">_context</a>;</div><div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#aafd41ed3bd2ec896e768c921fc582eb6"> 164</a></span>  <span class="keyword">mutable</span> <a class="code" href="classzypp_1_1DefaultIntegral.html">DefaultIntegral<bool,false></a> <a class="code" href="classzypp_1_1SignatureFileChecker.html#aafd41ed3bd2ec896e768c921fc582eb6">_fileAccepted</a>;</div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="classzypp_1_1SignatureFileChecker.html#ad19ae29f2f7a3fa3a455528710c61786"> 165</a></span>  <span class="keyword">mutable</span> <a class="code" href="classzypp_1_1DefaultIntegral.html">DefaultIntegral<bool,false></a> <a class="code" href="classzypp_1_1SignatureFileChecker.html#ad19ae29f2f7a3fa3a455528710c61786">_fileValidated</a>;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  };</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classzypp_1_1NullFileChecker.html"> 172</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1NullFileChecker.html">NullFileChecker</a></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  {</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1NullFileChecker.html#abc0e43683c43a8e0758c42af1643861f">operator()</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &file ) <span class="keyword">const</span>;</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  };</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div><div class="line"><a name="l00192"></a><span class="lineno"><a class="line" href="classzypp_1_1CompositeFileChecker.html"> 192</a></span>  <span class="keyword">class </span><a class="code" href="classzypp_1_1CompositeFileChecker.html">CompositeFileChecker</a></div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  {</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1CompositeFileChecker.html#a755f5a4a14b73233afcad5528f03a23b">add</a>( <span class="keyword">const</span> <a class="code" href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a> &checker );</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keywordtype">void</span> <a class="code" href="classzypp_1_1CompositeFileChecker.html#aa7a3dca302d850aee1d7dedbc5538b96">operator()</a>( <span class="keyword">const</span> <a class="code" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &file ) <span class="keyword">const</span>;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div><div class="line"><a name="l00201"></a><span class="lineno"><a class="line" href="classzypp_1_1CompositeFileChecker.html#ac34c66135846fa877babaf563d7c2d2b"> 201</a></span>  <span class="keywordtype">int</span> <a class="code" href="classzypp_1_1CompositeFileChecker.html#ac34c66135846fa877babaf563d7c2d2b">checkersSize</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classzypp_1_1CompositeFileChecker.html#a47ecd90359c143a39690c975bde79cae">_checkers</a>.size(); }</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00203"></a><span class="lineno"><a class="line" href="classzypp_1_1CompositeFileChecker.html#a47ecd90359c143a39690c975bde79cae"> 203</a></span>  std::list<FileChecker> <a class="code" href="classzypp_1_1CompositeFileChecker.html#a47ecd90359c143a39690c975bde79cae">_checkers</a>;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  };</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00207"></a><span class="lineno"> 207</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="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">FileChecker</a> & obj );</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> } <span class="comment">// namespace zypp</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> <span class="comment"></span><span class="preprocessor">#endif // ZYPP_FILECHECKER_H</span></div><div class="ttc" id="classzypp_1_1NullFileChecker_html_abc0e43683c43a8e0758c42af1643861f"><div class="ttname"><a href="classzypp_1_1NullFileChecker.html#abc0e43683c43a8e0758c42af1643861f">zypp::NullFileChecker::operator()</a></div><div class="ttdeci">void operator()(const Pathname &file) const</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00085">FileChecker.cc:85</a></div></div> <div class="ttc" id="classzypp_1_1NullFileChecker_html"><div class="ttname"><a href="classzypp_1_1NullFileChecker.html">zypp::NullFileChecker</a></div><div class="ttdoc">Checks for nothing Used as the default checker.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00172">FileChecker.h:172</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a0cd164d0fed74d29e8d26da45af5fa91"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a0cd164d0fed74d29e8d26da45af5fa91">zypp::SignatureFileChecker::fileAccepted</a></div><div class="ttdeci">bool fileAccepted() const</div><div class="ttdoc">Return whether the last file passed to operator() was accepted.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00130">FileChecker.h:130</a></div></div> <div class="ttc" id="DefaultIntegral_8h_html"><div class="ttname"><a href="DefaultIntegral_8h.html">DefaultIntegral.h</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html">zypp::SignatureFileChecker</a></div><div class="ttdoc">Checks for the validity of a signature.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00093">FileChecker.h:93</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_1SignatureFileChecker_html_ac4118aabb472371848abddcd5b276e89"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ac4118aabb472371848abddcd5b276e89">zypp::SignatureFileChecker::SignatureFileChecker</a></div><div class="ttdeci">SignatureFileChecker()</div><div class="ttdoc">Default Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00116">FileChecker.cc:116</a></div></div> <div class="ttc" id="classzypp_1_1CompositeFileChecker_html_a47ecd90359c143a39690c975bde79cae"><div class="ttname"><a href="classzypp_1_1CompositeFileChecker.html#a47ecd90359c143a39690c975bde79cae">zypp::CompositeFileChecker::_checkers</a></div><div class="ttdeci">std::list< FileChecker > _checkers</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00203">FileChecker.h:203</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a8bb3cfcc3ad9ce7a27a465deaff78184"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a8bb3cfcc3ad9ce7a27a465deaff78184">zypp::SignatureFileChecker::keyContext</a></div><div class="ttdeci">const KeyContext & keyContext() const</div><div class="ttdoc">Return the current context.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00123">FileChecker.h:123</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_ac60b1519d77430f107f98de120b883cd"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ac60b1519d77430f107f98de120b883cd">zypp::SignatureFileChecker::addPublicKey</a></div><div class="ttdeci">void addPublicKey(const PublicKey &publickey, const KeyContext &keycontext=KeyContext())</div><div class="ttdoc">add a public key to the list of known keys</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00125">FileChecker.cc:125</a></div></div> <div class="ttc" id="CheckSum_8h_html"><div class="ttname"><a href="CheckSum_8h.html">CheckSum.h</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_aafd41ed3bd2ec896e768c921fc582eb6"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#aafd41ed3bd2ec896e768c921fc582eb6">zypp::SignatureFileChecker::_fileAccepted</a></div><div class="ttdeci">DefaultIntegral< bool, false > _fileAccepted</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00164">FileChecker.h:164</a></div></div> <div class="ttc" id="classzypp_1_1ChecksumFileChecker_html_a121c50a1e4fa9966b02fb8afce9b4abc"><div class="ttname"><a href="classzypp_1_1ChecksumFileChecker.html#a121c50a1e4fa9966b02fb8afce9b4abc">zypp::ChecksumFileChecker::operator()</a></div><div class="ttdeci">void operator()(const Pathname &file) const</div><div class="ttdoc">Try to validate the file.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00032">FileChecker.cc:32</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="structzypp_1_1KeyContext_html"><div class="ttname"><a href="structzypp_1_1KeyContext.html">zypp::KeyContext</a></div><div class="ttdef"><b>Definition:</b> <a href="KeyContext_8h_source.html#l00008">KeyContext.h:8</a></div></div> <div class="ttc" id="classzypp_1_1CompositeFileChecker_html_aa7a3dca302d850aee1d7dedbc5538b96"><div class="ttname"><a href="classzypp_1_1CompositeFileChecker.html#aa7a3dca302d850aee1d7dedbc5538b96">zypp::CompositeFileChecker::operator()</a></div><div class="ttdeci">void operator()(const Pathname &file) const</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00091">FileChecker.cc:91</a></div></div> <div class="ttc" id="classzypp_1_1CompositeFileChecker_html_a755f5a4a14b73233afcad5528f03a23b"><div class="ttname"><a href="classzypp_1_1CompositeFileChecker.html#a755f5a4a14b73233afcad5528f03a23b">zypp::CompositeFileChecker::add</a></div><div class="ttdeci">void add(const FileChecker &checker)</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00108">FileChecker.cc:108</a></div></div> <div class="ttc" id="classzypp_1_1CheckSumCheckException_html"><div class="ttname"><a href="classzypp_1_1CheckSumCheckException.html">zypp::CheckSumCheckException</a></div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00047">FileChecker.h:47</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_ad19ae29f2f7a3fa3a455528710c61786"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ad19ae29f2f7a3fa3a455528710c61786">zypp::SignatureFileChecker::_fileValidated</a></div><div class="ttdeci">DefaultIntegral< bool, false > _fileValidated</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00165">FileChecker.h:165</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a57331780d2a764ade8dc30a5bed65159"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a57331780d2a764ade8dc30a5bed65159">zypp::SignatureFileChecker::operator()</a></div><div class="ttdeci">void operator()(const Pathname &file) const</div><div class="ttdoc">Calls KeyRing::verifyFileSignatureWorkflow to verify the file.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00131">FileChecker.cc:131</a></div></div> <div class="ttc" id="classzypp_1_1DefaultIntegral_html"><div class="ttname"><a href="classzypp_1_1DefaultIntegral.html">zypp::DefaultIntegral< bool, false ></a></div></div> <div class="ttc" id="classzypp_1_1CheckSumCheckException_html_adb3ec56bad49e26f0230472aa609e473"><div class="ttname"><a href="classzypp_1_1CheckSumCheckException.html#adb3ec56bad49e26f0230472aa609e473">zypp::CheckSumCheckException::CheckSumCheckException</a></div><div class="ttdeci">CheckSumCheckException(const std::string &msg)</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00050">FileChecker.h:50</a></div></div> <div class="ttc" id="KeyContext_8h_html"><div class="ttname"><a href="KeyContext_8h.html">KeyContext.h</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_aaadf81a304bf4b28e3d9b7eced74ee31"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#aaadf81a304bf4b28e3d9b7eced74ee31">zypp::SignatureFileChecker::ExceptionType</a></div><div class="ttdeci">SignatureCheckException ExceptionType</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00096">FileChecker.h:96</a></div></div> <div class="ttc" id="classzypp_1_1CompositeFileChecker_html"><div class="ttname"><a href="classzypp_1_1CompositeFileChecker.html">zypp::CompositeFileChecker</a></div><div class="ttdoc">Checker composed of more checkers.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00192">FileChecker.h:192</a></div></div> <div class="ttc" id="PathInfo_8h_html"><div class="ttname"><a href="PathInfo_8h.html">PathInfo.h</a></div></div> <div class="ttc" id="classzypp_1_1PublicKey_html"><div class="ttname"><a href="classzypp_1_1PublicKey.html">zypp::PublicKey</a></div><div class="ttdoc">Class representing one GPG Public Key (PublicKeyData + ASCII armored in a tempfile).</div><div class="ttdef"><b>Definition:</b> <a href="PublicKey_8h_source.html#l00272">PublicKey.h:272</a></div></div> <div class="ttc" id="classzypp_1_1Exception_html"><div class="ttname"><a href="classzypp_1_1Exception.html">zypp::Exception</a></div><div class="ttdoc">Base class for Exception.</div><div class="ttdef"><b>Definition:</b> <a href="Exception_8h_source.html#l00145">Exception.h:145</a></div></div> <div class="ttc" id="classzypp_1_1ChecksumFileChecker_html"><div class="ttname"><a href="classzypp_1_1ChecksumFileChecker.html">zypp::ChecksumFileChecker</a></div><div class="ttdoc">Built in file checkers.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00070">FileChecker.h:70</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="classzypp_1_1SignatureFileChecker_html_a9391d2f36b62147a29cfeba0f971f58d"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a9391d2f36b62147a29cfeba0f971f58d">zypp::SignatureFileChecker::fileValidated</a></div><div class="ttdeci">bool fileValidated() const</div><div class="ttdoc">Return whether the last file passed to operator() was actually sucessfully verified.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00137">FileChecker.h:137</a></div></div> <div class="ttc" id="namespacezypp_1_1filesystem_html_a20a3a87c89cc383460b922f54db7235d"><div class="ttname"><a href="namespacezypp_1_1filesystem.html#a20a3a87c89cc383460b922f54db7235d">zypp::filesystem::checksum</a></div><div class="ttdeci">std::string checksum(const Pathname &file, const std::string &algorithm)</div><div class="ttdoc">Compute a files checksum.</div><div class="ttdef"><b>Definition:</b> <a href="PathInfo_8cc_source.html#l01004">PathInfo.cc:1004</a></div></div> <div class="ttc" id="classzypp_1_1FileCheckException_html"><div class="ttname"><a href="classzypp_1_1FileCheckException.html">zypp::FileCheckException</a></div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00039">FileChecker.h:39</a></div></div> <div class="ttc" id="classzypp_1_1SignatureCheckException_html"><div class="ttname"><a href="classzypp_1_1SignatureCheckException.html">zypp::SignatureCheckException</a></div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00055">FileChecker.h:55</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a1b3be1cf399a308b1d9555588e6c2d4e"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a1b3be1cf399a308b1d9555588e6c2d4e">zypp::SignatureFileChecker::_context</a></div><div class="ttdeci">KeyContext _context</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00163">FileChecker.h:163</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_ab00e08c179f020726dd96eec8313dd97"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#ab00e08c179f020726dd96eec8313dd97">zypp::SignatureFileChecker::_signature</a></div><div class="ttdeci">Pathname _signature</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00162">FileChecker.h:162</a></div></div> <div class="ttc" id="classzypp_1_1CompositeFileChecker_html_ac34c66135846fa877babaf563d7c2d2b"><div class="ttname"><a href="classzypp_1_1CompositeFileChecker.html#ac34c66135846fa877babaf563d7c2d2b">zypp::CompositeFileChecker::checkersSize</a></div><div class="ttdeci">int checkersSize() const</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00201">FileChecker.h:201</a></div></div> <div class="ttc" id="classzypp_1_1SignatureCheckException_html_afa623bb200b1a43ba9f6447e39b23c14"><div class="ttname"><a href="classzypp_1_1SignatureCheckException.html#afa623bb200b1a43ba9f6447e39b23c14">zypp::SignatureCheckException::SignatureCheckException</a></div><div class="ttdeci">SignatureCheckException(const std::string &msg)</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00058">FileChecker.h:58</a></div></div> <div class="ttc" id="namespacezypp_html_ae95ba3a6af05a2b35ed49092f78ce2b3"><div class="ttname"><a href="namespacezypp.html#ae95ba3a6af05a2b35ed49092f78ce2b3">zypp::FileChecker</a></div><div class="ttdeci">function< void(const Pathname &file)> FileChecker</div><div class="ttdoc">Functor signature used to check files.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00028">FileChecker.h:28</a></div></div> <div class="ttc" id="classzypp_1_1ChecksumFileChecker_html_ab8dcaf26fb3613c289d0c52498d0e599"><div class="ttname"><a href="classzypp_1_1ChecksumFileChecker.html#ab8dcaf26fb3613c289d0c52498d0e599">zypp::ChecksumFileChecker::_checksum</a></div><div class="ttdeci">CheckSum _checksum</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00087">FileChecker.h:87</a></div></div> <div class="ttc" id="classzypp_1_1filesystem_1_1Pathname_html"><div class="ttname"><a href="classzypp_1_1filesystem_1_1Pathname.html">zypp::filesystem::Pathname</a></div><div class="ttdoc">Pathname.</div><div class="ttdef"><b>Definition:</b> <a href="Pathname_8h_source.html#l00043">Pathname.h:43</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_1ChecksumFileChecker_html_ad891c41b02782e2b8ed40b28cb68c1b2"><div class="ttname"><a href="classzypp_1_1ChecksumFileChecker.html#ad891c41b02782e2b8ed40b28cb68c1b2">zypp::ChecksumFileChecker::ExceptionType</a></div><div class="ttdeci">CheckSumCheckException ExceptionType</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00073">FileChecker.h:73</a></div></div> <div class="ttc" id="Exception_8h_html"><div class="ttname"><a href="Exception_8h.html">Exception.h</a></div></div> <div class="ttc" id="classzypp_1_1CheckSum_html"><div class="ttname"><a href="classzypp_1_1CheckSum.html">zypp::CheckSum</a></div><div class="ttdef"><b>Definition:</b> <a href="CheckSum_8h_source.html#l00033">CheckSum.h:33</a></div></div> <div class="ttc" id="classzypp_1_1ChecksumFileChecker_html_aa72c3808ef4e59438ac80ba451fa291d"><div class="ttname"><a href="classzypp_1_1ChecksumFileChecker.html#aa72c3808ef4e59438ac80ba451fa291d">zypp::ChecksumFileChecker::ChecksumFileChecker</a></div><div class="ttdeci">ChecksumFileChecker(const CheckSum &checksum)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00028">FileChecker.cc:28</a></div></div> <div class="ttc" id="classzypp_1_1SignatureFileChecker_html_a98fb8a830762ee007f6111a67d922fd0"><div class="ttname"><a href="classzypp_1_1SignatureFileChecker.html#a98fb8a830762ee007f6111a67d922fd0">zypp::SignatureFileChecker::setKeyContext</a></div><div class="ttdeci">void setKeyContext(const KeyContext &keycontext)</div><div class="ttdoc">Set context for this checker.</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8cc_source.html#l00119">FileChecker.cc:119</a></div></div> <div class="ttc" id="classzypp_1_1FileCheckException_html_a9da01b99589ad8cfcfe92918153273da"><div class="ttname"><a href="classzypp_1_1FileCheckException.html#a9da01b99589ad8cfcfe92918153273da">zypp::FileCheckException::FileCheckException</a></div><div class="ttdeci">FileCheckException(const std::string &msg)</div><div class="ttdef"><b>Definition:</b> <a href="FileChecker_8h_source.html#l00042">FileChecker.h:42</a></div></div> <div class="ttc" id="classzypp_1_1Exception_html_a90ce3c9322069f3133564a7ddf43cd8d"><div class="ttname"><a href="classzypp_1_1Exception.html#a90ce3c9322069f3133564a7ddf43cd8d">zypp::Exception::msg</a></div><div class="ttdeci">const std::string & msg() const</div><div class="ttdoc">Return the message string provided to the ctor.</div><div class="ttdef"><b>Definition:</b> <a href="Exception_8h_source.html#l00195">Exception.h:195</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="FileChecker_8h.html">FileChecker.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>