SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Represents a guard object that opens and closes a context within a lexical scope for input streams. More...
#include <rw/serial/RWObjectInputStream.h>
Public Member Functions | |
RWWithObjectInputContext (RWObjectInputStream &strm, bool readContext=true) | |
RWWithObjectInputContext (RWObjectInputStreamImp *strm, bool readContext=true) | |
~RWWithObjectInputContext () | |
This class consists of a guard object that opens and closes a context within a lexical scope. To use RWWithObjectInputContext, simply declare an automatic instance of this class initialized with a object input stream, and all object references within the scope of the automatic variable will be streamed within the same context.
|
inline |
Constructor taking an object input stream reference argument. If readContext is true
, then read in any document header at the outer context.
|
inline |
Constructor taking an object input stream pointer argument. If readContext is true
, then read in any document header at the outer context.
|
inline |
Destructor automatically closes context.
Copyright © 2014 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.
Provide feedback to Rogue Wave about its documentation.