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

ifpstream Class Reference

Provides the base class for reading (extracting) streamable objects from file streams. More...

#include <tobjstrm.h>

Inheritance diagram for ifpstream::

fpbase ipstream pstream pstream List of all members.

Public Methods

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

Detailed Description

ifpstream is a simple "mix" of its bases, fpbase and ipstream. It provides the base class for reading (extracting) streamable objects from file streams.

Definition at line 1036 of file tobjstrm.h.


Constructor & Destructor Documentation

ifpstream::ifpstream ( )
 

Creates a buffered ifpstream object.

ifpstream::ifpstream ( const char * name,
int omode = ios::in,
int prot = filebuf::openprot )
 

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

ifpstream::ifpstream ( int f )
 

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

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

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

ifpstream::~ifpstream ( )
 

Destroys the ifpstream object.


Member Function Documentation

void ifpstream::open ( const char * name,
int omode = ios::in,
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 in (input) with openprot protection. The opened file is attached to this stream.

Reimplemented from fpbase.

filebuf * ifpstream::rdbuf ( )
 

Returns a pointer to 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:27 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001