Inheritance diagram for CP_FileOutStream:
Public Member Functions | |
Constructor / Destructor | |
CP_FileOutStream (CP_File &inOutFile, bool inHasHeader=true) | |
Constructor. | |
virtual | ~CP_FileOutStream () throw () |
Destructor. | |
Positioning | |
virtual UInt32 | GetPosition () const |
virtual void | SetPosition (UInt32 newPosition) |
Protected Member Functions | |
Writing | |
virtual void | OnWriteBytes (const void *inDestBuffer, UInt32 inNumberBytes) |
virtual UInt32 | OnWriteData (const void *inDestBuffer, UInt32 inNumberBytes) |
Protected Attributes | |
CP_File & | fFile |
bool | fHeaderWasWritten |
bool | fNeedsByteSwap |
UInt32 | fCurrentPosition |
UInt16 | fCPLATStreamVersion |
bool | fHasTaggedData |
bool | fHasHeader |
|
Constructor.
|
|
Destructor.
|
|
Returns the current file position marker to indicate the current position we are writing to our stream.
Reimplemented from CP_OutStream. |
|
Sets the current file position marker to mark the current position in our output stream.
Reimplemented from CP_OutStream. |
|
Writes the passed in data to our file.
Reimplemented from CP_OutStream. |
|
Writes the passed in data to our file, returning the actual number of bytes written to the file.
|
|
Writes a number of butes from the passed in buffer to the stream.
|
|
|
|
|
|
Returns the stream version used to write this data.
|
|
|
|
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. |
|
|