Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates > by-pkgid > 8b93c7974abbd359ec3a5ea81eee3220 > files > 261

exiv2-doc-0.24-5.2.mga5.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8"/>
<title>Exiv2: Exiv2::FileIo 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="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
   <div id="projectname">Exiv2
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;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>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceExiv2.html">Exiv2</a></li><li class="navelem"><a class="el" href="classExiv2_1_1FileIo.html">FileIo</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="classExiv2_1_1FileIo-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Exiv2::FileIo Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provides binary file IO by implementing the <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> interface.  
 <a href="classExiv2_1_1FileIo.html#details">More...</a></p>

<p><code>#include &lt;basicio.hpp&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Exiv2::FileIo:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classExiv2_1_1FileIo__inherit__graph.png" border="0" usemap="#Exiv2_1_1FileIo_inherit__map" alt="Inheritance graph"/></div>
<map name="Exiv2_1_1FileIo_inherit__map" id="Exiv2_1_1FileIo_inherit__map">
<area shape="rect" id="node2" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. " alt="" coords="5,5,168,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for Exiv2::FileIo:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classExiv2_1_1FileIo__coll__graph.png" border="0" usemap="#Exiv2_1_1FileIo_coll__map" alt="Collaboration graph"/></div>
<map name="Exiv2_1_1FileIo_coll__map" id="Exiv2_1_1FileIo_coll__map">
<area shape="rect" id="node2" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. " alt="" coords="5,5,168,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<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 &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo_1_1Impl.html">Impl</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="namespaceExiv2_1_1Internal.html" title="Contains internal objects which are not published and are not part of the libexiv2 API...">Internal</a> Pimpl structure of class <a class="el" href="classExiv2_1_1FileIo.html" title="Provides binary file IO by implementing the BasicIo interface. ">FileIo</a>.  <a href="classExiv2_1_1FileIo_1_1Impl.html#details">More...</a><br /></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-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Creators</div></td></tr>
<tr class="memitem:a940ebd4fc3630f31c59adf99a52824c3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a940ebd4fc3630f31c59adf99a52824c3">FileIo</a> (const std::string &amp;<a class="el" href="classExiv2_1_1FileIo.html#ad4e63c22394f5cc3597a3d175cfbcc58">path</a>)</td></tr>
<tr class="memdesc:a940ebd4fc3630f31c59adf99a52824c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor that accepts the file path on which IO will be performed. The constructor does not open the file, and therefore never failes.  <a href="#a940ebd4fc3630f31c59adf99a52824c3">More...</a><br /></td></tr>
<tr class="separator:a940ebd4fc3630f31c59adf99a52824c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a697adf86c426ab897c85eaaa8494f6a4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a697adf86c426ab897c85eaaa8494f6a4"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a697adf86c426ab897c85eaaa8494f6a4">~FileIo</a> ()</td></tr>
<tr class="memdesc:a697adf86c426ab897c85eaaa8494f6a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. Flushes and closes an open file. <br /></td></tr>
<tr class="separator:a697adf86c426ab897c85eaaa8494f6a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Manipulators</div></td></tr>
<tr class="memitem:a1793ddca7f8c94619ceae7a127da73c2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a1793ddca7f8c94619ceae7a127da73c2">open</a> (const std::string &amp;mode)</td></tr>
<tr class="memdesc:a1793ddca7f8c94619ceae7a127da73c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open the file using using the specified mode.  <a href="#a1793ddca7f8c94619ceae7a127da73c2">More...</a><br /></td></tr>
<tr class="separator:a1793ddca7f8c94619ceae7a127da73c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82a0cd197da227242ad8fcc50a70d29b"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a82a0cd197da227242ad8fcc50a70d29b">open</a> ()</td></tr>
<tr class="memdesc:a82a0cd197da227242ad8fcc50a70d29b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Open the file using using the default access mode of "rb". This method can also be used to "reopen" a file which will flush any unwritten data and reset the IO position to the start.  <a href="#a82a0cd197da227242ad8fcc50a70d29b">More...</a><br /></td></tr>
<tr class="separator:a82a0cd197da227242ad8fcc50a70d29b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0a881364b273ff14fb90c9375e9378b"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#ae0a881364b273ff14fb90c9375e9378b">close</a> ()</td></tr>
<tr class="memdesc:ae0a881364b273ff14fb90c9375e9378b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flush and unwritten data and close the file . It is safe to call close on an already closed instance.  <a href="#ae0a881364b273ff14fb90c9375e9378b">More...</a><br /></td></tr>
<tr class="separator:ae0a881364b273ff14fb90c9375e9378b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b3d5f5a5b4b7f9d3d8cec46a4ad95f7"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a5b3d5f5a5b4b7f9d3d8cec46a4ad95f7">write</a> (const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *data, long wcount)</td></tr>
<tr class="memdesc:a5b3d5f5a5b4b7f9d3d8cec46a4ad95f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data to the file. The file position is advanced by the number of bytes written.  <a href="#a5b3d5f5a5b4b7f9d3d8cec46a4ad95f7">More...</a><br /></td></tr>
<tr class="separator:a5b3d5f5a5b4b7f9d3d8cec46a4ad95f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad388515b87717088238dca8d71e75470"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#ad388515b87717088238dca8d71e75470">write</a> (<a class="el" href="classExiv2_1_1BasicIo.html">BasicIo</a> &amp;src)</td></tr>
<tr class="memdesc:ad388515b87717088238dca8d71e75470"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data that is read from another <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> instance to the file. The file position is advanced by the number of bytes written.  <a href="#ad388515b87717088238dca8d71e75470">More...</a><br /></td></tr>
<tr class="separator:ad388515b87717088238dca8d71e75470"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d982468386b392b34b5ee8142b73396"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a5d982468386b392b34b5ee8142b73396">putb</a> (<a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> data)</td></tr>
<tr class="memdesc:a5d982468386b392b34b5ee8142b73396"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write one byte to the file. The file position is advanced by one byte.  <a href="#a5d982468386b392b34b5ee8142b73396">More...</a><br /></td></tr>
<tr class="separator:a5d982468386b392b34b5ee8142b73396"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c7364fbbdc740ec0736da33ad9a82f0"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classExiv2_1_1DataBuf.html">DataBuf</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a5c7364fbbdc740ec0736da33ad9a82f0">read</a> (long rcount)</td></tr>
<tr class="memdesc:a5c7364fbbdc740ec0736da33ad9a82f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read data from the file. Reading starts at the current file position and the position is advanced by the number of bytes read.  <a href="#a5c7364fbbdc740ec0736da33ad9a82f0">More...</a><br /></td></tr>
<tr class="separator:a5c7364fbbdc740ec0736da33ad9a82f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23f598a52577e98be9f4292518ba6198"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a23f598a52577e98be9f4292518ba6198">read</a> (<a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *buf, long rcount)</td></tr>
<tr class="memdesc:a23f598a52577e98be9f4292518ba6198"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read data from the file. Reading starts at the current file position and the position is advanced by the number of bytes read.  <a href="#a23f598a52577e98be9f4292518ba6198">More...</a><br /></td></tr>
<tr class="separator:a23f598a52577e98be9f4292518ba6198"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b211213f0c2e3b9153a69f67c15ab47"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a7b211213f0c2e3b9153a69f67c15ab47">getb</a> ()</td></tr>
<tr class="memdesc:a7b211213f0c2e3b9153a69f67c15ab47"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read one byte from the file. The file position is advanced by one byte.  <a href="#a7b211213f0c2e3b9153a69f67c15ab47">More...</a><br /></td></tr>
<tr class="separator:a7b211213f0c2e3b9153a69f67c15ab47"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7820fe3bdac99ff4a78dccccba1eed10"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a7820fe3bdac99ff4a78dccccba1eed10">transfer</a> (<a class="el" href="classExiv2_1_1BasicIo.html">BasicIo</a> &amp;src)</td></tr>
<tr class="memdesc:a7820fe3bdac99ff4a78dccccba1eed10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the contents of the file and then transfer data from the <em>src</em> <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> object into the empty file.  <a href="#a7820fe3bdac99ff4a78dccccba1eed10">More...</a><br /></td></tr>
<tr class="separator:a7820fe3bdac99ff4a78dccccba1eed10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3f07fc65378860f0b4fe048a398a1bf"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#af3f07fc65378860f0b4fe048a398a1bf">seek</a> (long offset, <a class="el" href="classExiv2_1_1BasicIo.html#a1d23c3bf7618f2ee6ebb5cf033b10911">Position</a> pos)</td></tr>
<tr class="memdesc:af3f07fc65378860f0b4fe048a398a1bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move the current file position.  <a href="#af3f07fc65378860f0b4fe048a398a1bf">More...</a><br /></td></tr>
<tr class="separator:af3f07fc65378860f0b4fe048a398a1bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abacf2e7547c849c8809d472872c9a3a2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#abacf2e7547c849c8809d472872c9a3a2">mmap</a> (bool isWriteable=false)</td></tr>
<tr class="memdesc:abacf2e7547c849c8809d472872c9a3a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Map the file into the process's address space. The file must be open before <a class="el" href="classExiv2_1_1FileIo.html#abacf2e7547c849c8809d472872c9a3a2" title="Map the file into the process&#39;s address space. The file must be open before mmap() is called...">mmap()</a> is called. If the mapped area is writeable, changes may not be written back to the underlying file until <a class="el" href="classExiv2_1_1FileIo.html#ac23e31007bdcf3d4e7f17bc2b0341759" title="Remove a mapping established with mmap(). If the mapped area is writeable, this ensures that changes ...">munmap()</a> is called. The pointer is valid only as long as the <a class="el" href="classExiv2_1_1FileIo.html" title="Provides binary file IO by implementing the BasicIo interface. ">FileIo</a> object exists.  <a href="#abacf2e7547c849c8809d472872c9a3a2">More...</a><br /></td></tr>
<tr class="separator:abacf2e7547c849c8809d472872c9a3a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac23e31007bdcf3d4e7f17bc2b0341759"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#ac23e31007bdcf3d4e7f17bc2b0341759">munmap</a> ()</td></tr>
<tr class="memdesc:ac23e31007bdcf3d4e7f17bc2b0341759"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove a mapping established with <a class="el" href="classExiv2_1_1FileIo.html#abacf2e7547c849c8809d472872c9a3a2" title="Map the file into the process&#39;s address space. The file must be open before mmap() is called...">mmap()</a>. If the mapped area is writeable, this ensures that changes are written back to the underlying file.  <a href="#ac23e31007bdcf3d4e7f17bc2b0341759">More...</a><br /></td></tr>
<tr class="separator:ac23e31007bdcf3d4e7f17bc2b0341759"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Accessors</div></td></tr>
<tr class="memitem:abf285ea310f0c53d3107de6ba6e518db"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#abf285ea310f0c53d3107de6ba6e518db">tell</a> () const </td></tr>
<tr class="memdesc:abf285ea310f0c53d3107de6ba6e518db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the current file position.  <a href="#abf285ea310f0c53d3107de6ba6e518db">More...</a><br /></td></tr>
<tr class="separator:abf285ea310f0c53d3107de6ba6e518db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a661e30ac842bbbeedef11aa9e1454f6d"><td class="memItemLeft" align="right" valign="top">virtual long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a661e30ac842bbbeedef11aa9e1454f6d">size</a> () const </td></tr>
<tr class="memdesc:a661e30ac842bbbeedef11aa9e1454f6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Flush any buffered writes and get the current file size in bytes.  <a href="#a661e30ac842bbbeedef11aa9e1454f6d">More...</a><br /></td></tr>
<tr class="separator:a661e30ac842bbbeedef11aa9e1454f6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abebb141803e349cdfcd36e8b621fdcb7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abebb141803e349cdfcd36e8b621fdcb7"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#abebb141803e349cdfcd36e8b621fdcb7">isopen</a> () const </td></tr>
<tr class="memdesc:abebb141803e349cdfcd36e8b621fdcb7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the file is open, otherwise false. <br /></td></tr>
<tr class="separator:abebb141803e349cdfcd36e8b621fdcb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a5ad7cda1dffde07d1a0d37b71011e8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6a5ad7cda1dffde07d1a0d37b71011e8"></a>
virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a6a5ad7cda1dffde07d1a0d37b71011e8">error</a> () const </td></tr>
<tr class="memdesc:a6a5ad7cda1dffde07d1a0d37b71011e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns 0 if the file is in a valid state, otherwise nonzero. <br /></td></tr>
<tr class="separator:a6a5ad7cda1dffde07d1a0d37b71011e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31d22eb7249daef85cafff5f9ab254b9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a31d22eb7249daef85cafff5f9ab254b9"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#a31d22eb7249daef85cafff5f9ab254b9">eof</a> () const </td></tr>
<tr class="memdesc:a31d22eb7249daef85cafff5f9ab254b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the file position has reach the end, otherwise false. <br /></td></tr>
<tr class="separator:a31d22eb7249daef85cafff5f9ab254b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4e63c22394f5cc3597a3d175cfbcc58"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4e63c22394f5cc3597a3d175cfbcc58"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#ad4e63c22394f5cc3597a3d175cfbcc58">path</a> () const </td></tr>
<tr class="memdesc:ad4e63c22394f5cc3597a3d175cfbcc58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the path of the file. <br /></td></tr>
<tr class="separator:ad4e63c22394f5cc3597a3d175cfbcc58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affc1034970489c7734cfefed90b4d8d1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classExiv2_1_1BasicIo.html#af8f989522925b884d8c9d3a257265fa1">BasicIo::AutoPtr</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1FileIo.html#affc1034970489c7734cfefed90b4d8d1">temporary</a> () const </td></tr>
<tr class="memdesc:affc1034970489c7734cfefed90b4d8d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a temporary data storage location. The actual type returned depends upon the size of the file represented a <a class="el" href="classExiv2_1_1FileIo.html" title="Provides binary file IO by implementing the BasicIo interface. ">FileIo</a> object. For small files, a <a class="el" href="classExiv2_1_1MemIo.html" title="Provides binary IO on blocks of memory by implementing the BasicIo interface. A copy-on-write impleme...">MemIo</a> is returned while for large files a <a class="el" href="classExiv2_1_1FileIo.html" title="Provides binary file IO by implementing the BasicIo interface. ">FileIo</a> is returned. Callers should not rely on this behavior, however, since it may change.  <a href="#affc1034970489c7734cfefed90b4d8d1">More...</a><br /></td></tr>
<tr class="separator:affc1034970489c7734cfefed90b4d8d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classExiv2_1_1BasicIo"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classExiv2_1_1BasicIo')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classExiv2_1_1BasicIo.html">Exiv2::BasicIo</a></td></tr>
<tr class="memitem:a85137a48df4f7503e6197711b6021203 inherit pub_methods_classExiv2_1_1BasicIo"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85137a48df4f7503e6197711b6021203"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1BasicIo.html#a85137a48df4f7503e6197711b6021203">~BasicIo</a> ()</td></tr>
<tr class="memdesc:a85137a48df4f7503e6197711b6021203 inherit pub_methods_classExiv2_1_1BasicIo"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a85137a48df4f7503e6197711b6021203 inherit pub_methods_classExiv2_1_1BasicIo"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classExiv2_1_1BasicIo"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classExiv2_1_1BasicIo')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classExiv2_1_1BasicIo.html">Exiv2::BasicIo</a></td></tr>
<tr class="memitem:a1d23c3bf7618f2ee6ebb5cf033b10911 inherit pub_types_classExiv2_1_1BasicIo"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1d23c3bf7618f2ee6ebb5cf033b10911"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1BasicIo.html#a1d23c3bf7618f2ee6ebb5cf033b10911">Position</a> { <b>beg</b>, 
<b>cur</b>, 
<b>end</b>
 }</td></tr>
