OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
DECLARE_STREAMABLE_FROM_BASE macro

Streaming Macros

Header File

objstrm.h

Syntax

#define DECLARE_STREAMABLE_FROM_BASE(exp, cls, base)
Definition objstrm.h:1517

Description

This macro is used in the same way as DECLARE_STREAMABLE, but in the case where the class being defined can be written and read using Read and Write functions defined in its base class without change. This usually occurs when a derived class overrides virtual functions in its base or provides different constructors, but does not add any data members.

If you used DECLARE_STREAMABLE in this case, you would have to write Read and Write functions that merely called the base's Read and Write functions. Using DECLARE_STREAMABLE_FROM_BASE prevents this.