Sophie

Sophie

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

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::parser::HistoryLogReader 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('classzypp_1_1parser_1_1HistoryLogReader.html','');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classzypp_1_1parser_1_1HistoryLogReader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">zypp::parser::HistoryLogReader Class Reference<div class="ingroups"><a class="el" href="group__g__ZyppHistory.html">Libzypp History File</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Zypp history file parserReads a zypp history log file and calls the <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a1b095cb01b73f41e8153dd2fd0f1ae78">ProcessData</a> callback passed in the constructor for each valid history line read.  
 <a href="classzypp_1_1parser_1_1HistoryLogReader.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="HistoryLogReader_8h_source.html">HistoryLogReader.h</a>&gt;</code></p>
<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">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structzypp_1_1parser_1_1HistoryLogReader_1_1Impl.html">Impl</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</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:a11ffefcc4f02a0f8021a012d37dd3d94"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a11ffefcc4f02a0f8021a012d37dd3d94">OptionBits</a> { <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a11ffefcc4f02a0f8021a012d37dd3d94ade0b610404bcec96d9095da0dc531d9d">IGNORE_INVALID_ITEMS</a> = (1 &lt;&lt; 0)
 }</td></tr>
<tr class="memdesc:a11ffefcc4f02a0f8021a012d37dd3d94"><td class="mdescLeft">&#160;</td><td class="mdescRight">&lt; Parser option flags  <a href="classzypp_1_1parser_1_1HistoryLogReader.html#a11ffefcc4f02a0f8021a012d37dd3d94">More...</a><br /></td></tr>
<tr class="separator:a11ffefcc4f02a0f8021a012d37dd3d94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b095cb01b73f41e8153dd2fd0f1ae78"><td class="memItemLeft" align="right" valign="top">typedef function&lt; <a class="el" href="classbool.html">bool</a>(const <a class="el" href="classzypp_1_1HistoryLogData.html#a18d5c8c5a9488a599a9a12c44ad4a6e5">HistoryLogData::Ptr</a> &amp;)&gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a1b095cb01b73f41e8153dd2fd0f1ae78">ProcessData</a></td></tr>
<tr class="memdesc:a1b095cb01b73f41e8153dd2fd0f1ae78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback type to consume a single history line split into fields.  <a href="#a1b095cb01b73f41e8153dd2fd0f1ae78">More...</a><br /></td></tr>
<tr class="separator:a1b095cb01b73f41e8153dd2fd0f1ae78"><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:a94cf3ce1227696ac82bca9c04a4a3c1c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a94cf3ce1227696ac82bca9c04a4a3c1c">ZYPP_DECLARE_FLAGS</a> (Options, <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a11ffefcc4f02a0f8021a012d37dd3d94">OptionBits</a>)</td></tr>
<tr class="separator:a94cf3ce1227696ac82bca9c04a4a3c1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad845cad4c342d82dd3d2f2c40b672dfa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#ad845cad4c342d82dd3d2f2c40b672dfa">HistoryLogReader</a> (const <a class="el" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &amp;historyFile_r, const Options &amp;options_r, const <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a1b095cb01b73f41e8153dd2fd0f1ae78">ProcessData</a> &amp;callback_r)</td></tr>
<tr class="memdesc:ad845cad4c342d82dd3d2f2c40b672dfa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ctor taking file to parse and data consumer callback.  <a href="#ad845cad4c342d82dd3d2f2c40b672dfa">More...</a><br /></td></tr>
<tr class="separator:ad845cad4c342d82dd3d2f2c40b672dfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54bdb6ff81fcc5155b05c52f995fc0d3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a54bdb6ff81fcc5155b05c52f995fc0d3">~HistoryLogReader</a> ()</td></tr>
<tr class="separator:a54bdb6ff81fcc5155b05c52f995fc0d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9392299f21b1021f72b47ef699db526e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a9392299f21b1021f72b47ef699db526e">readAll</a> (const <a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a> &amp;progress=<a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a>())</td></tr>
<tr class="memdesc:a9392299f21b1021f72b47ef699db526e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the whole log file.  <a href="#a9392299f21b1021f72b47ef699db526e">More...</a><br /></td></tr>
<tr class="separator:a9392299f21b1021f72b47ef699db526e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e78a50c7ee32e9a2219526a867f439d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a4e78a50c7ee32e9a2219526a867f439d">readFrom</a> (const <a class="el" href="classzypp_1_1Date.html">Date</a> &amp;date, const <a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a> &amp;progress=<a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a>())</td></tr>
<tr class="memdesc:a4e78a50c7ee32e9a2219526a867f439d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read log from specified <em>date</em>.  <a href="#a4e78a50c7ee32e9a2219526a867f439d">More...</a><br /></td></tr>
<tr class="separator:a4e78a50c7ee32e9a2219526a867f439d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbe9941064971cb1675b30d5b070dc6a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#afbe9941064971cb1675b30d5b070dc6a">readFromTo</a> (const <a class="el" href="classzypp_1_1Date.html">Date</a> &amp;fromDate, const <a class="el" href="classzypp_1_1Date.html">Date</a> &amp;toDate, const <a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a> &amp;progress=<a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a>())</td></tr>
<tr class="memdesc:afbe9941064971cb1675b30d5b070dc6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read log between <em>fromDate</em> and <em>toDate</em>.  <a href="#afbe9941064971cb1675b30d5b070dc6a">More...</a><br /></td></tr>
<tr class="separator:afbe9941064971cb1675b30d5b070dc6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a356c9db32d74eae9e739bd19b01ef536"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a356c9db32d74eae9e739bd19b01ef536">setIgnoreInvalidItems</a> (<a class="el" href="classbool.html">bool</a> ignoreInvalid=false)</td></tr>
<tr class="memdesc:a356c9db32d74eae9e739bd19b01ef536"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the reader to ignore invalid log entries and continue with the rest.  <a href="#a356c9db32d74eae9e739bd19b01ef536">More...</a><br /></td></tr>
<tr class="separator:a356c9db32d74eae9e739bd19b01ef536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62a61c074d54d856a8e433bd763fbce5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a62a61c074d54d856a8e433bd763fbce5">ignoreInvalidItems</a> () const</td></tr>
<tr class="memdesc:a62a61c074d54d856a8e433bd763fbce5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the reader is set to ignore invalid log entries.  <a href="#a62a61c074d54d856a8e433bd763fbce5">More...</a><br /></td></tr>
<tr class="separator:a62a61c074d54d856a8e433bd763fbce5"><td class="memSeparator" colspan="2">&#160;</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:a8b102db9f9f9eaba12fa5c494127a91c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structzypp_1_1RW__pointer.html">RW_pointer</a>&lt; <a class="el" href="structzypp_1_1parser_1_1HistoryLogReader_1_1Impl.html">Impl</a>, <a class="el" href="structzypp_1_1rw__pointer_1_1Scoped.html">rw_pointer::Scoped</a>&lt; <a class="el" href="structzypp_1_1parser_1_1HistoryLogReader_1_1Impl.html">Impl</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a8b102db9f9f9eaba12fa5c494127a91c">_pimpl</a></td></tr>
<tr class="separator:a8b102db9f9f9eaba12fa5c494127a91c"><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>Zypp history file parser</p>
<p>Reads a zypp history log file and calls the <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a1b095cb01b73f41e8153dd2fd0f1ae78">ProcessData</a> callback passed in the constructor for each valid history line read. </p>
<p>The callbacks return value indicates whether to continue parsing.</p>
<div class="fragment"><div class="line">std::vector&lt;HistoryLogData::Ptr&gt; history;</div><div class="line">parser::HistoryLogReader parser( <a class="code" href="classzypp_1_1ZConfig.html#a9b986f2c40a1aa9e1a2aea3d299210d1">ZConfig::instance</a>().historyLogFile(),</div><div class="line">                                 HistoryLogReader::Options(),</div><div class="line">  [&amp;history]( <a class="code" href="classzypp_1_1HistoryLogData.html#a18d5c8c5a9488a599a9a12c44ad4a6e5">HistoryLogData::Ptr</a> ptr )-&gt;<span class="keywordtype">bool</span> {</div><div class="line">    history.push_back( ptr );</div><div class="line">    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line">  } );</div><div class="line">parser.readAll();</div><div class="line">...</div><div class="line">if ( history[0]-&gt;action() == <a class="code" href="structzypp_1_1HistoryActionID.html#af118b63cc3425e8b65c26d81473dd9c6">HistoryActionID::INSTALL</a> )</div><div class="line">{</div><div class="line">  <span class="comment">// generic access to data fields plain string values:</span></div><div class="line">  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> &lt;&lt; (*p)[<a class="code" href="classzypp_1_1HistoryLogDataInstall.html#a8cdc7c93dd8fe537eb5d4b6b090cc499a2e09fe1c4f402d34e8ff3d21aaa11367">HistoryLogDataInstall::USERDATA_INDEX</a>] &lt;&lt; endl;</div><div class="line"></div><div class="line">  <span class="comment">// The same maybe more convenient though derived classes:</span></div><div class="line">  <a class="code" href="classzypp_1_1HistoryLogDataInstall.html#afa65a35298699e35e4fcaff3ff089c96">HistoryLogDataInstall::Ptr</a> ip( dynamic_pointer_cast&lt;HistoryLogDataInstall&gt;( p ) );</div><div class="line">  <a class="code" href="group__ZYPP__BASE__LOGGER__MACROS.html#ga552f8ec9d8e5b4efa04839a129104818">MIL</a> &lt;&lt; ip-&gt;userdata() &lt;&lt; endl;</div><div class="line">}</div></div><!-- fragment --> <dl class="section see"><dt>See also</dt><dd><a class="el" href="classzypp_1_1HistoryLogData.html">HistoryLogData</a> for how to access the individual data fields. <pre class="fragment"></pre> </dd></dl>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8h_source.html#l00066">66</a> of file <a class="el" href="HistoryLogReader_8h_source.html">HistoryLogReader.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a1b095cb01b73f41e8153dd2fd0f1ae78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b095cb01b73f41e8153dd2fd0f1ae78">&#9670;&nbsp;</a></span>ProcessData</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef function&lt; <a class="el" href="classbool.html">bool</a>( const <a class="el" href="classzypp_1_1HistoryLogData.html#a18d5c8c5a9488a599a9a12c44ad4a6e5">HistoryLogData::Ptr</a> &amp; )&gt; <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a1b095cb01b73f41e8153dd2fd0f1ae78">zypp::parser::HistoryLogReader::ProcessData</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Callback type to consume a single history line split into fields. </p>
<p>The return value indicates whether to continue parsing. </p>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8h_source.html#l00080">80</a> of file <a class="el" href="HistoryLogReader_8h_source.html">HistoryLogReader.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a11ffefcc4f02a0f8021a012d37dd3d94"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11ffefcc4f02a0f8021a012d37dd3d94">&#9670;&nbsp;</a></span>OptionBits</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a11ffefcc4f02a0f8021a012d37dd3d94">zypp::parser::HistoryLogReader::OptionBits</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>&lt; Parser option flags </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a11ffefcc4f02a0f8021a012d37dd3d94ade0b610404bcec96d9095da0dc531d9d"></a>IGNORE_INVALID_ITEMS&#160;</td><td class="fielddoc"><p>ignore invalid items and continue parsing </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8h_source.html#l00070">70</a> of file <a class="el" href="HistoryLogReader_8h_source.html">HistoryLogReader.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad845cad4c342d82dd3d2f2c40b672dfa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad845cad4c342d82dd3d2f2c40b672dfa">&#9670;&nbsp;</a></span>HistoryLogReader()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zypp::parser::HistoryLogReader::HistoryLogReader </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1filesystem_1_1Pathname.html">Pathname</a> &amp;&#160;</td>
          <td class="paramname"><em>historyFile_r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Options &amp;&#160;</td>
          <td class="paramname"><em>options_r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a1b095cb01b73f41e8153dd2fd0f1ae78">ProcessData</a> &amp;&#160;</td>
          <td class="paramname"><em>callback_r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Ctor taking file to parse and data consumer callback. </p>
<p>As <em>options_r</em> argument pass <code>HistoryLogReader::Options()</code> to use the default stettings, or an OR'ed combination of <a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a11ffefcc4f02a0f8021a012d37dd3d94">OptionBits</a>. </p>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8cc_source.html#l00199">199</a> of file <a class="el" href="HistoryLogReader_8cc_source.html">HistoryLogReader.cc</a>.</p>

</div>
</div>
<a id="a54bdb6ff81fcc5155b05c52f995fc0d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54bdb6ff81fcc5155b05c52f995fc0d3">&#9670;&nbsp;</a></span>~HistoryLogReader()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zypp::parser::HistoryLogReader::~HistoryLogReader </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8cc_source.html#l00203">203</a> of file <a class="el" href="HistoryLogReader_8cc_source.html">HistoryLogReader.cc</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a94cf3ce1227696ac82bca9c04a4a3c1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94cf3ce1227696ac82bca9c04a4a3c1c">&#9670;&nbsp;</a></span>ZYPP_DECLARE_FLAGS()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">zypp::parser::HistoryLogReader::ZYPP_DECLARE_FLAGS </td>
          <td>(</td>
          <td class="paramtype">Options&#160;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#a11ffefcc4f02a0f8021a012d37dd3d94">OptionBits</a>&#160;</td>
          <td class="paramname">&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9392299f21b1021f72b47ef699db526e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9392299f21b1021f72b47ef699db526e">&#9670;&nbsp;</a></span>readAll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void zypp::parser::HistoryLogReader::readAll </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a> &amp;&#160;</td>
          <td class="paramname"><em>progress</em> = <code><a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a>()</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read the whole log file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">progress</td><td>An optional progress data receiver function. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8cc_source.html#l00212">212</a> of file <a class="el" href="HistoryLogReader_8cc_source.html">HistoryLogReader.cc</a>.</p>

</div>
</div>
<a id="a4e78a50c7ee32e9a2219526a867f439d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e78a50c7ee32e9a2219526a867f439d">&#9670;&nbsp;</a></span>readFrom()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void zypp::parser::HistoryLogReader::readFrom </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1Date.html">Date</a> &amp;&#160;</td>
          <td class="paramname"><em>date</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a> &amp;&#160;</td>
          <td class="paramname"><em>progress</em> = <code><a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read log from specified <em>date</em>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">date</td><td><a class="el" href="classzypp_1_1Date.html" title="Store and operate on date (time_t).">Date</a> from which to read. </td></tr>
    <tr><td class="paramname">progress</td><td>An optional progress data receiver function.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classzypp_1_1parser_1_1HistoryLogReader.html#afbe9941064971cb1675b30d5b070dc6a" title="Read log between fromDate and toDate.">readFromTo()</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8cc_source.html#l00215">215</a> of file <a class="el" href="HistoryLogReader_8cc_source.html">HistoryLogReader.cc</a>.</p>

</div>
</div>
<a id="afbe9941064971cb1675b30d5b070dc6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afbe9941064971cb1675b30d5b070dc6a">&#9670;&nbsp;</a></span>readFromTo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void zypp::parser::HistoryLogReader::readFromTo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1Date.html">Date</a> &amp;&#160;</td>
          <td class="paramname"><em>fromDate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1Date.html">Date</a> &amp;&#160;</td>
          <td class="paramname"><em>toDate</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a> &amp;&#160;</td>
          <td class="paramname"><em>progress</em> = <code><a class="el" href="classzypp_1_1ProgressData.html#a89143a717926c1fa891ba91f07ad7aa8">ProgressData::ReceiverFnc</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read log between <em>fromDate</em> and <em>toDate</em>. </p>
<p>The date comparison's precision goes to seconds. Omitted time parts get replaced by zeroes, so if e.g. the time is not specified at all, the date means midnight of the specified date. So</p>
<p><code> fromDate = <a class="el" href="classzypp_1_1Date.html" title="Store and operate on date (time_t).">Date</a>("2009-01-01", "%Y-%m-%d"); toDate = <a class="el" href="classzypp_1_1Date.html" title="Store and operate on date (time_t).">Date</a>("2009-01-02", "%Y-%m-%d"); </code></p>
<p>will yield log entries from midnight of January, 1st untill one second before midnight of January, 2nd.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fromDate</td><td><a class="el" href="classzypp_1_1Date.html" title="Store and operate on date (time_t).">Date</a> from which to read. </td></tr>
    <tr><td class="paramname">toDate</td><td><a class="el" href="classzypp_1_1Date.html" title="Store and operate on date (time_t).">Date</a> on which to stop reading. </td></tr>
    <tr><td class="paramname">progress</td><td>An optional progress data receiver function. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8cc_source.html#l00218">218</a> of file <a class="el" href="HistoryLogReader_8cc_source.html">HistoryLogReader.cc</a>.</p>

</div>
</div>
<a id="a356c9db32d74eae9e739bd19b01ef536"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a356c9db32d74eae9e739bd19b01ef536">&#9670;&nbsp;</a></span>setIgnoreInvalidItems()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void zypp::parser::HistoryLogReader::setIgnoreInvalidItems </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbool.html">bool</a>&#160;</td>
          <td class="paramname"><em>ignoreInvalid</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the reader to ignore invalid log entries and continue with the rest. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ignoreInvalid</td><td><code>true</code> will cause the reader to ignore invalid entries </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8cc_source.html#l00206">206</a> of file <a class="el" href="HistoryLogReader_8cc_source.html">HistoryLogReader.cc</a>.</p>

</div>
</div>
<a id="a62a61c074d54d856a8e433bd763fbce5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62a61c074d54d856a8e433bd763fbce5">&#9670;&nbsp;</a></span>ignoreInvalidItems()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbool.html">bool</a> zypp::parser::HistoryLogReader::ignoreInvalidItems </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Whether the reader is set to ignore invalid log entries. </p>
<dl class="section see"><dt>See also</dt><dd>setIngoreInvalidItems() </dd></dl>

<p class="definition">Definition at line <a class="el" href="HistoryLogReader_8cc_source.html#l00209">209</a> of file <a class="el" href="HistoryLogReader_8cc_source.html">HistoryLogReader.cc</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a8b102db9f9f9eaba12fa5c494127a91c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b102db9f9f9eaba12fa5c494127a91c">&#9670;&nbsp;</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>&lt;<a class="el" href="structzypp_1_1parser_1_1HistoryLogReader_1_1Impl.html">Impl</a>,<a class="el" href="structzypp_1_1rw__pointer_1_1Scoped.html">rw_pointer::Scoped</a>&lt;<a class="el" href="structzypp_1_1parser_1_1HistoryLogReader_1_1Impl.html">Impl</a>&gt; &gt; zypp::parser::HistoryLogReader::_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="HistoryLogReader_8h_source.html#l00144">144</a> of file <a class="el" href="HistoryLogReader_8h_source.html">HistoryLogReader.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="HistoryLogReader_8h_source.html">HistoryLogReader.h</a></li>
<li>zypp/parser/<a class="el" href="HistoryLogReader_8cc_source.html">HistoryLogReader.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_1HistoryLogReader.html">HistoryLogReader</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>