<tr class="memdesc:a1d23c3bf7618f2ee6ebb5cf033b10911"><td class="mdescLeft">&#160;</td><td class="mdescRight">Seek starting positions. <br /></td></tr>
<tr class="separator:a1d23c3bf7618f2ee6ebb5cf033b10911 inherit pub_types_classExiv2_1_1BasicIo"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8f989522925b884d8c9d3a257265fa1 inherit pub_types_classExiv2_1_1BasicIo"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af8f989522925b884d8c9d3a257265fa1"></a>
typedef std::auto_ptr&lt; <a class="el" href="classExiv2_1_1BasicIo.html">BasicIo</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1BasicIo.html#af8f989522925b884d8c9d3a257265fa1">AutoPtr</a></td></tr>
<tr class="memdesc:af8f989522925b884d8c9d3a257265fa1 inherit pub_types_classExiv2_1_1BasicIo"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> auto_ptr type. <br /></td></tr>
<tr class="separator:af8f989522925b884d8c9d3a257265fa1 inherit pub_types_classExiv2_1_1BasicIo"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_classExiv2_1_1BasicIo"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classExiv2_1_1BasicIo')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="classExiv2_1_1BasicIo.html">Exiv2::BasicIo</a></td></tr>
<tr class="memitem:ac726bef377a5da282b0f2cadb5b779be inherit pro_methods_classExiv2_1_1BasicIo"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac726bef377a5da282b0f2cadb5b779be"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classExiv2_1_1BasicIo.html#ac726bef377a5da282b0f2cadb5b779be">BasicIo</a> ()</td></tr>
<tr class="memdesc:ac726bef377a5da282b0f2cadb5b779be inherit pro_methods_classExiv2_1_1BasicIo"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default Constructor. <br /></td></tr>
<tr class="separator:ac726bef377a5da282b0f2cadb5b779be inherit pro_methods_classExiv2_1_1BasicIo"><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>Provides binary file IO by implementing the <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> interface. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a940ebd4fc3630f31c59adf99a52824c3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Exiv2::FileIo::FileIo </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor that accepts the file path on which IO will be performed. The constructor does not open the file, and therefore never failes. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>The full path of a file </td></tr>
  </table>
  </dd>
