#include <tobjstrm.h>
Inheritance diagram for fpbase::
Public Methods | |
fpbase () | |
fpbase (const char *name, int omode, int prot=filebuf::openprot) | |
fpbase (int f) | |
fpbase (int f, char *b, int len) | |
~fpbase () | |
void | open (const char *name, int omode, int prot=filebuf::openprot) |
void | attach (int f) |
void | close () |
void | setbuf (char *buf, int len) |
filebuf* | rdbuf () |
Definition at line 959 of file tobjstrm.h.
|
Creates a buffered fpbase object. |
|
Creates a buffered fpbase object. You can open a file and attach it to the stream by specifying the `name', `omode', and `prot' (protection) arguments. |
|
Creates a buffered fpbase object. You can open a file and attach it to the stream by specifying the file descriptor, `f'. |
|
Creates a buffered fpbase 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'. |
|
Destroys the fpbase object. |
|
Attaches the file with descriptor `f' to this stream if possible. |
|
Closes the stream and associated file. |
|
Opens the named file in the given mode (app, ate, in, out, binary, trunc, nocreate, noreplace) and protection. The opened file is attached to this stream. |
|
Returns a pointer to the current file buffer. |
|
Allocates a buffer of size `len'. |