Inheritance diagram for CP_HandleBlockInStream:
Public Member Functions | |
Constructor / Destructor | |
CP_HandleBlockInStream (const CP_HandleBlock *inBlock, bool inHasHeader=true) | |
Constructor. | |
CP_HandleBlockInStream (const CP_HandleBlock *inBlock, UInt32 inBeginPosition, bool inHasHeader=true) | |
virtual | ~CP_HandleBlockInStream () throw () |
Destructor. | |
Getters | |
virtual UInt32 | GetLength () const |
HandleBlock | |
const CP_HandleBlock * | GetHandleBlock () const |
void | SetHandleBlock (const CP_HandleBlock *inHandleBlock) |
Positioners | |
virtual UInt32 | GetPosition () const |
virtual void | SetPosition (UInt32 inPosition) |
Protected Member Functions | |
Reading | |
virtual UInt32 | OnReadBytes (void *inDestBuffer, UInt32 inNumberBytes) |
Protected Attributes | |
const CP_HandleBlock * | fHandleBlock |
UInt32 | fCurrentPosition |
bool | fHasReadHeader |
bool | fNeedsByteSwap |
UInt16 | fCPLATStreamVersion |
bool | fHasTaggedData |
bool | fHasHeader |
char | fDesiredEdian |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Returns the length of the handle block used with this stream.
Implements CP_InStream. |
|
|
|
Sets the CP_HandleBlock associated with this stream. The handle block must exist as long as this object still needs it.
|
|
Returns the current position marker to indicate the current position we are writing to our stream.
Implements CP_InStream. |
|
Sets the current position marker to mark the current position in our output stream.
Implements CP_InStream. |
|
Reads data from our handle block, placing the data in the passed in buffer. The buffer should be at least as large as the passed in inBytesToRead. This method will return the actual number of bytes read.
Implements CP_InStream. |
|
Reads some data from the stream. Used by the >> operators to read the data, but can also be used in an application.
|
|
|
|
|
|
|
|
|
|
Returns true if the stream has reached the end.
Reimplemented in CP_SocketInStream. |
|
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.
|
|
Reads the header portion of our stream.
|
|
|
|
The CP_HandleBlock object we are reading from. |
|
|
|
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. |