<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>sc68fordevelopers: /home/mandrake/rpm/BUILD/sc68-2.2.1/file68/istream68_def.h File 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="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div> <div class="contents"> <h1>/home/mandrake/rpm/BUILD/sc68-2.2.1/file68/istream68_def.h File Reference</h1>generic stream interface. <a href="#_details">More...</a> <p> <code>#include "<a class="el" href="istream68_8h_source.html">file68/istream68.h</a>"</code><br> <p> <a href="istream68__def_8h_source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Data Structures</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__istream__t.html">_istream_t</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Input stream structure. <a href="struct__istream__t.html#_details">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Defines</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Open mode defines.</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="istream68__def_8h.html#ddf13496860b0f264eb55681ca09d7ea">ISTREAM_OPEN_READ_BIT</a> 0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Read open mode bit. <a href="#ddf13496860b0f264eb55681ca09d7ea"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="istream68__def_8h.html#932553eea017eeee60bcdc4635e04b75">ISTREAM_OPEN_READ</a> (1<<ISTREAM_OPEN_READ_BIT)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Read open mode value. <a href="#932553eea017eeee60bcdc4635e04b75"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="istream68__def_8h.html#3f1c17c8081d000335ca3ee2aabc37e9">ISTREAM_OPEN_WRITE_BIT</a> 1</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write open mode bit. <a href="#3f1c17c8081d000335ca3ee2aabc37e9"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="istream68__def_8h.html#5e023fe7f733deaf777e56bbfd4bec75">ISTREAM_OPEN_WRITE</a> (1<<ISTREAM_OPEN_WRITE_BIT)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write open mode value. <a href="#5e023fe7f733deaf777e56bbfd4bec75"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="istream68__def_8h.html#156c4bb46638ea0157786ca60b9fcd5a">ISTREAM_IS_OPEN</a>(V) (!!((V)&(ISTREAM_OPEN_READ|ISTREAM_OPEN_WRITE)))</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Test if any open flags is set (returns 0 or 1). <a href="#156c4bb46638ea0157786ca60b9fcd5a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="istream68__def_8h.html#71187a25f6f28def3b96034c76152769">ISTREAM_IS_OPEN_READ</a>(V) (((V)>>ISTREAM_OPEN_READ_BIT)&1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Test if READ open flags is set (returns 0 or 1). <a href="#71187a25f6f28def3b96034c76152769"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="istream68__def_8h.html#b269ebb0ff1d161cf05ade450d2d06c9">ISTREAM_IS_OPEN_WRITE</a>(V) (((V)>>ISTREAM_OPEN_WRITE_BIT)&1)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Test if WRITE open flags is set (returns 0 or 1). <a href="#b269ebb0ff1d161cf05ade450d2d06c9"></a><br></td></tr> <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">input stream function types.</div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2ff2fe99207ea781c6aa19f0ba77d76e"></a><!-- doxytag: member="istream68_def.h::istream_name_t" ref="2ff2fe99207ea781c6aa19f0ba77d76e" args=")(istream_t *)" --> typedef const char *(* </td><td class="memItemRight" valign="bottom"><b>istream_name_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe0b970e6df47fc2cf43ed35325e756a"></a><!-- doxytag: member="istream68_def.h::istream_open_t" ref="fe0b970e6df47fc2cf43ed35325e756a" args=")(istream_t *)" --> typedef int(* </td><td class="memItemRight" valign="bottom"><b>istream_open_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e5643797dcd816d68ad5d7e226dd237"></a><!-- doxytag: member="istream68_def.h::istream_close_t" ref="1e5643797dcd816d68ad5d7e226dd237" args=")(istream_t *)" --> typedef int(* </td><td class="memItemRight" valign="bottom"><b>istream_close_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="09fb67e9026a465cc1b2032fdf1cb5de"></a><!-- doxytag: member="istream68_def.h::istream_length_t" ref="09fb67e9026a465cc1b2032fdf1cb5de" args=")(istream_t *)" --> typedef int(* </td><td class="memItemRight" valign="bottom"><b>istream_length_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b893f25b3bf86df16e2560835611b841"></a><!-- doxytag: member="istream68_def.h::istream_tell_t" ref="b893f25b3bf86df16e2560835611b841" args=")(istream_t *)" --> typedef int(* </td><td class="memItemRight" valign="bottom"><b>istream_tell_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="67d3eb1cf008ffca34e163e8a92f5e81"></a><!-- doxytag: member="istream68_def.h::istream_seek_t" ref="67d3eb1cf008ffca34e163e8a92f5e81" args=")(istream_t *, int)" --> typedef int(* </td><td class="memItemRight" valign="bottom"><b>istream_seek_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *, int)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="53f9a36f0f001c19b156bc514da8354c"></a><!-- doxytag: member="istream68_def.h::istream_read_t" ref="53f9a36f0f001c19b156bc514da8354c" args=")(istream_t *, void *, int)" --> typedef int(* </td><td class="memItemRight" valign="bottom"><b>istream_read_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *, void *, int)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5b22885033ab36c633509ef5ed20e015"></a><!-- doxytag: member="istream68_def.h::istream_write_t" ref="5b22885033ab36c633509ef5ed20e015" args=")(istream_t *, const void *, int)" --> typedef int(* </td><td class="memItemRight" valign="bottom"><b>istream_write_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *, const void *, int)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="127d091830606407e205bf57741ed067"></a><!-- doxytag: member="istream68_def.h::istream_destroy_t" ref="127d091830606407e205bf57741ed067" args=")(istream_t *)" --> typedef void(* </td><td class="memItemRight" valign="bottom"><b>istream_destroy_t</b> )(<a class="el" href="struct__istream__t.html">istream_t</a> *)</td></tr> </table> <hr><h2>Detailed Description</h2> generic stream interface. <p> <dl class="author" compact><dt><b>Author:</b></dt><dd>benjamin gerard </dd></dl> <dl class="date" compact><dt><b>Date:</b></dt><dd>2003/08/08 </dd></dl> <dl class="rcs" compact><dt><b>Id</b></dt><dd><a class="el" href="istream68__def_8h.html" title="generic stream interface.">istream68_def.h</a>,v 2.5 2003/09/30 06:29:57 benjihan Exp </dd></dl> <p> Generic stream interface definition. <hr><h2>Define Documentation</h2> <a class="anchor" name="ddf13496860b0f264eb55681ca09d7ea"></a><!-- doxytag: member="istream68_def.h::ISTREAM_OPEN_READ_BIT" ref="ddf13496860b0f264eb55681ca09d7ea" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ISTREAM_OPEN_READ_BIT 0 </td> </tr> </table> </div> <div class="memdoc"> <p> Read open mode bit. <p> </div> </div><p> <a class="anchor" name="932553eea017eeee60bcdc4635e04b75"></a><!-- doxytag: member="istream68_def.h::ISTREAM_OPEN_READ" ref="932553eea017eeee60bcdc4635e04b75" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ISTREAM_OPEN_READ (1<<ISTREAM_OPEN_READ_BIT) </td> </tr> </table> </div> <div class="memdoc"> <p> Read open mode value. <p> </div> </div><p> <a class="anchor" name="3f1c17c8081d000335ca3ee2aabc37e9"></a><!-- doxytag: member="istream68_def.h::ISTREAM_OPEN_WRITE_BIT" ref="3f1c17c8081d000335ca3ee2aabc37e9" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ISTREAM_OPEN_WRITE_BIT 1 </td> </tr> </table> </div> <div class="memdoc"> <p> Write open mode bit. <p> </div> </div><p> <a class="anchor" name="5e023fe7f733deaf777e56bbfd4bec75"></a><!-- doxytag: member="istream68_def.h::ISTREAM_OPEN_WRITE" ref="5e023fe7f733deaf777e56bbfd4bec75" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ISTREAM_OPEN_WRITE (1<<ISTREAM_OPEN_WRITE_BIT) </td> </tr> </table> </div> <div class="memdoc"> <p> Write open mode value. <p> </div> </div><p> <a class="anchor" name="156c4bb46638ea0157786ca60b9fcd5a"></a><!-- doxytag: member="istream68_def.h::ISTREAM_IS_OPEN" ref="156c4bb46638ea0157786ca60b9fcd5a" args="(V)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ISTREAM_IS_OPEN </td> <td>(</td> <td class="paramtype">V </td> <td class="paramname"> </td> <td> ) </td> <td> (!!((V)&(ISTREAM_OPEN_READ|ISTREAM_OPEN_WRITE)))</td> </tr> </table> </div> <div class="memdoc"> <p> Test if any open flags is set (returns 0 or 1). <p> </div> </div><p> <a class="anchor" name="71187a25f6f28def3b96034c76152769"></a><!-- doxytag: member="istream68_def.h::ISTREAM_IS_OPEN_READ" ref="71187a25f6f28def3b96034c76152769" args="(V)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ISTREAM_IS_OPEN_READ </td> <td>(</td> <td class="paramtype">V </td> <td class="paramname"> </td> <td> ) </td> <td> (((V)>>ISTREAM_OPEN_READ_BIT)&1)</td> </tr> </table> </div> <div class="memdoc"> <p> Test if READ open flags is set (returns 0 or 1). <p> </div> </div><p> <a class="anchor" name="b269ebb0ff1d161cf05ade450d2d06c9"></a><!-- doxytag: member="istream68_def.h::ISTREAM_IS_OPEN_WRITE" ref="b269ebb0ff1d161cf05ade450d2d06c9" args="(V)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define ISTREAM_IS_OPEN_WRITE </td> <td>(</td> <td class="paramtype">V </td> <td class="paramname"> </td> <td> ) </td> <td> (((V)>>ISTREAM_OPEN_WRITE_BIT)&1)</td> </tr> </table> </div> <div class="memdoc"> <p> Test if WRITE open flags is set (returns 0 or 1). <p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 15 03:58:05 2009 for sc68fordevelopers 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>