</dl>

<p>Referenced by <a class="el" href="classExiv2_1_1FileIo.html#affc1034970489c7734cfefed90b4d8d1">temporary()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ae0a881364b273ff14fb90c9375e9378b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::FileIo::close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flush and unwritten data and close the file . It is safe to call close on an already closed instance. </p>
<dl class="section return"><dt>Returns</dt><dd>0 if successful;<br />
 Nonzero if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#a67ae3ca0f8aece92a7b7749dfb02edde">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, and <a class="el" href="classExiv2_1_1FileIo.html#ac23e31007bdcf3d4e7f17bc2b0341759">munmap()</a>.</p>

<p>Referenced by <a class="el" href="classExiv2_1_1ImageFactory.html#a66e3b04ee1e62cd0f978995def1fd495">Exiv2::ImageFactory::create()</a>, <a class="el" href="classExiv2_1_1FileIo.html#a1793ddca7f8c94619ceae7a127da73c2">open()</a>, <a class="el" href="classExiv2_1_1FileIo.html#a7820fe3bdac99ff4a78dccccba1eed10">transfer()</a>, and <a class="el" href="classExiv2_1_1FileIo.html#a697adf86c426ab897c85eaaa8494f6a4">~FileIo()</a>.</p>

</div>
</div>
<a class="anchor" id="a7b211213f0c2e3b9153a69f67c15ab47"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::FileIo::getb </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read one byte from the file. The file position is advanced by one byte. </p>
<dl class="section return"><dt>Returns</dt><dd>The byte read from the file if successful;<br />
 EOF if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#a648bc0d9b1a79e34684375074d806534">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, and <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a7be38a2e6a5da155aa1d4b6420d15912">Exiv2::FileIo::Impl::switchMode()</a>.</p>

