class fifostream

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

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

Public Members


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.

fifostream ()

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

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

Create and open a fifo stream object.

Parameters:
nameof fifo.

~fifostream ()

close any open fifo and remove.

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

open a new fifo stream. Kill the currently open one if present.

Parameters:
nameof fifo.

void close (void)

close the fifo stream and remove it.


Generated by: dyfet@home.sys on Fri Aug 11 16:43:58 200.