#include <tobjstrm.h>
Inheritance diagram for pstream::

Public Types | |
| enum | StreamableError { peNotRegistered, peInvalidType } |
| enum | PointerTypes { ptNull, ptIndexed, ptObject } |
Public Methods | |
| pstream (streambuf *buf) | |
| virtual | ~pstream () |
| int | rdstate () const |
| int | eof () const |
| int | fail () const |
| int | bad () const |
| int | good () const |
| void | clear (int sState=0) |
| operator void * () const | |
| int | operator! () const |
| streambuf* | rdbuf () const |
| void | error (StreamableError) |
| void | error (StreamableError, const TStreamable &) |
Static Public Methods | |
| void | initTypes () |
| void | registerType (TStreamableClass *ts) |
Protected Methods | |
| pstream () | |
| void | init (streambuf *sbp) |
| void | setstate (int b) |
Protected Attributes | |
| streambuf* | bp |
| int | state |
Static Protected Attributes | |
| TStreamableTypes* | types |
Definition at line 424 of file tobjstrm.h.
|
|
Undocumented. Definition at line 435 of file tobjstrm.h. |
|
|
Undocumented. Definition at line 431 of file tobjstrm.h. |
|
|
This form creates a buffered pstream with the given buffer and sets the bp data member to `buf'. The state data member is set to 0. |
|
|
Destroys the pstream object. |
|
|
This form allocates a default buffer. |
|
|
Returns nonzero if an error occurs. |
|
|
Set the stream state data member to the given value (defaults to 0). |
|
|
Returns nonzero on end of stream. |
|
|
Sets the given error condition, where StreamableError is defined as follows:
enum StreamableError { peNotRegistered, peInvalidType };
|
|
|
Sets the given error condition, where StreamableError is defined as follows:
enum StreamableError { peNotRegistered, peInvalidType };
|
|
|
Returns nonzero if a stream operation fails. |
|
|
Returns nonzero if no state bits are set (that is, no errors occurred). |
|
|
|
Creates the associated TStreamableTypes object types. Called by the TStreamableClass constructor. |
|
|
Overloads the pointer-to-void cast operator. Returns 0 if operation has failed (that is, fail() returned nonzero); otherwise returns nonzero. |
|
|
Overloads the NOT operator. Returns the value returned by fail(). |
|
|
Returns the bp pointer to this stream's assigned buffer. |
|
|
Returns the current state value. |
|
|
Undocumented. |
|
|
Updates the state data member with state |= (b & 0 xFF). |
|
|
Pointer to the stream buffer. Definition at line 520 of file tobjstrm.h. |
|
|
The format state flags, as enumerated in ios. Use rdstate() to access the current state. Definition at line 525 of file tobjstrm.h. |
|
|
Pointer to the TStreamableTypes data base of all registered types in this application. Definition at line 538 of file tobjstrm.h. |
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001