</div>
</div>
<a class="anchor" id="abacf2e7547c849c8809d472872c9a3a2"></a>
<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="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> * Exiv2::FileIo::mmap </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isWriteable</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Map the file into the process's address space. The file must be open before <a class="el" href="classExiv2_1_1FileIo.html#abacf2e7547c849c8809d472872c9a3a2" title="Map the file into the process&#39;s address space. The file must be open before mmap() is called...">mmap()</a> is called. If the mapped area is writeable, changes may not be written back to the underlying file until <a class="el" href="classExiv2_1_1FileIo.html#ac23e31007bdcf3d4e7f17bc2b0341759" title="Remove a mapping established with mmap(). If the mapped area is writeable, this ensures that changes ...">munmap()</a> is called. The pointer is valid only as long as the <a class="el" href="classExiv2_1_1FileIo.html" title="Provides binary file IO by implementing the BasicIo interface. ">FileIo</a> object exists. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">isWriteable</td><td>Set to true if the mapped area should be writeable (default is false). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the mapped area. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Error</td><td>In case of failure. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#a8728349cdeb79d569eba6fa6e26d5e74">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo.html#a31d22eb7249daef85cafff5f9ab254b9">eof()</a>, <a class="el" href="classExiv2_1_1FileIo.html#a6a5ad7cda1dffde07d1a0d37b71011e8">error()</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#ada7659603d39613151d4d132cccdfdf0">Exiv2::FileIo::Impl::isMalloced_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a8987d346a621d765a5689da5a279f9a2">Exiv2::FileIo::Impl::isWriteable_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#aea9c770a4ba090737b31e7b7b00933c2">Exiv2::FileIo::Impl::mappedLength_</a>, <a class="el" href="classExiv2_1_1FileIo.html#ac23e31007bdcf3d4e7f17bc2b0341759">munmap()</a>, <a class="el" href="classExiv2_1_1FileIo.html#ad4e63c22394f5cc3597a3d175cfbcc58">path()</a>, <a class="el" href="classExiv2_1_1DataBuf.html#a9a00173081c913d3add58854d9ad2c39">Exiv2::DataBuf::pData_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a9db9e6ec78e0ed12c1829c8e941bf2c8">Exiv2::FileIo::Impl::pMappedArea_</a>, <a class="el" href="classExiv2_1_1FileIo.html#a5c7364fbbdc740ec0736da33ad9a82f0">read()</a>, <a class="el" href="classExiv2_1_1DataBuf.html#a2fb958d6820e3790d14ab143159f50b2">Exiv2::DataBuf::release()</a>, <a class="el" href="classExiv2_1_1FileIo.html#a661e30ac842bbbeedef11aa9e1454f6d">size()</a>, <a class="el" href="classExiv2_1_1DataBuf.html#a5e6028d5cdae2e149749667cf66c3e91">Exiv2::DataBuf::size_</a>, <a class="el" href="namespaceExiv2.html#a086796c27d01f4618a158a0e56905f72">Exiv2::strError()</a>, and <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a7be38a2e6a5da155aa1d4b6420d15912">Exiv2::FileIo::Impl::switchMode()</a>.</p>

