<!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::ttystream 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::ttystream Class Reference</h1>A more natural C++ "<a class="el" href="classost_1_1ttystream.html">ttystream</a>" class for use by non-threaded applications. C++ "fstream" style <a class="el" href="classost_1_1ttystream.html">ttystream</a> class. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="serial_8h-source.html">serial.h</a>></code> <p> <p>Inheritance diagram for ost::ttystream:: <p><center><img src="classost_1_1ttystream.gif" usemap="#ost::ttystream_map" border="0"></center> <map name="ost::ttystream_map"> <area href="classost_1_1_t_t_y_stream.html" alt="ost::TTYStream" shape="rect" coords="106,56,202,80"> <area href="classstd_1_1streambuf.html" alt="std::streambuf" shape="rect" coords="0,0,96,24"> <area href="classstd_1_1iostream.html" alt="std::iostream" shape="rect" coords="106,0,202,24"> <area href="classost_1_1_serial.html" alt="ost::Serial" shape="rect" coords="212,0,308,24"> </map> <a href="classost_1_1ttystream-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_1ttystream.html#a0">ttystream</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Construct an unopened "<a class="el" href="classost_1_1ttystream.html">ttystream</a>" object.</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_1ttystream.html#a1">ttystream</a> (const char *name)</td></tr> <tr><td> </td><td><font size=-1><em>Construct and "open" a tty stream object.</em> <a href="#a1">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_1ttystream.html#a2">open</a> (const char *name)</td></tr> <tr><td> </td><td><font size=-1><em>Open method for a tty stream.</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_1ttystream.html#a3">close</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>Close method for a tty stream.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classost_1_1ttystream.html#a4">operator!</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Test to see if stream is opened.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A more natural C++ "<a class="el" href="classost_1_1ttystream.html">ttystream</a>" class for use by non-threaded applications. C++ "fstream" style <a class="el" href="classost_1_1ttystream.html">ttystream</a> class. <p> This class behaves a lot more like fstream and similar classes. <p> <dl compact><dt><b> Author: </b><dd> David Sugar <<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>> </dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="ost::ttystream::ttystream"></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::ttystream::ttystream </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> Construct an unopened "<a class="el" href="classost_1_1ttystream.html">ttystream</a>" object. <p> </td> </tr> </table> <a name="a1" doxytag="ost::ttystream::ttystream"></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::ttystream::ttystream </td> <td class="md">( </td> <td class="md">const char *</td> <td class="mdname1"> <em>name</em> </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> Construct and "open" a tty stream object. <p> A filename in the form "device:options[,options]" may be used to pass device options as part of the open.<dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>name </em> </td><td> of file and serial options. </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a3" doxytag="ost::ttystream::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::ttystream::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 method for a tty stream. <p> </td> </tr> </table> <a name="a2" doxytag="ost::ttystream::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::ttystream::open </td> <td class="md">( </td> <td class="md">const char *</td> <td class="mdname1"> <em>name</em> </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> Open method for a tty stream. <p> <dl compact><dt><b> Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>filename </em> </td><td> to open. </td></tr> </table> </dl> </td> </tr> </table> <a name="a4" doxytag="ost::ttystream::operator!"></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"> bool ost::ttystream::operator! </td> <td class="md">( </td> <td class="md">void</td> <td class="mdname1"> </td> <td class="md">) </td> <td class="md"><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Test to see if stream is opened. <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="serial_8h-source.html">serial.h</a></ul> <hr><address><small>Generated at Fri Jan 4 18:51:52 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>