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

Streaming Macros

Syntax

#define IMPLEMENT_STREAMABLE4(cls, base1, base2, base3, base4)
Definition objstrm.h:1728
#define IMPLEMENT_STREAMABLE1(cls, base1)
Definition objstrm.h:1725
#define IMPLEMENT_STREAMABLE3(cls, base1, base2, base3)
Definition objstrm.h:1727
#define IMPLEMENT_STREAMABLE2(cls, base1, base2)
Definition objstrm.h:1726
#define IMPLEMENT_STREAMABLE(cls)
Definition objstrm.h:1724
#define IMPLEMENT_STREAMABLE5(cls, base1, base2, base3, base4, base5)
Definition objstrm.h:1729

Header File

objstrm.h

Description

These macros generate the registration object for the class via IMPLEMENT_STREAMABLE_CLASS, and generate the various member functions that are needed for a streamable class via IMPLEMENT_ABSTRACT_STREAMABLE. IMPLEMENT_STREAMABLE is used when the class has no base classes other than TStreamableBase. Its only parameter is the name of the class. The numbered versions (IMPLEMENT_STREAMABLE1, IMPLEMENT_STREAMABLE2, etc.) are for classes that have bases. Each base class, including all virtual bases, must be listed in the IMPLEMENT_STREAMABLE macro invocation.

The individual components comprising the above macros can be used separately for special situations, such as custom constructors.