Macro Summary
Table 158 lists the macros most commonly used for serialization. The following sections explain how to use these macros.
|
Name |
Use |
|
Intrusive or external serialization |
|
|
|
When a derived class has a non-public default constructor, use this macro for each base class that might be streamed in as a polymorphic pointer. Intrusive or external. Put in header file inside the derived class declaration. |
|
|
Declares global serialization operators for streaming maps (associations) of pointers. Intrusive or external. Put in header file outside the class declaration. |
|
|
Declares global serialization operators for streaming Rogue Wave pointer-based template collections. Intrusive or external. Put in header file outside the class declaration. |
|
|
Declares global serialization operators for streaming maps (associations) of Standard C++ Library types. Intrusive or external. Put in header file outside the class declaration. |
|
|
Declares global serialization operators for streaming Standard C++ Library sequences. Intrusive or external. Put in header file outside the class declaration. |
|
|
Declares global serialization operators for streaming maps (associations) of value-based templates. Intrusive or external. Put in header file outside the class declaration. |
|
|
Declares global serialization operators for streaming Rogue Wave value-based template collections. Intrusive or external. Put in header file outside the class |
|
|
Declares global serialization operators for streaming maps (associations) of |
|
|
Declares global serialization operators for streaming Rogue Wave RWCollectable based collections. Intrusive or external. Put in header file outside the class declaration. |
|
|
Defines global serialization operators to provide serialization support for template classes. (For other classes, use |
|
Intrusive serialization only |
|
|
|
Declares |
|
|
Declares global serialization operators, for streaming most class types. Intrusive. Put in header file outside the class declaration. |
|
|
Declares class's factory and its registrar. Intrusive. Place in header file outside class declaration. |
|
|
Declares class's factory registrar for serialization through base class pointers. Place in header file outside class declaration. |
|
External serialization only |
|
|
|
Declares |
|
|
Declares the serialization streaming operators for streaming objects through pointers to class objects. |
|
|
Declares the factory for the class and declares the factory's registrar. Place in header file outside the class declaration. |
|
|
Declares the factory registrar for streaming objects through pointers to base classes. Place after the macro above. |
|
Name |
Use |
|
Intrusive or external serialization |
|
|
|
Used in custom code to access the object input stream. |
|
|
Used in custom code to access the object output stream. |
|
|
Identifies an attribute of the class to be streamed in terms of a |
|
|
Identifies a data member as an attribute of the class. If using external streaming, the data member must be public. |
|
|
Used to insert custom code into stream contents that only executes during input operations. |
|
|
Used to insert custom code into stream contents that only executes during output operations. |
|
Intrusive serialization only |
|
|
|
Starts the |
|
|
Allows concrete derived types to be streamed out and streamed back in as pointers to their base class. Put in source file for class. (For external, use |
|
|
Apply this macro to a class if its instantiations will be serialized as pointers directly to the instantiations. (For external, use |
|
|
Defines the global serialization operators for pointers. Put in source file for class. (For external, use |
|
|
Ends the |
|
|
For classes derived from a serializable base class. Calls |
|
External serialization only |
|
|
|
Starts the |
|
|
Allows concrete derived types to be streamed out and streamed back in as pointers to their base class. Put in separate source file. (For intrusive, use |
|
|
Defines the global serialization operators. Put in separate source file. (For intrusive, use |
|
|
Apply this macro to a class if its instantiations will be serialized as pointers directly to the instantiations. Put in separate source file. (For intrusive, use |
|
|
Ends the |
|
|
For classes derived from a serializable base class. Calls |