</div>
</div>
<a class="anchor" id="ac23e31007bdcf3d4e7f17bc2b0341759"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::FileIo::munmap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove a mapping established with <a class="el" href="classExiv2_1_1FileIo.html#abacf2e7547c849c8809d472872c9a3a2" title="Map the file into the process&#39;s address space. The file must be open before mmap() is called...">mmap()</a>. If the mapped area is writeable, this ensures that changes are written back to the underlying file. </p>
<dl class="section return"><dt>Returns</dt><dd>0 if successful;<br />
 Nonzero if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#aad39cb2b01e19b5e648988bbb239fa63">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#ada7659603d39613151d4d132cccdfdf0">Exiv2::FileIo::Impl::isMalloced_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a8987d346a621d765a5689da5a279f9a2">Exiv2::FileIo::Impl::isWriteable_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#aea9c770a4ba090737b31e7b7b00933c2">Exiv2::FileIo::Impl::mappedLength_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a9db9e6ec78e0ed12c1829c8e941bf2c8">Exiv2::FileIo::Impl::pMappedArea_</a>, <a class="el" href="classExiv2_1_1FileIo.html#af3f07fc65378860f0b4fe048a398a1bf">seek()</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a7be38a2e6a5da155aa1d4b6420d15912">Exiv2::FileIo::Impl::switchMode()</a>, and <a class="el" href="classExiv2_1_1FileIo.html#a5b3d5f5a5b4b7f9d3d8cec46a4ad95f7">write()</a>.</p>

<p>Referenced by <a class="el" href="classExiv2_1_1FileIo.html#ae0a881364b273ff14fb90c9375e9378b">close()</a>, and <a class="el" href="classExiv2_1_1FileIo.html#abacf2e7547c849c8809d472872c9a3a2">mmap()</a>.</p>

</div>
</div>
<a class="anchor" id="a1793ddca7f8c94619ceae7a127da73c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::FileIo::open </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>mode</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Open the file using using the specified mode. </p>
<p>This method can also be used to "reopen" a file which will flush any unwritten data and reset the IO position to the start. Although files can be opened in binary or text mode, this class has only been tested carefully in binary mode.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mode</td><td>Specified that type of access allowed on the file. Valid values match those of the C fopen command exactly. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful;<br />
 Nonzero if failure. </dd></dl>

<p>References <a class="el" href="classExiv2_1_1FileIo.html#ae0a881364b273ff14fb90c9375e9378b">close()</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a2aa93061bb685b73df97da7b011bde7f">Exiv2::FileIo::Impl::openMode_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#ae6ea0ef6708d70983bda651a555ccc1f">Exiv2::FileIo::Impl::opMode_</a>, and <a class="el" href="classExiv2_1_1FileIo.html#ad4e63c22394f5cc3597a3d175cfbcc58">path()</a>.</p>

