Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

ost::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 ost::ttystream:

ost::TTYStream ost::Serial List of all members.

Public Member Functions

 ttystream ()
 Construct an unopened "ttystream" object.
 ttystream (const char *name)
 Construct and "open" a tty stream object.
void open (const char *name)
 Open method for a tty stream.
void close (void)
 Close method for a tty stream.
bool operator! ()
 Test to see if stream is opened.

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

ost::ttystream::ttystream  ) 
 

Construct an unopened "ttystream" object.

ost::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 ost::ttystream::close void   ) 
 

Close method for a tty stream.

Reimplemented from ost::Serial.

void ost::ttystream::open const char *  name  ) 
 

Open method for a tty stream.

Parameters:
name filename to open.

Reimplemented from ost::Serial.

bool ost::ttystream::operator! void   )  [inline]
 

Test to see if stream is opened.


The documentation for this class was generated from the following file:
Generated on Fri May 30 14:40:08 2008 for GNU CommonC++ by  doxygen 1.3.9.1