![]() |
Scribus
Open source desktop publishing at your fingertips
|
Abstract stream base class. More...
#include <PGFstream.h>
Public Member Functions | |
CPGFStream () | |
Standard constructor. | |
virtual | ~CPGFStream () |
Standard destructor. | |
virtual void | Write (int *count, void *buffer)=0 |
virtual void | Read (int *count, void *buffer)=0 |
virtual void | SetPos (short posMode, INT64 posOff)=0 |
virtual UINT64 | GetPos () const =0 |
virtual bool | IsValid () const =0 |
Abstract stream base class.
Abstract stream base class.
|
pure virtual |
Get current stream position.
Implemented in CPGFMemoryStream, and CPGFFileStream.
|
pure virtual |
Check stream validity.
Implemented in CPGFMemoryStream, and CPGFFileStream.
|
pure virtual |
Read some bytes from this stream and stores them into a buffer.
count | A pointer to a value containing the number of bytes should be read. After this call it contains the number of read bytes. |
buffer | A memory buffer |
Implemented in CPGFMemoryStream, and CPGFFileStream.
|
pure virtual |
Set stream position either absolute or relative.
posMode | A position mode (FSFromStart, FSFromCurrent, FSFromEnd) |
posOff | A new stream position (absolute positioning) or a position offset (relative positioning) |
Implemented in CPGFMemoryStream, and CPGFFileStream.
|
pure virtual |
Write some bytes out of a buffer into this stream.
count | A pointer to a value containing the number of bytes should be written. After this call it contains the number of written bytes. |
buffer | A memory buffer |
Implemented in CPGFMemoryStream, and CPGFFileStream.