ost::ttystream Class Reference

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

#include <serial.h>

Inheritance diagram for ost::ttystream:
Inheritance graph
[legend]
Collaboration diagram for ost::ttystream:
Collaboration graph
[legend]

Public Member Functions

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

Detailed Description

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

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

Author:
David Sugar <dyfet@ostel.com> C++ "fstream" style ttystream class.

Definition at line 534 of file serial.h.


Constructor & Destructor Documentation

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::open ( const char *  name  ) 

Open method for a tty stream.

Parameters:
name filename to open.

Reimplemented from ost::Serial.


The documentation for this class was generated from the following file:

Generated on 24 Sep 2014 for ucommon by  doxygen 1.6.1