<p>Referenced by <a class="el" href="classExiv2_1_1ImageFactory.html#a66e3b04ee1e62cd0f978995def1fd495">Exiv2::ImageFactory::create()</a>, <a class="el" href="namespaceExiv2.html#a5c87ddedd63e9ab9aa6f295cda32aebd">Exiv2::readFile()</a>, and <a class="el" href="namespaceExiv2.html#a65c0189894e7563da9a932e9c826e761">Exiv2::writeFile()</a>.</p>

</div>
</div>
<a class="anchor" id="a82a0cd197da227242ad8fcc50a70d29b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::FileIo::open </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Open the file using using the default access mode of "rb". This method can also be used to "reopen" a file which will flush any unwritten data and reset the IO position to the start. </p>
<dl class="section return"><dt>Returns</dt><dd>0 if successful;<br />
 Nonzero if failure. </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#a1beff0dcdf03510bad13b6946379c5f2">Exiv2::BasicIo</a>.</p>

<p>Referenced by <a class="el" href="classExiv2_1_1FileIo.html#a7820fe3bdac99ff4a78dccccba1eed10">transfer()</a>.</p>

</div>
</div>
<a class="anchor" id="a5d982468386b392b34b5ee8142b73396"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::FileIo::putb </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a>&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write one byte to the file. The file position is advanced by one byte. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>The single byte to be written. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value of the byte written if successful;<br />
 EOF if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#ad16a1fab0f122c8ca11b86d09b03b9a7">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, and <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a7be38a2e6a5da155aa1d4b6420d15912">Exiv2::FileIo::Impl::switchMode()</a>.</p>

</div>
</div>
<a class="anchor" id="a5c7364fbbdc740ec0736da33ad9a82f0"></a>
<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="classExiv2_1_1DataBuf.html">DataBuf</a> Exiv2::FileIo::read </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>rcount</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read data from the file. Reading starts at the current file position and the position is advanced by the number of bytes read. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rcount</td><td>Maximum number of bytes to read. Fewer bytes may be read if <em>rcount</em> bytes are not available. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classExiv2_1_1DataBuf.html" title="Utility class containing a character array. All it does is to take care of memory allocation and dele...">DataBuf</a> instance containing the bytes read. Use the <a class="el" href="classExiv2_1_1DataBuf.html#a5e6028d5cdae2e149749667cf66c3e91" title="The current size of the buffer. ">DataBuf::size_</a> member to find the number of bytes read. <a class="el" href="classExiv2_1_1DataBuf.html#a5e6028d5cdae2e149749667cf66c3e91" title="The current size of the buffer. ">DataBuf::size_</a> will be 0 on failure. </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#a8c9e6c7377b642afbb2c14a0e3896917">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, <a class="el" href="classExiv2_1_1DataBuf.html#a9a00173081c913d3add58854d9ad2c39">Exiv2::DataBuf::pData_</a>, <a class="el" href="classExiv2_1_1FileIo.html#a661e30ac842bbbeedef11aa9e1454f6d">size()</a>, and <a class="el" href="classExiv2_1_1DataBuf.html#a5e6028d5cdae2e149749667cf66c3e91">Exiv2::DataBuf::size_</a>.</p>

<p>Referenced by <a class="el" href="classExiv2_1_1FileIo.html#abacf2e7547c849c8809d472872c9a3a2">mmap()</a>, and <a class="el" href="namespaceExiv2.html#a5c87ddedd63e9ab9aa6f295cda32aebd">Exiv2::readFile()</a>.</p>

</div>
</div>
<a class="anchor" id="a23f598a52577e98be9f4292518ba6198"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long Exiv2::FileIo::read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>rcount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read data from the file. Reading starts at the current file position and the position is advanced by the number of bytes read. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">buf</td><td>Pointer to a block of memory into which the read data is stored. The memory block must be at least <em>rcount</em> bytes long. </td></tr>
    <tr><td class="paramname">rcount</td><td>Maximum number of bytes to read. Fewer bytes may be read if <em>rcount</em> bytes are not available. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Number of bytes read from the file successfully;<br />
 0 if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#aec8cb20c86e72b87577370a28d66a0ca">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, and <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a7be38a2e6a5da155aa1d4b6420d15912">Exiv2::FileIo::Impl::switchMode()</a>.</p>

</div>
</div>
<a class="anchor" id="af3f07fc65378860f0b4fe048a398a1bf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int Exiv2::FileIo::seek </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classExiv2_1_1BasicIo.html#a1d23c3bf7618f2ee6ebb5cf033b10911">Position</a>&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Move the current file position. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>Number of bytes to move the file position relative to the starting position specified by <em>pos</em> </td></tr>
    <tr><td class="paramname">pos</td><td>Position from which the seek should start </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if successful;<br />
 Nonzero if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#a561221bbe1d215b4d6b5ceceaa2e9a97">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, and <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a7be38a2e6a5da155aa1d4b6420d15912">Exiv2::FileIo::Impl::switchMode()</a>.</p>

<p>Referenced by <a class="el" href="classExiv2_1_1FileIo.html#ac23e31007bdcf3d4e7f17bc2b0341759">munmap()</a>.</p>

