SourcePro® 2021.1 |
SourcePro® API Reference Guide |
Product Documentation: SourcePro Documentation Home |
Represents a guard object that opens and closes a context within a lexical scope for output streams. More...
#include <rw/serial/RWObjectOutputStream.h>
Public Member Functions | |
RWWithObjectOutputContext (RWObjectOutputStream &strm, bool writeContext=true) | |
RWWithObjectOutputContext (RWObjectOutputStreamImp *strm, bool writeContext=true) | |
~RWWithObjectOutputContext () | |
This class consists of a guard object that opens and closes a context within a lexical scope. Simply declare an automatic instance of this class initialized with a object output stream, and all object references within the scope of the automatic variable will be streamed within the same context.
|
inline |
Constructor taking an object output stream reference argument. If writeContext is true
, then write out any document header at the outer context.
|
inline |
Constructor taking an object output stream pointer argument. If writeContext is true
, then write out in any document header at the outer context.
|
inline |
Destructor automatically closes the context.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |