SourcePro 11.1 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Classes | |
class | RWCompactObjectInputStreamImp |
Reads objects encoded in a compact format from the supplied RWDataInputStream. More... | |
class | RWCompactObjectOutputStreamImp |
Writes objects in a compact format to the supplied RWDataOutputStream. More... | |
class | RWDataFromVirtualInputStreamImp |
Adapter class that allows virtual input stream class RWvistream to be used where data input stream class RWDataInputStream is required. More... | |
class | RWDataToVirtualOutputStreamImp |
Adapter class that allows virtual output stream class RWvostream to be used where data output stream class RWDataOutputStream is required. More... | |
class | RWObjectInputStream |
Handle class for object input stream implementation classes. More... | |
class | RWWithObjectInputContext |
Represents a guard object that opens and closes a context within a lexical scope for input streams. More... | |
class | RWObjectInputStreamImp |
Base class for all object input stream implementations. More... | |
class | RWObjectOutputStream |
Handle class for all the object output stream implementation classes. More... | |
class | RWWithObjectOutputContext |
Represents a guard object that opens and closes a context within a lexical scope for output streams. More... | |
class | RWObjectOutputStreamImp |
Base class for all object output streams implementations. More... | |
class | RWTInsertProxy< T > |
Proxy object for inserting objects with an instance name into object streams. More... | |
Modules | |
Serialization Macros | |
Enumerations | |
enum | RWStreamType { RW_UNSUPPORTED, RW_CHAR, RW_WCHAR_T, RW_UNSIGNED_CHAR, RW_DOUBLE, RW_FLOAT, RW_INT, RW_UNSIGNED_INT, RW_LONG, RW_UNSIGNED_LONG, RW_SHORT, RW_UNSIGNED_SHORT, RW_STRING, RW_DATE, RW_OBJECT, RW_NESTED_OBJECT, RW_BOOL, RW_LONG_DOUBLE, RW_LONG_LONG, RW_UNSIGNED_LONG_LONG, RW_ID, RW_IDREF, RW_DECIMAL_PORTABLE, RW_DATETIME, RW_NAMESPACE, RW_TYPE, RW_SEQ, RW_SEQ_ELEMENT, RW_ASSOC, RW_ASSOC_ELEMENT } |
Functions | |
void | rwTranslateObjectPointer (RWObjectInputStream &istrm, RWObjectOutputStream &ostrm) |
void | rwTranslateObject (RWObjectInputStream &istrm, RWObjectOutputStream &ostrm) |
void | rwTranslateSequence (RWObjectInputStream &istrm, RWObjectOutputStream &ostrm) |
void | rwTranslateAssoc (RWObjectInputStream &istrm, RWObjectOutputStream &ostrm) |
The Serialization package provides a way to flatten objects, so they can be easily transported across communication boundaries or stored to disk. This object serialization mechanism includes two processes:
The classes, macros, and functions in the Serialization package help you to define serializable objects with a minimum of custom code, while retaining control over the formats and policies used. To make your C++ classes serializable, you instrument them with a small set of streaming macros. These macros encapsulate the details associated with streaming protocols, shielding your application from the implementation details but otherwise not affecting your application code. You have a choice of intrusive serialization for your own classes or external serialization for classes that you can't modify, such as classes from a third-party library. The Serialization package also includes a set of utility functions for streaming objects to and from various formats.
For complete information about the Serialization package, see the Advanced Tools Module User's Guide.
enum RWStreamType |
Constants used to encode simplified type information within annotated object streams.
void rwTranslateAssoc | ( | RWObjectInputStream & | istrm, | |
RWObjectOutputStream & | ostrm | |||
) |
Global function that reads from an annotated object input stream, and outputs to an object output stream. Not required to be annotated.
Reads a serialized mapping (hash dictionary) from istrm and writes it out to ostrm.
#include <rw/serial/objectStreamTranslate.h>
void rwTranslateObject | ( | RWObjectInputStream & | istrm, | |
RWObjectOutputStream & | ostrm | |||
) |
Global function that reads from an annotated object input stream, and outputs to an object output stream. Not required to be annotated.
Reads a serialized object value from istrm and writes it out to ostrm.
#include <rw/serial/objectStreamTranslate.h>
void rwTranslateObjectPointer | ( | RWObjectInputStream & | istrm, | |
RWObjectOutputStream & | ostrm | |||
) |
Global function that reads from an annotated object input stream, and outputs to an object output stream. Not required to be annotated.
Reads a serialized object pointer from istrm and writes it out to ostrm.
#include <rw/serial/objectStreamTranslate.h>
void rwTranslateSequence | ( | RWObjectInputStream & | istrm, | |
RWObjectOutputStream & | ostrm | |||
) |
Global function that reads from an annotated object input stream, and outputs to an object output stream. Not required to be annotated.
Reads a serialized sequence from istrm and writes it out to ostrm.
#include <rw/serial/objectStreamTranslate.h>
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.