Inheritance diagram for CP_InStream:

Getters | |
| virtual UInt32 | GetLength () const =0 |
| UInt16 | GetStreamVersion () const |
| bool | HasHeader () const |
Positioning | |
| virtual UInt32 | GetPosition () const =0 |
| virtual void | SetPosition (UInt32 inPosition)=0 |
| virtual bool | IsEOF () const |
Reading | |
| virtual UInt32 | OnReadBytes (void *inDestBuffer, UInt32 inNumberBytes)=0 |
| virtual void | ReadHeader () |
Public Member Functions | |
Constructor / Destructor | |
| CP_InStream (bool inHasHeader=true, char inDesiredEdian=kCP_StreamData_PlatformEdian) | |
| Constructor. | |
| CP_InStream (const CP_InStream &inStream) | |
| virtual | ~CP_InStream () throw () |
| Destructor. | |
Operators | |
| CP_InStream & | operator= (const CP_InStream &inStream) |
Protected Attributes | |
| bool | fHasReadHeader |
| bool | fNeedsByteSwap |
| UInt16 | fCPLATStreamVersion |
| bool | fHasTaggedData |
| bool | fHasHeader |
| char | fDesiredEdian |
|
||||||||||||
|
Constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
||||||||||||||||
|
Reads some data from the stream. Used by the >> operators to read the data, but can also be used in an application.
|
|
|
|
|
|
|
|
|
Implemented in CP_FileInStream, CP_HandleBlockInStream, CP_PtrBlockInStream, and CP_SocketInStream. |
|
|
|
|
|
|
|
|
Implemented in CP_FileInStream, CP_HandleBlockInStream, CP_PtrBlockInStream, and CP_SocketInStream. |
|
|
Implemented in CP_FileInStream, CP_HandleBlockInStream, CP_PtrBlockInStream, and CP_SocketInStream. |
|
|
Returns true if the stream has reached the end.
Reimplemented in CP_SocketInStream. |
|
|
Assignment operator. Copy the data from the passed in inStream to this stream.
|
|
|
Returns true if the data type is written before each elemement. This is intended in debugging the stream data since it increases the size of the resulting stream.
|
|
|
Reads the tag before a data element if the streamed data has tagged data.
|
|
||||||||||||
|
Implemented in CP_FileInStream, CP_HandleBlockInStream, CP_PtrBlockInStream, and CP_SocketInStream. |
|
|
Reads the header portion of our stream.
|
|
|
|
|
|
Flag to indicate if we have read the header. |
|
|
Flag to indicate if we need to byte swap the data. |
|
|
CPLAT stream version used to write this stream. |
|
|
Flag to indicate if the data has its type written out also. |
|
|
Flag to indicate if we are want to read data not created by this framework and therefore won't have a correct header. |
1.4.0