Inheritance diagram for CP_SocketOutStream:
Public Member Functions | |
Writing | |
virtual void | WriteBytes (const void *inBuffer, UInt32 inNumberBytes) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Tags | |
bool | HasTaggedData () const |
void | WriteTag (SInt32 inTag) |
Writing | |
virtual void | WriteBytes (const void *inBuffer, UInt32 inNumberBytes) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Tags | |
bool | HasTaggedData () const |
void | WriteTag (SInt32 inTag) |
Writing | |
virtual void | WriteBytes (const void *inBuffer, UInt32 inNumberBytes) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Positioning | |
virtual UInt32 | GetPosition () const |
virtual void | SetPosition (UInt32) |
Tags | |
bool | HasTaggedData () const |
void | WriteTag (SInt32 inTag) |
Writing | |
virtual void | WriteBytes (const void *inBuffer, UInt32 inNumberBytes) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Tags | |
bool | HasTaggedData () const |
void | WriteTag (SInt32 inTag) |
Constructor / Destructor | |
CP_SocketOutStream (class CP_Socket &inSocket, bool inHasHeader, bool inHasDebugTags=false) | |
Constructor. | |
virtual | ~CP_SocketOutStream () throw () |
Destructor. | |
Misc | |
virtual void | Flush () |
virtual void | Close () |
Writing | |
virtual void | WriteBytes (const void *inBuffer, UInt32 inNumberBytes) |
ByteSwapping | |
bool | NeedsByteSwap () const |
void | SetNeedsByteSwap (bool doSwap) |
Getters | |
UInt16 | GetStreamVersion () const |
bool | HasHeader () const |
Positioning | |
virtual UInt32 | GetPosition () const |
virtual void | SetPosition (UInt32) |
Tags | |
bool | HasTaggedData () const |
void | WriteTag (SInt32 inTag) |
Protected Member Functions | |
Writing | |
virtual void | WriteHeader () |
Writing | |
virtual void | WriteHeader () |
Writing | |
virtual void | WriteHeader () |
Writing | |
virtual void | OnWriteBytes (const void *inBuffer, UInt32 inBytesToWrite) |
Writing | |
virtual void | WriteHeader () |
Protected Attributes | |
CP_Socket & | fSocket |
bool | fHeaderWasWritten |
bool | fNeedsByteSwap |
UInt32 | fCurrentPosition |
UInt16 | fCPLATStreamVersion |
bool | fHasTaggedData |
bool | fHasHeader |
Private Member Functions | |
Constructor / Destructor | |
CP_SocketOutStream () | |
Constructor. | |
CP_SocketOutStream (const CP_SocketOutStream &obj) | |
operators | |
CP_SocketOutStream & | operator= (const CP_SocketOutStream &obj) |
|
Constructor.
|
|
Destructor.
|
|
|
|
|
|
Flush our socket's output stream.
|
|
Close our socket's output stream.
|
|
Write inBytesToWrite of data from the buffer pointed to by inBuffer to our stream. This function returns the actual number of bytes written to the stream.
Reimplemented from CP_OutStream. |
|
|
|
Writes a number of butes from the passed in buffer to the stream.
|
|
|
|
|
|
Returns the stream version used to write this data.
|
|
|
|
Return the current position of our marker. Subclasses must override this.
Reimplemented in CP_FileOutStream, CP_HandleBlockOutStream, and CP_PtrBlockOutStream. |
|
Sets the current position of our marker. Subclasses must override this.
Reimplemented in CP_FileOutStream, CP_HandleBlockOutStream, and CP_PtrBlockOutStream. |
|
Returns a flag to indicate if the data in the stream is tagged with the type of data written before the actual data. Used in debugging streams.
|
|
Writes the passed in tag out to the stream. This is used when the user has indicated they want to write tags before each element in the streamed data.
|
|
Writes the header out to the stream.
|
|
|
|
|
|
Flag to indicate if the header has been written to the stream. |
|
Flag to indicate if we need to byte swap the data. |
|
The current position in the stream to write the next data to. |
|
Version of the stream data. |
|
|