|
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Base class for handling streamable objects. More...
#include <owl/objstrm.h>
Public Types | |
| enum | PointerTypes { ptNull , ptIndexed , ptObject } |
| Enumerates object pointer types. More... | |
Public Member Functions | |
| pstream (std::streambuf *) | |
| Creates a buffered pstream with the given buffer. The state is set to 0. | |
| virtual | ~pstream () |
| int | rdstate () const |
| Returns the current state value. | |
| int | eof () const |
| Returns nonzero on end of stream. | |
| int | fail () const |
| Returns nonzero if a previous stream operation failed. | |
| int | bad () const |
| Returns nonzero if an error occurs. | |
| int | good () const |
| Returns nonzero if no error states have been recorded for the stream (that is, no errors have occurred). | |
| void | clear (int=0) |
| Sets the stream state to the given value (defaults to 0). | |
| operator void * () const | |
| Converts to a void pointer. | |
| int | operator! () const |
| Overloads the NOT operator. | |
| std::streambuf * | rdbuf () const |
| Returns the pb pointer to the buffer assigned to the stream. | |
Protected Member Functions | |
| pstream () | |
| Creates a pstream without initializing the buffer pointer bp or state. | |
| void | init (std::streambuf *) |
| The init member function initializes the stream and sets state to 0 and bp to sbp. | |
| void | setstate (int) |
| Updates the state data member with state |= (b & 0xFF). | |
Protected Attributes | |
| std::streambuf * | bp |
| int | state |
Friends | |
| class | TStreamableTypes |
| class | TStreamableClass |
|
virtual |
Definition at line 316 of file objstrm.cpp.
|
friend |
Definition at line 332 of file objstrm.h.
References TStreamableClass.
|
friend |
Definition at line 331 of file objstrm.h.
References TStreamableTypes.