<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Exiv2: Exiv2::IoCloser Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceExiv2.html">Exiv2</a>::<a class="el" href="classExiv2_1_1IoCloser.html">IoCloser</a> </div> </div> <div class="contents"> <h1>Exiv2::IoCloser Class Reference</h1><!-- doxytag: class="Exiv2::IoCloser" -->Utility class that closes a <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO.">BasicIo</a> instance upon destruction. Meant to be used as a stack variable in functions that need to ensure <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO.">BasicIo</a> instances get closed. Useful when functions return errors from many locations. <a href="#_details">More...</a> <p> <code>#include <basicio.hpp></code> <p> <div class="dynheader"> Collaboration diagram for Exiv2::IoCloser:</div> <div class="dynsection"> <p><center><img src="classExiv2_1_1IoCloser__coll__graph.png" border="0" usemap="#Exiv2_1_1IoCloser__coll__map" alt="Collaboration graph"></center> <map name="Exiv2_1_1IoCloser__coll__map"> <area shape="rect" id="node2" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO." alt="" coords="11,5,171,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classExiv2_1_1IoCloser-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="72accf64d9ef3d84869f046709ce3a46"></a><!-- doxytag: member="Exiv2::IoCloser::IoCloser" ref="72accf64d9ef3d84869f046709ce3a46" args="(BasicIo &bio)" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IoCloser.html#72accf64d9ef3d84869f046709ce3a46">IoCloser</a> (<a class="el" href="classExiv2_1_1BasicIo.html">BasicIo</a> &bio)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor, takes a <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO.">BasicIo</a> reference. <br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0aedeadca821f9729742963c2f9ec54d"></a><!-- doxytag: member="Exiv2::IoCloser::~IoCloser" ref="0aedeadca821f9729742963c2f9ec54d" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IoCloser.html#0aedeadca821f9729742963c2f9ec54d">~IoCloser</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor, closes the <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO.">BasicIo</a> reference. <br></td></tr> <tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bf6fd92de40b9371b0df6e52ba63016a"></a><!-- doxytag: member="Exiv2::IoCloser::close" ref="bf6fd92de40b9371b0df6e52ba63016a" args="()" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IoCloser.html#bf6fd92de40b9371b0df6e52ba63016a">close</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Close the <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO.">BasicIo</a> if it is open. <br></td></tr> <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="efe0b0d7b2bf97cffac29fa5a388e75b"></a><!-- doxytag: member="Exiv2::IoCloser::bio_" ref="efe0b0d7b2bf97cffac29fa5a388e75b" args="" --> <a class="el" href="classExiv2_1_1BasicIo.html">BasicIo</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1IoCloser.html#efe0b0d7b2bf97cffac29fa5a388e75b">bio_</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO.">BasicIo</a> reference. <br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Utility class that closes a <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO.">BasicIo</a> instance upon destruction. Meant to be used as a stack variable in functions that need to ensure <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO.">BasicIo</a> instances get closed. Useful when functions return errors from many locations. <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="basicio_8hpp.html">basicio.hpp</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jun 25 15:17:50 2009 for Exiv2 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address> </body> </html>