OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
owl::TOldStreamer Class Reference

Provides a base class for all streamable objects. More...

#include <owl/objstrm.h>

Inheritance diagram for owl::TOldStreamer:
owl::TStreamer

Public Member Functions

 TOldStreamer (TStreamable *obj)
 Constructs the TOldStreamer object, and initializes the streamable object pointer.
 
- Public Member Functions inherited from owl::TStreamer
virtual ~TStreamer ()
 
TStreamableBaseGetObject () const
 Returns the address of the TStreamableBase component of the streamable object.
 

Protected Member Functions

virtual LPCSTR StreamableName () const
 This pure virtual member function must be redefined for every streamable class.
 
virtual voidRead (ipstream &is, uint32) const
 This pure virtual member function must be redefined for every streamable class.
 
virtual void Write (opstream &os) const
 This pure virtual function must be redefined for every streamable class.
 
- Protected Member Functions inherited from owl::TStreamer
 TStreamer (TStreamableBase *obj)
 Constructs the TStreamer object, and initializes the streamable object pointer.
 

Detailed Description

Provides a base class for all streamable objects.

Definition at line 174 of file objstrm.h.

Constructor & Destructor Documentation

◆ TOldStreamer()

owl::TOldStreamer::TOldStreamer ( TStreamable * obj)
inline

Constructs the TOldStreamer object, and initializes the streamable object pointer.

Definition at line 180 of file objstrm.h.

Member Function Documentation

◆ Read()

virtual void * owl::TOldStreamer::Read ( ipstream & is,
uint32  ) const
inlineprotectedvirtual

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.

Implements owl::TStreamer.

Definition at line 196 of file objstrm.h.

References STATIC_CAST.

◆ StreamableName()

virtual LPCSTR owl::TOldStreamer::StreamableName ( ) const
inlineprotectedvirtual

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.

Implements owl::TStreamer.

Definition at line 188 of file objstrm.h.

References STATIC_CAST.

◆ Write()

virtual void owl::TOldStreamer::Write ( opstream & os) const
inlineprotectedvirtual

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.

Implements owl::TStreamer.

Definition at line 206 of file objstrm.h.

References STATIC_CAST.


The documentation for this class was generated from the following file: