Inheritance diagram for CP_SocketInStream:
Public Member Functions | |
Reading | |
virtual UInt32 | ReadBytes (void *inDestBuffer, UInt32 inNumberBytes, bool inAllowPartialData=false) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Tags | |
bool | HasTaggedData () const |
SInt32 | GetTag () |
Reading | |
virtual UInt32 | ReadBytes (void *inDestBuffer, UInt32 inNumberBytes, bool inAllowPartialData=false) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Tags | |
bool | HasTaggedData () const |
SInt32 | GetTag () |
Reading | |
virtual UInt32 | ReadBytes (void *inDestBuffer, UInt32 inNumberBytes, bool inAllowPartialData=false) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Tags | |
bool | HasTaggedData () const |
SInt32 | GetTag () |
Reading | |
virtual UInt32 | ReadBytes (void *inDestBuffer, UInt32 inNumberBytes, bool inAllowPartialData=false) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Tags | |
bool | HasTaggedData () const |
SInt32 | GetTag () |
Constructor / Destructor | |
CP_SocketInStream (class CP_Socket &inSocket, bool inHasHeader=true) | |
Constructor. | |
virtual | ~CP_SocketInStream () throw () |
Destructor. | |
Testing | |
virtual bool | IsEOF () const |
Utility | |
virtual void | Close () |
Reading | |
virtual UInt32 | ReadBytes (void *inDestBuffer, UInt32 inNumberBytes, bool inAllowPartialData=false) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Tags | |
bool | HasTaggedData () const |
SInt32 | GetTag () |
Protected Member Functions | |
virtual UInt32 | OnReadBytes (void *inDestBuffer, UInt32 inNumberBytes) |
Reading | |
virtual void | ReadHeader () |
Reading | |
virtual void | ReadHeader () |
Reading | |
virtual void | ReadHeader () |
Reading | |
virtual void | ReadHeader () |
Protected Attributes | |
CP_Socket & | fSocket |
bool | fHasReadHeader |
bool | fNeedsByteSwap |
UInt16 | fCPLATStreamVersion |
bool | fHasTaggedData |
bool | fHasHeader |
char | fDesiredEdian |
Private Member Functions | |
Constructor / Destructor | |
CP_SocketInStream () | |
Constructor. | |
CP_SocketInStream (const CP_SocketInStream &ob) | |
operators | |
CP_SocketInStream & | operator= (const CP_SocketInStream &obj) |
Getters | |
virtual UInt32 | GetLength () const |
virtual UInt32 | GetPosition () const |
Setters | |
virtual void | SetPosition (UInt32 inPosition) |
Private Attributes | |
bool | fIsAtEOF |
|
Constructor.
|
|
Destructor.
|
|
|
|
|
|
Return true if our stream is at the end.
Reimplemented from CP_InStream. |
|
Close the input stream of our socket.
|
|
Read inNumberBytes of data to the buffer pointed to by inDestBuffer from our stream. This function returns the actual number of bytes read from the socket.
Implements CP_InStream. |
|
|
|
Get the number of bytes our socket has available.
Implements CP_InStream. |
|
Override, super class is irrelevant (we always return 0).
Implements CP_InStream. |
|
Override, super class is irrelevant.
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 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.
|
|
|
|
|
|
|
|
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. |