class ttystream

C++ "fstream" style ttystream class. More...

Definition#include <serial.h>
InheritsTTYStream
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


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.

ttystream ()

Construct an unopened "ttystream" object.

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:
nameof file and serial options.

void open (const char *name)

Open method for a tty stream.

Parameters:
filenameto open.

void close (void)

Close method for a tty stream.

inline bool operator! ()

Test to see if stream is opened.