|
libpgf
6.11.32
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) THROW_ |
| virtual void | Read (int *count, void *buffer) THROW_ |
| virtual void | SetPos (short posMode, INT64 posOff) THROW_ |
| virtual UINT64 | GetPos () const THROW_ |
| virtual bool | IsValid () const |
Protected Attributes | |
| HANDLE | m_hFile |
File stream class.
A PGF stream subclass for external storage files.
| CPGFFileStream::CPGFFileStream | ( | ) | [inline] |
Definition at line 87 of file PGFstream.h.
: m_hFile(0) {}
| CPGFFileStream::CPGFFileStream | ( | HANDLE | hFile | ) | [inline] |
Constructor
| hFile | File handle |
Definition at line 90 of file PGFstream.h.
: m_hFile(hFile) {}
| virtual CPGFFileStream::~CPGFFileStream | ( | ) | [inline, virtual] |
Definition at line 94 of file PGFstream.h.
{ m_hFile = 0; }
| HANDLE CPGFFileStream::GetHandle | ( | ) | [inline] |
| UINT64 CPGFFileStream::GetPos | ( | ) | const [virtual] |
Get current stream position.
Implements CPGFStream.
Definition at line 64 of file PGFstream.cpp.
| virtual bool CPGFFileStream::IsValid | ( | ) | const [inline, virtual] |
Check stream validity.
Implements CPGFStream.
Definition at line 99 of file PGFstream.h.
{ return m_hFile != 0; }
| void CPGFFileStream::Read | ( | int * | count, |
| void * | buffer | ||
| ) | [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.
| void CPGFFileStream::SetPos | ( | short | posMode, |
| INT64 | posOff | ||
| ) | [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.
| void CPGFFileStream::Write | ( | int * | count, |
| void * | buffer | ||
| ) | [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.
HANDLE CPGFFileStream::m_hFile [protected] |
Definition at line 84 of file PGFstream.h.