Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ttystream Class Reference

A more natural C++ "ttystream" class for use by non-threaded applications. C++ "fstream" style ttystream class. More...

#include <serial.h>

Inheritance diagram for ttystream::

TTYStream std::streambuf std::iostream Serial List of all members.

Public Methods

 ttystream ()
 Construct an unopened "ttystream" object. More...

 ttystream (const char *name)
 Construct and "open" a tty stream object. More...

void open (const char *name)
 Open method for a tty stream. More...

void close (void)
 Close method for a tty stream. More...

bool operator! ()
 Test to see if stream is opened. More...


Detailed Description

A more natural C++ "ttystream" class for use by non-threaded applications. C++ "fstream" style ttystream class.

This class behaves a lot more like fstream and similar classes.

Author:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

ttystream::ttystream  
 

Construct an unopened "ttystream" object.

ttystream::ttystream const char *   name
 

Construct and "open" a tty stream object.

A filename in the form "device:options[,options]" may be used to pass device options as part of the open.

Parameters:
name   of file and serial options.


Member Function Documentation

void ttystream::close void  
 

Close method for a tty stream.

void ttystream::open const char *   name
 

Open method for a tty stream.

Parameters:
filename   to open.

bool ttystream::operator! void   [inline]
 

Test to see if stream is opened.


The documentation for this class was generated from the following file:
Generated at Tue Nov 20 12:34:37 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001