Poster of Linux kernelThe best gift for a Linux geek
ost::ttystream

ost::ttystream

Section: C Library Functions (3) Updated: 16 Feb 2010
Local index Up
 

NAME

ost::ttystream -

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

 

SYNOPSIS


#include <serial.h>

Inherits ost::TTYStream.  

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.

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

Author:

David Sugar <dyfet@ostel.com> C++ 'fstream' style ttystream class.

 

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.

 

Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Detailed Description
Constructor & Destructor Documentation
ost::ttystream::ttystream ()
ost::ttystream::ttystream (const char * name)
Member Function Documentation
void ost::ttystream::close (void)
void ost::ttystream::open (const char * name)
bool ost::ttystream::operator! (void) [inline]
Author

This document was created by man2html, using the manual pages.
Time: 21:51:52 GMT, April 16, 2011