<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>GNU CommonC++: ost::ttystream Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.4.6 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li id="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul></div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div> <div class="nav"> <a class="el" href="namespaceost.html">ost</a>::<a class="el" href="classost_1_1ttystream.html">ttystream</a></div> <h1>ost::ttystream Class Reference</h1><!-- doxytag: class="ost::ttystream" --><!-- doxytag: inherits="ost::TTYStream" -->A more natural C++ "ttystream" class for use by non-threaded applications.C++ "fstream" style ttystream 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.png" usemap="#ost::ttystream_map" border="0" alt=""></center> <map name="ost::ttystream_map"> <area href="classost_1_1_t_t_y_stream.html" alt="ost::TTYStream" shape="rect" coords="0,56,96,80"> <area href="classost_1_1_serial.html" alt="ost::Serial" shape="rect" coords="0,0,96,24"> </map> <a href="classost_1_1ttystream-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1ttystream.html#ecaa072538b632583b66b2efe0623d81">ttystream</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct an unopened "ttystream" object. <a href="#ecaa072538b632583b66b2efe0623d81"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1ttystream.html#238f4a4287af882ea12c852d2f816931">ttystream</a> (const char *name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct and "open" a tty stream object. <a href="#238f4a4287af882ea12c852d2f816931"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1ttystream.html#9cd5bb27aace9c143b78af37330179e8">open</a> (const char *name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Open method for a tty stream. <a href="#9cd5bb27aace9c143b78af37330179e8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1ttystream.html#4c27b39599ec7550606bd6e3cdcbb6d7">close</a> (void)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Close method for a tty stream. <a href="#4c27b39599ec7550606bd6e3cdcbb6d7"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1ttystream.html#8e77838120b5128c2dfa48d0f9ccaebc">operator!</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Test to see if stream is opened. <a href="#8e77838120b5128c2dfa48d0f9ccaebc"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A more natural C++ "ttystream" class for use by non-threaded applications.C++ "fstream" style ttystream class. <p> This class behaves a lot more like fstream and similar classes.<p> <dl compact><dt><b>Author:</b></dt><dd>David Sugar <<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>> </dd></dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="ecaa072538b632583b66b2efe0623d81"></a><!-- doxytag: member="ost::ttystream::ttystream" ref="ecaa072538b632583b66b2efe0623d81" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">ost::ttystream::ttystream </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Construct an unopened "ttystream" object. <p> </td> </tr> </table> <a class="anchor" name="238f4a4287af882ea12c852d2f816931"></a><!-- doxytag: member="ost::ttystream::ttystream" ref="238f4a4287af882ea12c852d2f816931" args="(const char *name)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">ost::ttystream::ttystream </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>name</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></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.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><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 class="anchor" name="4c27b39599ec7550606bd6e3cdcbb6d7"></a><!-- doxytag: member="ost::ttystream::close" ref="4c27b39599ec7550606bd6e3cdcbb6d7" args="(void)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void ost::ttystream::close </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></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> <p> Reimplemented from <a class="el" href="classost_1_1_serial.html#b58a9efec4fffc41b7f0618734a549e0">ost::Serial</a>. </td> </tr> </table> <a class="anchor" name="9cd5bb27aace9c143b78af37330179e8"></a><!-- doxytag: member="ost::ttystream::open" ref="9cd5bb27aace9c143b78af37330179e8" args="(const char *name)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">void ost::ttystream::open </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>name</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></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></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>filename to open. </td></tr> </table> </dl> <p> Reimplemented from <a class="el" href="classost_1_1_serial.html#ab0033a3ce6c142a4882f05187ff2749">ost::Serial</a>. </td> </tr> </table> <a class="anchor" name="8e77838120b5128c2dfa48d0f9ccaebc"></a><!-- doxytag: member="ost::ttystream::operator!" ref="8e77838120b5128c2dfa48d0f9ccaebc" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">bool ost::ttystream::operator! </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><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 size="1"><address style="align: right;"><small>Generated on Mon Jun 19 10:50:56 2006 for GNU CommonC++ by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address> </body> </html>