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

Streaming Macros

Syntax

#define DECLARE_STREAMER(exp, cls, ver)
Definition objstrm.h:1265

Header File

objstrm.h

Description

This macro defines a nested class within your streamable class, and contains the core of the streaming code. DECLARE_STREAMER declares the Read and Write function declarations, whose definitions you must provide, and the Build function that calls the TStreamableClass constructor.

  • The first parameter should be a macro, which in turn should conditionally expand to either __import and __export, depending on whether or not the class is to be imported or exported from a DLL.
  • The second parameter is the streamable class name.
  • The third parameter is the object version number.