<!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/base/IOStream.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libzypp  <span id="projectnumber">17.9.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',false,false,'search.php','Search'); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('IOStream_8h.html','');}); /* @license-end */ </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> | <a href="#namespaces">Namespaces</a> | <a href="#typedef-members">Typedefs</a> | <a href="#enum-members">Enumerations</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">IOStream.h File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <iosfwd></code><br /> <code>#include <boost/io/ios_state.hpp></code><br /> <code>#include "<a class="el" href="Flags_8h_source.html">zypp/base/Flags.h</a>"</code><br /> <code>#include "<a class="el" href="PtrTypes_8h_source.html">zypp/base/PtrTypes.h</a>"</code><br /> <code>#include "<a class="el" href="Function_8h_source.html">zypp/base/Function.h</a>"</code><br /> <code>#include "<a class="el" href="NonCopyable_8h_source.html">zypp/base/NonCopyable.h</a>"</code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for IOStream.h:</div> <div class="dyncontent"> <div class="center"><img src="IOStream_8h__incl.png" border="0" usemap="#zypp_2base_2IOStream_8h" alt=""/></div> <map name="zypp_2base_2IOStream_8h" id="zypp_2base_2IOStream_8h"> <area shape="rect" title=" " alt="" coords="593,5,752,32"/> <area shape="rect" title=" " alt="" coords="5,319,68,345"/> <area shape="rect" title=" " alt="" coords="763,80,924,107"/> <area shape="rect" href="Flags_8h.html" title=" " alt="" coords="553,80,686,107"/> <area shape="rect" href="PtrTypes_8h.html" title=" " alt="" coords="235,237,388,263"/> <area shape="rect" href="Function_8h.html" title=" " alt="" coords="1195,237,1348,263"/> <area shape="rect" href="NonCopyable_8h.html" title=" " alt="" coords="948,80,1131,107"/> <area shape="rect" href="String_8h.html" title=" " alt="" coords="549,155,687,181"/> <area shape="rect" title=" " alt="" coords="412,237,475,263"/> <area shape="rect" title=" " alt="" coords="499,237,558,263"/> <area shape="rect" title=" " alt="" coords="819,319,876,345"/> <area shape="rect" title=" " alt="" coords="583,237,653,263"/> <area shape="rect" title=" " alt="" coords="677,237,809,263"/> <area shape="rect" title=" " alt="" coords="885,229,1020,271"/> <area shape="rect" href="Easy_8h.html" title=" " alt="" coords="1044,237,1171,263"/> <area shape="rect" title=" " alt="" coords="1021,319,1079,345"/> <area shape="rect" title=" " alt="" coords="92,319,251,345"/> <area shape="rect" title=" " alt="" coords="275,319,433,345"/> <area shape="rect" title=" " alt="" coords="457,319,603,345"/> <area shape="rect" title=" " alt="" coords="628,319,795,345"/> <area shape="rect" title=" " alt="" coords="1104,319,1244,345"/> <area shape="rect" title=" " alt="" coords="1269,319,1386,345"/> <area shape="rect" title=" " alt="" coords="1410,319,1517,345"/> <area shape="rect" title=" " alt="" coords="955,155,1123,181"/> </map> </div> </div><div class="textblock"><div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dyncontent"> <div class="center"><img src="IOStream_8h__dep__incl.png" border="0" usemap="#zypp_2base_2IOStream_8hdep" alt=""/></div> <map name="zypp_2base_2IOStream_8hdep" id="zypp_2base_2IOStream_8hdep"> <area shape="rect" title=" " alt="" coords="2193,5,2351,32"/> <area shape="rect" href="InterProcessMutex_8cc.html" title=" " alt="" coords="5,87,221,114"/> <area shape="rect" href="IOStream_8cc.html" title=" " alt="" coords="245,87,408,114"/> <area shape="rect" href="Sysconfig_8cc.html" title=" " alt="" coords="432,87,595,114"/> <area shape="rect" href="HistoryLog_8cc.html" title=" " alt="" coords="619,87,757,114"/> <area shape="rect" href="KeyRing_8cc.html" title=" " alt="" coords="781,87,901,114"/> <area shape="rect" href="Locks_8cc.html" title=" " alt="" coords="926,87,1031,114"/> <area shape="rect" href="CurlConfig_8cc.html" title=" " alt="" coords="1056,87,1235,114"/> <area shape="rect" href="CheckAccessDeleted_8cc.html" title=" " alt="" coords="1259,87,1487,114"/> <area shape="rect" href="HistoryLogReader_8cc.html" title=" " alt="" coords="1511,87,1734,114"/> <area shape="rect" href="IniParser_8cc.html" title=" " alt="" coords="1758,87,1925,114"/> <area shape="rect" href="ContentFileReader_8cc.html" title=" " alt="" coords="1949,80,2107,121"/> <area shape="rect" href="PathInfo_8cc.html" title=" " alt="" coords="2131,87,2255,114"/> <area shape="rect" href="PluginScript_8cc.html" title=" " alt="" coords="2280,87,2424,114"/> <area shape="rect" href="RepoInfo_8cc.html" title=" " alt="" coords="2448,87,2576,114"/> <area shape="rect" href="sat_2detail_2PoolImpl_8cc.html" title=" " alt="" coords="2600,87,2789,114"/> <area shape="rect" href="SystemCheck_8cc.html" title=" " alt="" coords="2813,80,2944,121"/> <area shape="rect" href="HardLocksFile_8cc.html" title=" " alt="" coords="2969,87,3167,114"/> <area shape="rect" href="Modalias_8cc.html" title=" " alt="" coords="3192,80,3344,121"/> <area shape="rect" href="RequestedLocalesFile_8cc.html" title=" " alt="" coords="3369,80,3575,121"/> <area shape="rect" href="SolvIdentFile_8cc.html" title=" " alt="" coords="3599,87,3793,114"/> <area shape="rect" href="TargetImpl_8cc.html" title=" " alt="" coords="3817,87,3999,114"/> <area shape="rect" href="VendorAttr_8cc.html" title=" " alt="" coords="4023,87,4163,114"/> <area shape="rect" href="ZConfig_8cc.html" title=" " alt="" coords="4187,87,4309,114"/> <area shape="rect" href="ZYppFactory_8cc.html" title=" " alt="" coords="4333,87,4483,114"/> </map> </div> </div> <p><a href="IOStream_8h_source.html">Go to the source code of this file.</a></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">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classzypp_1_1iostr_1_1EachLine.html">zypp::iostr::EachLine</a></td></tr> <tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Simple lineparser: Traverse each line in a file. <a href="classzypp_1_1iostr_1_1EachLine.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> Namespaces</h2></td></tr> <tr class="memitem:namespacezypp"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp.html">zypp</a></td></tr> <tr class="memdesc:namespacezypp"><td class="mdescLeft"> </td><td class="mdescRight">Easy-to use interface to the ZYPP dependency resolver. <br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:namespacezypp_1_1iostr"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html">zypp::iostr</a></td></tr> <tr class="memdesc:namespacezypp_1_1iostr"><td class="mdescLeft"> </td><td class="mdescRight">Iostream related utilities. <br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a> Typedefs</h2></td></tr> <tr class="memitem:a8e5e8920c48f5305147d3b3e6e5e7e50"><td class="memItemLeft" align="right" valign="top">typedef boost::io::ios_base_all_saver </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a8e5e8920c48f5305147d3b3e6e5e7e50">zypp::iostr::IosFmtFlagsSaver</a></td></tr> <tr class="memdesc:a8e5e8920c48f5305147d3b3e6e5e7e50"><td class="mdescLeft"> </td><td class="mdescRight">Save and restore streams <code>width</code>, <code>precision</code> and <code>fmtflags</code>. <a href="namespacezypp_1_1iostr.html#a8e5e8920c48f5305147d3b3e6e5e7e50">More...</a><br /></td></tr> <tr class="separator:a8e5e8920c48f5305147d3b3e6e5e7e50"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> Enumerations</h2></td></tr> <tr class="memitem:a3a6c6bd53df12f5bd19e6cf249256dab"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a3a6c6bd53df12f5bd19e6cf249256dab">zypp::iostr::ParseFlag</a> { <br />   <a class="el" href="namespacezypp_1_1iostr.html#a3a6c6bd53df12f5bd19e6cf249256dabaedc166788f8e344ff11f35d66be9ede0">zypp::iostr::PF_LTRIM</a> = 1 << 0, <a class="el" href="namespacezypp_1_1iostr.html#a3a6c6bd53df12f5bd19e6cf249256daba45021b50bbaa3058b11513bd69df62e0">zypp::iostr::PF_RTRIM</a> = 1 << 1, <a class="el" href="namespacezypp_1_1iostr.html#a3a6c6bd53df12f5bd19e6cf249256daba88c27e17b0abd423c7e586f907dbaa9f">zypp::iostr::PF_TRIM</a> = PF_LTRIM | PF_RTRIM, <a class="el" href="namespacezypp_1_1iostr.html#a3a6c6bd53df12f5bd19e6cf249256daba411b16f725c7a18e8a9d5d403d1e6dcf">zypp::iostr::PF_SKIP_EMPTY</a> = 1 << 2, <br />   <a class="el" href="namespacezypp_1_1iostr.html#a3a6c6bd53df12f5bd19e6cf249256dabaa76770ef9b1cea624d4784420c888f00">zypp::iostr::PF_SKIP_SHARP_COMMENT</a> = 1 << 3 <br /> }</td></tr> <tr class="memdesc:a3a6c6bd53df12f5bd19e6cf249256dab"><td class="mdescLeft"> </td><td class="mdescRight">simpleParseFile modifications before consuming a line. <a href="namespacezypp_1_1iostr.html#a3a6c6bd53df12f5bd19e6cf249256dab">More...</a><br /></td></tr> <tr class="separator:a3a6c6bd53df12f5bd19e6cf249256dab"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a9ebc01b7f87a5d078d0ac84d87407804"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a9ebc01b7f87a5d078d0ac84d87407804">zypp::iostr::getline</a> (std::istream &str)</td></tr> <tr class="memdesc:a9ebc01b7f87a5d078d0ac84d87407804"><td class="mdescLeft"> </td><td class="mdescRight">Read one line from stream. <a href="namespacezypp_1_1iostr.html#a9ebc01b7f87a5d078d0ac84d87407804">More...</a><br /></td></tr> <tr class="separator:a9ebc01b7f87a5d078d0ac84d87407804"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3807dcc209ee089a23589f70c7830b27"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a3807dcc209ee089a23589f70c7830b27">zypp::iostr::copy</a> (std::istream &from_r, std::ostream &to_r)</td></tr> <tr class="memdesc:a3807dcc209ee089a23589f70c7830b27"><td class="mdescLeft"> </td><td class="mdescRight">Copy istream to ostream. <a href="namespacezypp_1_1iostr.html#a3807dcc209ee089a23589f70c7830b27">More...</a><br /></td></tr> <tr class="separator:a3807dcc209ee089a23589f70c7830b27"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9986523d4b3150917cdd82e134a36020"><td class="memItemLeft" align="right" valign="top">std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a9986523d4b3150917cdd82e134a36020">zypp::iostr::copyIndent</a> (std::istream &from_r, std::ostream &to_r, const std::string &indent_r="> ")</td></tr> <tr class="memdesc:a9986523d4b3150917cdd82e134a36020"><td class="mdescLeft"> </td><td class="mdescRight">Copy istream to ostream, prefixing each line with <em>indent_r</em> (default <code>"> "</code> ). <a href="namespacezypp_1_1iostr.html#a9986523d4b3150917cdd82e134a36020">More...</a><br /></td></tr> <tr class="separator:a9986523d4b3150917cdd82e134a36020"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a578192eee759dbab38042466a391bd0e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a578192eee759dbab38042466a391bd0e">zypp::iostr::tee</a> (std::istream &from_r, std::ostream &to1_r, std::ostream &to2_r)</td></tr> <tr class="memdesc:a578192eee759dbab38042466a391bd0e"><td class="mdescLeft"> </td><td class="mdescRight">Copy istream to ostream, prefixing each line with <em>indent_r</em> (default <code>"> "</code> ). <a href="namespacezypp_1_1iostr.html#a578192eee759dbab38042466a391bd0e">More...</a><br /></td></tr> <tr class="separator:a578192eee759dbab38042466a391bd0e"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6bc2e9da670c1a36a5547b6538345cba"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a6bc2e9da670c1a36a5547b6538345cba">zypp::iostr::forEachLine</a> (std::istream &str_r, function< <a class="el" href="classbool.html">bool</a>(int, std::string)> consume_r)</td></tr> <tr class="memdesc:a6bc2e9da670c1a36a5547b6538345cba"><td class="mdescLeft"> </td><td class="mdescRight">Simple lineparser: Call functor <em>consume_r</em> for each line. <a href="namespacezypp_1_1iostr.html#a6bc2e9da670c1a36a5547b6538345cba">More...</a><br /></td></tr> <tr class="separator:a6bc2e9da670c1a36a5547b6538345cba"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad84b3964177cbbf9fee307c892ae1fc0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#ad84b3964177cbbf9fee307c892ae1fc0">zypp::iostr::ZYPP_DECLARE_FLAGS</a> (ParseFlags, ParseFlag)</td></tr> <tr class="separator:ad84b3964177cbbf9fee307c892ae1fc0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a6666c02fad4472f591c63c68b6477886"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a6666c02fad4472f591c63c68b6477886">zypp::iostr::ZYPP_DECLARE_OPERATORS_FOR_FLAGS</a> (ParseFlags)</td></tr> <tr class="separator:a6666c02fad4472f591c63c68b6477886"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a81d7671f198eece2a4cb4eddf59c6879"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#a81d7671f198eece2a4cb4eddf59c6879">zypp::iostr::simpleParseFile</a> (std::istream &str_r, ParseFlags flags_r, function< <a class="el" href="classbool.html">bool</a>(int, std::string)> consume_r)</td></tr> <tr class="memdesc:a81d7671f198eece2a4cb4eddf59c6879"><td class="mdescLeft"> </td><td class="mdescRight">Simple lineparser optionally trimming and skipping comments. <a href="namespacezypp_1_1iostr.html#a81d7671f198eece2a4cb4eddf59c6879">More...</a><br /></td></tr> <tr class="separator:a81d7671f198eece2a4cb4eddf59c6879"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:acae8a150665dc5989f8346ac2bd4dca3"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacezypp_1_1iostr.html#acae8a150665dc5989f8346ac2bd4dca3">zypp::iostr::simpleParseFile</a> (std::istream &str_r, function< <a class="el" href="classbool.html">bool</a>(int, std::string)> consume_r)</td></tr> <tr class="separator:acae8a150665dc5989f8346ac2bd4dca3"><td class="memSeparator" colspan="2"> </td></tr> </table> </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_76651d3a0256a4372f696a008d71ee69.html">base</a></li><li class="navelem"><a class="el" href="IOStream_8h.html">IOStream.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>