SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Proxy object for inserting objects with an instance name into object streams. More...
#include <rw/serial/RWTInsertProxy.h>
Public Member Functions | |
RWTInsertProxy (RWCString myName, T &myObject) | |
Related Functions | |
(Note that these are not member functions.) | |
template<class T > | |
RWTInsertProxy< T > | rwInsertWithName (RWCString myName, T &myObject) |
Global function that inserts an object and its name into an object stream. |
A proxy object for inserting objects with an instance name into object streams.
This class is typically used by calling the convenience global function rwInsertWithName.
RWTInsertProxy< T >::RWTInsertProxy | ( | RWCString | myName, | |
T & | myObject | |||
) | [inline] |
Constructs a proxy object using the parameter myName for the instance name and myObject
for the instance object. Inserting the proxy object into an object stream will cause the string contained by myName to be used as the name for the object.
Not all object streams support this feature. For example, the compact object streams in the Serialization package do not provide support, while the XML object streams in the XML Streams Module do provide support.
RWTInsertProxy< T > rwInsertWithName | ( | RWCString | myName, | |
T & | myObject | |||
) | [related] |
Global function that inserts an object and its name into an object stream.
#include <rw/serial/RWTInsertProxy.h>
out << rwInsertWithName( "foo", foo );
© 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.