OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Provides a base class for all streamable objects. More...
#include <owl/objstrm.h>
Public Member Functions | |
virtual | ~TStreamer () |
TStreamableBase * | GetObject () const |
Returns the address of the TStreamableBase component of the streamable object. | |
Protected Member Functions | |
TStreamer (TStreamableBase *obj) | |
Constructs the TStreamer object, and initializes the streamable object pointer. | |
virtual LPCSTR | StreamableName () const =0 |
This pure virtual member function must be redefined for every streamable class. | |
virtual void * | Read (ipstream &, uint32) const =0 |
This pure virtual member function must be redefined for every streamable class. | |
virtual void | Write (opstream &) const =0 |
This pure virtual function must be redefined for every streamable class. | |
Friends | |
class | ipstream |
class | opstream |
|
inlineprotected |
|
inline |
Returns the address of the TStreamableBase component of the streamable object.
This pure virtual member function must be redefined for every streamable class.
It must read the necessary data members for the streamable class from the supplied ipstream.
Implemented in owl::TOldStreamer.
|
protectedpure virtual |
This pure virtual member function must be redefined for every streamable class.
It returns the name of the streamable class, which is used by the stream manager to register the streamable class. The name returned must be a zero-terminated string.
Implemented in owl::TOldStreamer, and owl::TNewStreamer.
Definition at line 152 of file objstrm.cpp.
This pure virtual function must be redefined for every streamable class.
It must write the necessary streamable class data members to the supplied opstream object. Write is usually implemented by calling the Write member function (if available) of a base class, and then inserting any additional data members for the derived class.
Implemented in owl::TOldStreamer.