</div>
</div>
<a class="anchor" id="a661e30ac842bbbeedef11aa9e1454f6d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long Exiv2::FileIo::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Flush any buffered writes and get the current file size in bytes. </p>
<dl class="section return"><dt>Returns</dt><dd>Size of the file in bytes;<br />
 -1 if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#a01903a1a2310197eb7e3fd41bedc3054">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a2aa93061bb685b73df97da7b011bde7f">Exiv2::FileIo::Impl::openMode_</a>, <a class="el" href="structExiv2_1_1FileIo_1_1Impl_1_1StructStat.html#a4d16a0ac65419c462580893efb1a6ec3">Exiv2::FileIo::Impl::StructStat::st_size</a>, and <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#adb9024ecce2993f826d02da6957b9415">Exiv2::FileIo::Impl::stat()</a>.</p>

<p>Referenced by <a class="el" href="classExiv2_1_1FileIo.html#abacf2e7547c849c8809d472872c9a3a2">mmap()</a>, and <a class="el" href="classExiv2_1_1FileIo.html#a5c7364fbbdc740ec0736da33ad9a82f0">read()</a>.</p>

</div>
</div>
<a class="anchor" id="abf285ea310f0c53d3107de6ba6e518db"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long Exiv2::FileIo::tell </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the current file position. </p>
<dl class="section return"><dt>Returns</dt><dd>Offset from the start of the file if successful;<br />
 -1 if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#aeb9673a48a7af7376b7018998fb552e6">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>.</p>

</div>
</div>
<a class="anchor" id="affc1034970489c7734cfefed90b4d8d1"></a>
<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="classExiv2_1_1BasicIo.html#af8f989522925b884d8c9d3a257265fa1">BasicIo::AutoPtr</a> Exiv2::FileIo::temporary </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a temporary data storage location. The actual type returned depends upon the size of the file represented a <a class="el" href="classExiv2_1_1FileIo.html" title="Provides binary file IO by implementing the BasicIo interface. ">FileIo</a> object. For small files, a <a class="el" href="classExiv2_1_1MemIo.html" title="Provides binary IO on blocks of memory by implementing the BasicIo interface. A copy-on-write impleme...">MemIo</a> is returned while for large files a <a class="el" href="classExiv2_1_1FileIo.html" title="Provides binary file IO by implementing the BasicIo interface. ">FileIo</a> is returned. Callers should not rely on this behavior, however, since it may change. </p>
<dl class="section return"><dt>Returns</dt><dd>An instance of <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> on success </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Error</td><td>If opening the temporary file fails </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#aec9dd2dd223ce57650462c74a0770502">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo.html#a940ebd4fc3630f31c59adf99a52824c3">FileIo()</a>, <a class="el" href="classExiv2_1_1FileIo.html#ad4e63c22394f5cc3597a3d175cfbcc58">path()</a>, <a class="el" href="structExiv2_1_1FileIo_1_1Impl_1_1StructStat.html#a11db88a8966a9bece649989065f5ba42">Exiv2::FileIo::Impl::StructStat::st_nlink</a>, <a class="el" href="structExiv2_1_1FileIo_1_1Impl_1_1StructStat.html#a4d16a0ac65419c462580893efb1a6ec3">Exiv2::FileIo::Impl::StructStat::st_size</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#adb9024ecce2993f826d02da6957b9415">Exiv2::FileIo::Impl::stat()</a>, <a class="el" href="namespaceExiv2.html#a086796c27d01f4618a158a0e56905f72">Exiv2::strError()</a>, <a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450ca2d79fb07c9ec891f281968dad43c1e25">Exiv2::string</a>, and <a class="el" href="namespaceExiv2.html#aeb5a1b7e0a14e8671707d5be16cbda24">Exiv2::toString()</a>.</p>

