Inheritance diagram for CP_OutStream:
Writing | |
virtual void | OnWriteBytes (const void *, UInt32) |
virtual void | WriteHeader () |
Public Member Functions | |
Constructor / Destructor | |
CP_OutStream (bool inHasHeader, bool inHasDebugTags=false) | |
Constructor. | |
CP_OutStream (const CP_OutStream &inStream) | |
virtual | ~CP_OutStream () throw () |
Destructor. | |
Operators | |
CP_OutStream & | operator= (const CP_OutStream &inStream) |
Protected Attributes | |
bool | fHeaderWasWritten |
bool | fNeedsByteSwap |
UInt32 | fCurrentPosition |
UInt16 | fCPLATStreamVersion |
bool | fHasTaggedData |
bool | fHasHeader |
|
Constructor.
|
|
Copy constructor.
|
|
Destructor.
|
|
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. |
|
Assignment operator. Assigns the data from the passed in CP_OutStream object.
|
|
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 out bytes to the stream. Subclasses must override to handle writing the data to the output stream.
Reimplemented in CP_FileOutStream, CP_HandleBlockOutStream, CP_PtrBlockOutStream, and CP_SocketOutStream. |
|
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. |
|
|