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

ofpstream Class Reference

Provides the base class for writing (inserting) streamable objects to file streams. More...

#include <tobjstrm.h>

Inheritance diagram for ofpstream::

fpbase opstream pstream pstream List of all members.

Public Methods

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

Detailed Description

Class ofpstream is a simple "mix" of its bases, fpbase and opstream. It provides the base class for writing (inserting) streamable objects to file streams.

Definition at line 1102 of file tobjstrm.h.


Constructor & Destructor Documentation

ofpstream::ofpstream ( )
 

Creates a buffered ofpstream object.

ofpstream::ofpstream ( const char * name,
int omode = ios::out,
int prot = filebuf::openprot )
 

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

ofpstream::ofpstream ( int f )
 

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

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

Creates a buffered ofpstream 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'.

ofpstream::~ofpstream ( )
 

Destroys the ofpstream object.


Member Function Documentation

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

Opens the the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, or noreplace) and protection. The default mode is out (output) with openprot protection. The opened file is attached to this stream.

Reimplemented from fpbase.

filebuf * ofpstream::rdbuf ( )
 

Returns the current file buffer.

Reimplemented from fpbase.


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