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

fpstream Class Reference

Provides the base class for simultaneous writing and reading streamable objects to bidirectional file streams. More...

#include <tobjstrm.h>

Inheritance diagram for fpstream::

fpbase iopstream pstream ipstream opstream pstream pstream List of all members.

Public Methods

 fpstream ()
 fpstream (const char *name, int omode, int prot=filebuf::openprot)
 fpstream (int f)
 fpstream (int f, char *b, int len)
 ~fpstream ()
filebuf* rdbuf ()
void open (const char *name, int omode, int prot=filebuf::openprot)

Detailed Description

fpstream is a simple "mix" of its bases, fpbase and iopstream. It provides the base class for simultaneous writing and reading streamable objects to bidirectional file streams. It is analogous to class fstream, defined in `fstream.h' for the standard C++ stream library.

Definition at line 1170 of file tobjstrm.h.


Constructor & Destructor Documentation

fpstream::fpstream ( )
 

Creates a buffered fpstream object.

fpstream::fpstream ( const char * name,
int omode,
int prot = filebuf::openprot )
 

Creates a buffered fpstream object. You can open a file and attach it to the stream by specifying the `name', `omode', and `prot' (protection) arguments.

fpstream::fpstream ( int f )
 

Creates a buffered fpstream object. You can open a file and attach it to the stream by specifying the file descriptor, `f'.

fpstream::fpstream ( int f,
char * b,
int len )
 

Creates a buffered fpstream object. You can set the size and initial contents of the buffer using the `len' and `b' arguments. You can open a file and attach it to the stream by specifying the file descriptor, `f'.

fpstream::~fpstream ( )
 

Destroys the fpstream object.


Member Function Documentation

void fpstream::open ( const char * name,
int omode,
int prot = filebuf::openprot )
 

Opens the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, noreplace) and protection. The opened file is attatched to this stream.

Reimplemented from fpbase.

filebuf * fpstream::rdbuf ( )
 

Returns the data member bp.

Reimplemented from fpbase.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:25 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001