Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

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 fifostream::

std::fstream List of all members.

Public Methods

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

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

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

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

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


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.


Constructor & Destructor Documentation

fifostream::fifostream  
 

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

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

Create and open a fifo stream object.

Parameters:
name   of fifo.

virtual fifostream::~fifostream   [virtual]
 

close any open fifo and remove.


Member Function Documentation

void fifostream::close void  
 

close the fifo stream and remove it.

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

open a new fifo stream.

Kill the currently open one if present.

Parameters:
name   of fifo.


The documentation for this class was generated from the following file:
Generated at Tue Nov 20 12:34:34 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001