libpgf 7.21.2
PGF - Progressive Graphics File
|
File stream class. More...
#include <PGFstream.h>
Public Member Functions | |
CPGFFileStream () | |
CPGFFileStream (HANDLE hFile) | |
HANDLE | GetHandle () |
virtual | ~CPGFFileStream () |
virtual void | Write (int *count, void *buffer) |
virtual void | Read (int *count, void *buffer) |
virtual void | SetPos (short posMode, INT64 posOff) |
virtual UINT64 | GetPos () const |
virtual bool | IsValid () const |
Protected Attributes | |
HANDLE | m_hFile |
file handle | |
File stream class.
A PGF stream subclass for external storage files.
Definition at line 82 of file PGFstream.h.
|
inline |
Definition at line 87 of file PGFstream.h.
|
inline |
Constructor
hFile | File handle |
Definition at line 90 of file PGFstream.h.
|
inlinevirtual |
Definition at line 94 of file PGFstream.h.
|
inline |
|
virtual |
Get current stream position.
Implements CPGFStream.
Definition at line 64 of file PGFstream.cpp.
|
inlinevirtual |
Check stream validity.
Implements CPGFStream.
Definition at line 99 of file PGFstream.h.
|
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 |
Implements CPGFStream.
Definition at line 48 of file PGFstream.cpp.
|
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) |
Implements CPGFStream.
Definition at line 57 of file PGFstream.cpp.
|
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 |
Implements CPGFStream.
Definition at line 38 of file PGFstream.cpp.
|
protected |
file handle
Definition at line 84 of file PGFstream.h.