<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>ost::fifostream class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.10 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>ost::fifostream Class Reference</h1>This class provides a few alterations to the standard fstream class for dealing with fifo devices. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="file_8h-source.html">file.h</a>></code> <p> <p>Inheritance diagram for ost::fifostream:: <p><center><img src="classost_1_1fifostream.gif" usemap="#ost::fifostream_map" border="0"></center> <map name="ost::fifostream_map"> <area href="classstd_1_1fstream.html" alt="std::fstream" shape="rect" coords="0,0,89,24"> </map> <a href="classost_1_1fifostream-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classost_1_1fifostream.html#a0">fifostream</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Create fifo "object", but do not create or open a fifo stream.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classost_1_1fifostream.html#a1">fifostream</a> (const char *fname, long access=(long) FILE_ATTR_GROUP)</td></tr> <tr><td> </td><td><font size=-1><em>Create and open a fifo stream object.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classost_1_1fifostream.html#a2">~fifostream</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>close any open fifo and remove.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classost_1_1fifostream.html#a3">open</a> (const char *fname, long access=(long) FILE_ATTR_GROUP)</td></tr> <tr><td> </td><td><font size=-1><em>open a new fifo stream.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classost_1_1fifostream.html#a4">close</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>close the fifo stream and remove it.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> This class provides a few alterations to the standard fstream class for dealing with fifo devices. <p> In particular, a fifo is assumed to be created via mkfifo and is destroyed when closed. The fifo is a r/w streamable object. fifo streams are presumed unique to posix systems and are generally not portable classes. <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="ost::fifostream::fifostream"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> ost::fifostream::fifostream </td> <td class="md">( </td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Create fifo "object", but do not create or open a fifo stream. <p> </td> </tr> </table> <a name="a1" doxytag="ost::fifostream::fifostream"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> ost::fifostream::fifostream </td> <td class="md">( </td> <td class="md">const char *</td> <td class="mdname"> <em>fname</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md">long</td> <td class="mdname"> <em>access</em> = (long)FILE_ATTR_GROUP</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Create and open a fifo stream object. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>name </em> </td><td> of fifo. </td></tr> </table> </dl> </td> </tr> </table> <a name="a2" doxytag="ost::fifostream::~fifostream"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual ost::fifostream::~fifostream </td> <td class="md">( </td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> close any open fifo and remove. <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a4" doxytag="ost::fifostream::close"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void ost::fifostream::close </td> <td class="md">( </td> <td class="md">void</td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> close the fifo stream and remove it. <p> </td> </tr> </table> <a name="a3" doxytag="ost::fifostream::open"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void ost::fifostream::open </td> <td class="md">( </td> <td class="md">const char *</td> <td class="mdname"> <em>fname</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md">long</td> <td class="mdname"> <em>access</em> = (long)FILE_ATTR_GROUP</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> open a new fifo stream. <p> Kill the currently open one if present.<dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>name </em> </td><td> of fifo. </td></tr> </table> </dl> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="file_8h-source.html">file.h</a></ul> <hr><address><small>Generated at Fri Jan 4 18:51:49 2002 for CommonC++ by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.10 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address> </body> </html>