</div>
</div>
<a class="anchor" id="a7820fe3bdac99ff4a78dccccba1eed10"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Exiv2::FileIo::transfer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classExiv2_1_1BasicIo.html">BasicIo</a> &amp;&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove the contents of the file and then transfer data from the <em>src</em> <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> object into the empty file. </p>
<p>This method is optimized to simply rename the source file if the source object is another <a class="el" href="classExiv2_1_1FileIo.html" title="Provides binary file IO by implementing the BasicIo interface. ">FileIo</a> instance. The source <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> object is invalidated by this operation and should not be used after this method returns. This method exists primarily to be used with the <a class="el" href="classExiv2_1_1BasicIo.html#aec9dd2dd223ce57650462c74a0770502" title="Returns a temporary data storage location. This is often needed to rewrite an IO source. ">BasicIo::temporary()</a> method.</p>
<dl class="section note"><dt>Note</dt><dd>If the caller doesn't have permissions to write to the file, an exception is raised and <em>src</em> is deleted.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Reference to another <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> instance. The entire contents of src are transferred to this object. The <em>src</em> object is invalidated by the method. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">Error</td><td>In case of failure </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#acb964ff603c96da8711baddb66a385a4">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1DataBuf.html#abe06b478dee2d020c4bde3f974bdeb90">Exiv2::DataBuf::alloc()</a>, <a class="el" href="classExiv2_1_1BasicIo.html#a67ae3ca0f8aece92a7b7749dfb02edde">Exiv2::BasicIo::close()</a>, <a class="el" href="classExiv2_1_1FileIo.html#ae0a881364b273ff14fb90c9375e9378b">close()</a>, <a class="el" href="classExiv2_1_1BasicIo.html#ad674727cddbf9cea627423620a8bb3d0">Exiv2::BasicIo::error()</a>, <a class="el" href="classExiv2_1_1FileIo.html#a6a5ad7cda1dffde07d1a0d37b71011e8">error()</a>, <a class="el" href="error_8hpp.html#a06ee301360765662f07d822ea005647e">EXV_WARNING</a>, <a class="el" href="namespaceExiv2.html#a0432df7d3995fa4d2fbc0b3f90265c59">Exiv2::fileExists()</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, <a class="el" href="classExiv2_1_1BasicIo.html#a1beff0dcdf03510bad13b6946379c5f2">Exiv2::BasicIo::open()</a>, <a class="el" href="classExiv2_1_1FileIo.html#a82a0cd197da227242ad8fcc50a70d29b">open()</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a2aa93061bb685b73df97da7b011bde7f">Exiv2::FileIo::Impl::openMode_</a>, <a class="el" href="classExiv2_1_1BasicIo.html#a8c4af60d14039fd99d36c73ce8354c15">Exiv2::BasicIo::path()</a>, <a class="el" href="classExiv2_1_1FileIo.html#ad4e63c22394f5cc3597a3d175cfbcc58">path()</a>, <a class="el" href="classExiv2_1_1DataBuf.html#a9a00173081c913d3add58854d9ad2c39">Exiv2::DataBuf::pData_</a>, <a class="el" href="classExiv2_1_1DataBuf.html#a5e6028d5cdae2e149749667cf66c3e91">Exiv2::DataBuf::size_</a>, <a class="el" href="structExiv2_1_1FileIo_1_1Impl_1_1StructStat.html#a1961a2c26a57c8c9848022c20f7ff725">Exiv2::FileIo::Impl::StructStat::st_mode</a>, <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#adb9024ecce2993f826d02da6957b9415">Exiv2::FileIo::Impl::stat()</a>, <a class="el" href="namespaceExiv2.html#a086796c27d01f4618a158a0e56905f72">Exiv2::strError()</a>, <a class="el" href="namespaceExiv2.html#a5153319711f35fe81cbc13f4b852450ca2d79fb07c9ec891f281968dad43c1e25">Exiv2::string</a>, and <a class="el" href="classExiv2_1_1FileIo.html#a5b3d5f5a5b4b7f9d3d8cec46a4ad95f7">write()</a>.</p>

</div>
</div>
<a class="anchor" id="a5b3d5f5a5b4b7f9d3d8cec46a4ad95f7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long Exiv2::FileIo::write </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="namespaceExiv2.html#a16f60a5bd4207fe155f6cf93a15efa72">byte</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>wcount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write data to the file. The file position is advanced by the number of bytes written. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>Pointer to data. Data must be at least <em>wcount</em> bytes long </td></tr>
    <tr><td class="paramname">wcount</td><td>Number of bytes to be written. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Number of bytes written to the file successfully;<br />
 0 if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#ac548d52ef633ac425bd01d17ccd2e7e4">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, and <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a7be38a2e6a5da155aa1d4b6420d15912">Exiv2::FileIo::Impl::switchMode()</a>.</p>

<p>Referenced by <a class="el" href="classExiv2_1_1FileIo.html#ac23e31007bdcf3d4e7f17bc2b0341759">munmap()</a>, <a class="el" href="classExiv2_1_1FileIo.html#a7820fe3bdac99ff4a78dccccba1eed10">transfer()</a>, and <a class="el" href="namespaceExiv2.html#a65c0189894e7563da9a932e9c826e761">Exiv2::writeFile()</a>.</p>

</div>
</div>
<a class="anchor" id="ad388515b87717088238dca8d71e75470"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">long Exiv2::FileIo::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classExiv2_1_1BasicIo.html">BasicIo</a> &amp;&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write data that is read from another <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> instance to the file. The file position is advanced by the number of bytes written. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">src</td><td>Reference to another <a class="el" href="classExiv2_1_1BasicIo.html" title="An interface for simple binary IO. ">BasicIo</a> instance. Reading start at the source's current IO position </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Number of bytes written to the file successfully;<br />
 0 if failure; </dd></dl>

<p>Implements <a class="el" href="classExiv2_1_1BasicIo.html#a31334606e230bbe94d6b8768d3c6d75f">Exiv2::BasicIo</a>.</p>

<p>References <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a3a87e5a388cea50de410261fa7d0f53e">Exiv2::FileIo::Impl::fp_</a>, <a class="el" href="classExiv2_1_1BasicIo.html#a17744832ee807c68f9c8d744692d9aaf">Exiv2::BasicIo::isopen()</a>, <a class="el" href="classExiv2_1_1BasicIo.html#a8c9e6c7377b642afbb2c14a0e3896917">Exiv2::BasicIo::read()</a>, <a class="el" href="classExiv2_1_1BasicIo.html#a561221bbe1d215b4d6b5ceceaa2e9a97">Exiv2::BasicIo::seek()</a>, and <a class="el" href="classExiv2_1_1FileIo_1_1Impl.html#a7be38a2e6a5da155aa1d4b6420d15912">Exiv2::FileIo::Impl::switchMode()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="basicio_8hpp.html">basicio.hpp</a></li>
<li>basicio.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 26 2017 16:50:14 for Exiv2 by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>