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

ost::fifostream Class Reference

This class provides a few alterations to the standard fstream class for dealing with fifo devices. More...

#include <file.h>

Inheritance diagram for ost::fifostream:

ost::File List of all members.

Public Methods

 fifostream ()
 Create fifo "object", but do not create or open a fifo stream.

 fifostream (const char *fname, long access=(long) attrGroup)
 Create and open a fifo stream object.

virtual ~fifostream ()
 close any open fifo and remove.

void open (const char *fname, long access=(long) attrGroup)
 open a new fifo stream.

void close (void)
 close the fifo stream and remove it.


Detailed Description

This class provides a few alterations to the standard fstream class for dealing with fifo devices.

In particular, a fifo is assumed to be created via mkfifo and is destroyed when closed. The fifo is a r/w streamable object. fifo streams are presumed unique to posix systems and are generally not portable classes.

Todo:
implement in win32


Constructor & Destructor Documentation

ost::fifostream::fifostream  
 

Create fifo "object", but do not create or open a fifo stream.

ost::fifostream::fifostream const char *    fname,
long    access = (long) attrGroup
 

Create and open a fifo stream object.

Parameters:
fname  name of fifo.
access  access flags.

virtual ost::fifostream::~fifostream   [virtual]
 

close any open fifo and remove.


Member Function Documentation

void ost::fifostream::close void   
 

close the fifo stream and remove it.

void ost::fifostream::open const char *    fname,
long    access = (long) attrGroup
 

open a new fifo stream.

Kill the currently open one if present.

Parameters:
fname  name of fifo.
access  access flags.


The documentation for this class was generated from the following file:
Generated on Thu Nov 21 12:28:33 2002 for GNU CommonC++ by doxygen1.2.18