SourcePro® 2024.1 |
SourcePro® API Reference Guide |
Handle class for object input stream implementation classes. More...
#include <rw/serial/RWObjectInputStream.h>
Public Member Functions | |
RWObjectInputStream (const RWObjectInputStream &handle) | |
RWObjectInputStream (RWObjectInputStreamImp *body) | |
void | closeContext (bool readContext=true) |
void | endAssoc () |
void | endBlock () |
void | endElement () |
void | endMap () |
void | endMember () |
void | endParent () |
void | endSequence () |
void * | getNewObject (const std::type_info *base) |
void | getString (RWCString &value) |
void | getString (std::string &value) |
void | getSymbol (RWSymbol &value) |
void | getUString (RWBasicUString &value) |
void | getWString (RWWString &value) |
void | openContext (bool readContext=true) |
RWObjectInputStream & | operator= (const RWObjectInputStream &handle) |
RWSymbol | readTypeInfo () |
void | rememberObject (const void *obj) |
void | startAssocKey () |
void | startAssocValue () |
RWSymbol | startBlock () |
void | startElement (int &position) |
RWSymbol | startMap (int &count, RWStreamType &keyType, RWStreamType &valueType) |
bool | startMember (RWSymbol &memberName, RWStreamType &memberType) |
void | startParent (const RWSymbol &typeInfo) |
RWSymbol | startSequence (int &count, RWStreamType &elementType) |
![]() | |
RWDataInputStream (const RWDataInputStream &handle) | |
RWDataInputStream (RWDataInputStreamImp *ptr) | |
RWSize | available () const |
void | close () |
void | getBool (bool &value) |
RWSize | getBools (bool *arrayPt, RWSize count) |
void | getChar (char &value) |
void | getCharacter (char &value) |
RWSize | getChars (char *arrayPt, RWSize count) |
RWSize | getDelimitedString (char *string, RWSize maxCount, char delim='\0') |
RWSize | getDelimitedUString (RWUChar *ustring, RWSize maxCount, RWUChar delim) |
RWSize | getDelimitedWString (wchar_t *wstring, RWSize maxCount, wchar_t delim=L'\0') |
void | getDouble (double &value) |
RWSize | getDoubles (double *arrayPt, RWSize count) |
void | getFloat (float &value) |
RWSize | getFloats (float *arrayPt, RWSize count) |
void | getInt (int &value) |
RWSize | getInts (int *arrayPt, RWSize count) |
void | getLong (long &value) |
void | getLongDouble (long double &value) |
RWSize | getLongDoubles (long double *arrayPt, RWSize count) |
void | getLongLong (long long &value) |
RWSize | getLongLongs (long long *arrayPt, RWSize count) |
RWSize | getLongs (long *arrayPt, RWSize count) |
void | getShort (short &value) |
RWSize | getShorts (short *arrayPt, RWSize count) |
void | getSignedChar (signed char &value) |
RWSize | getSignedChars (signed char *arrayPt, RWSize count) |
void | getSizeT (size_t &value) |
RWSize | getString (char *string, RWSize count) |
void | getUCharacter (RWUChar &value) |
void | getUnsignedChar (unsigned char &value) |
RWSize | getUnsignedChars (unsigned char *arrayPt, RWSize count) |
void | getUnsignedInt (unsigned int &value) |
RWSize | getUnsignedInts (unsigned int *arrayPt, RWSize count) |
void | getUnsignedLong (unsigned long &value) |
RWSize | getUnsignedLongLongs (unsigned long long *arrayPt, RWSize count) |
RWSize | getUnsignedLongs (unsigned long *arrayPt, RWSize count) |
void | getUnsignedShort (unsigned short &value) |
RWSize | getUnsignedShorts (unsigned short *arrayPt, RWSize count) |
RWSize | getUString (RWUChar *ustring, RWSize count) |
void | getWchar_t (wchar_t &value) |
RWSize | getWchar_ts (wchar_t *arrayPt, RWSize count) |
void | getWCharacter (wchar_t &value) |
RWSize | getWString (wchar_t *wstring, RWSize count) |
bool | isBad () const |
bool | isEof () const |
bool | isFail () const |
bool | isGood () const |
RWDataInputStream & | operator= (const RWDataInputStream &handle) |
RWDataInputStream & | operator>> (bool &value) |
RWDataInputStream & | operator>> (char &value) |
RWDataInputStream & | operator>> (double &value) |
RWDataInputStream & | operator>> (float &value) |
RWDataInputStream & | operator>> (int &value) |
RWDataInputStream & | operator>> (long &value) |
RWDataInputStream & | operator>> (long double &value) |
RWDataInputStream & | operator>> (long long &value) |
RWDataInputStream & | operator>> (RWDataInputStream &(*pf)(RWDataInputStream &)) |
RWDataInputStream | operator>> (RWDataInputStream(*pf)(RWDataInputStream &)) |
RWDataInputStream & | operator>> (short &value) |
RWDataInputStream & | operator>> (signed char &value) |
RWDataInputStream & | operator>> (unsigned char &value) |
RWDataInputStream & | operator>> (unsigned int &value) |
RWDataInputStream & | operator>> (unsigned long &value) |
RWDataInputStream & | operator>> (unsigned short &value) |
RWDataInputStream & | operator>> (wchar_t &value) |
RWSize | skip (RWSize numUnits) |
![]() | |
bool | isValid (void) const |
bool | operator!= (const RWHandleBase &second) const |
bool | operator== (const RWHandleBase &second) const |
Static Public Member Functions | |
static RWTFactory1< void *, RWCString, RWSymbol > * | getFactory () |
Additional Inherited Members | |
![]() | |
RWHandleBase (const RWHandleBase &second) | |
RWHandleBase (RWBodyBase *body) | |
RWHandleBase (RWStaticCtor) | |
RWHandleBase (void) | |
~RWHandleBase (void) | |
RWBodyBase & | body (void) const |
RWHandleBase & | operator= (const RWHandleBase &second) |
![]() | |
RWDataInputStream | rwGuard (RWDataInputStream &stream) |
RWObjectInputStream is the handle class for object input stream implementation classes. Implements the handle idiom from the handle/body pattern. With the exception of constructors, assignment operators, and getFactory(), all member functions forward directly to the implementation associated with this handle during construction.
|
inlineexplicit |
Constructor.
body | Stream Implementation to associate with this handle. |
|
inline |
Copy constructor. Throws no exceptions.
handle | Data stream handle used to initialize this handle. |
|
inline |
Called by RWWithObjectInputContext dtor
to close an open context.
|
inline |
Called by the input operators for association types after each value.
|
inline |
Inputs tokens that identify the end of an object.
|
inline |
Called by the input operators for collection types after each element in a sequence.
|
inline |
Called by the input operators for association types after all the pairs.
|
inline |
Called by streamContents() after each data member is read.
|
inline |
Inputs tokens that identify the end of an parent class.
|
inline |
Called by the input operators for collection types at the end of a sequence.
Obtains the singleton factory used to create objects dynamically from streams.
|
inline |
Reads the dynamic type information (derived class) from the input stream, and factories an instance of this type.
base | The static type (base class) of the field being read. |
|
inline |
|
inline |
Reads a std::string value from the stream.
value | The std::string value to be read from the stream. |
|
inline |
|
inline |
Reads an RWBasicUString value from the stream.
value | The RWBasicUString value to be read from the stream. |
|
inline |
|
inline |
Called by RWWithObjectInputContext ctor
to open a context in which multiple references to a single object are resolved.
|
inline |
Assignment operator. Throws no exceptions.
handle | Data stream handle used to initialize this handle. |
|
inline |
Reads the type information for a class instance from the stream and returns it as a symbol.
|
inline |
Called by streaming operators to record each instance streamed in, in case it is referenced again in the same context.
|
inline |
Called by the input operators for association types before each key.
|
inline |
Called by the input operators for association types after each key and before each value.
|
inline |
|
inline |
Called by the input operators for collection types before each element in a sequence.
position | Contains the position of the element in the collection. |
|
inline |
Called by the input operators for association types (hash tables, etc.) at the start of a sequence. Returns an RWSymbol representing the collection.
count | Contains the number of items in the association. |
keyType | Contains the type of key in the association. |
valueType | Contains the type of value in the association. |
|
inline |
Called for before each data member by the streamContents() function. Metadata about the field may or may not be read from the stream depending on the implementation. If data is read, returns true
and parameter memberName will contain the name of the member; otherwise returns false
.
|
inline |
Inputs tokens that identify the start of a parent class.
typeInfo | Identifies the type of the parent class, if such information is available. |
|
inline |
Called by the input operators for collection types at the start of a sequence. Returns an RWSymbol representing the collection.
count | Contains the number of items in the collection. |
elementType | Contains the type of element in the collection. |
Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |