libpgf 7.26.45
PGF - Progressive Graphics File
Loading...
Searching...
No Matches
pgf::CPGFStream Class Referenceabstract

Abstract stream base class. More...

#include <PGFstream.h>

Inheritance diagram for pgf::CPGFStream:
pgf::CPGFFileStream pgf::CPGFMemoryStream

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_t posOff)=0
virtual uint64_t GetPos () const =0
virtual bool IsValid () const =0

Detailed Description

Abstract stream base class.

Abstract stream base class.

Author
C. Stamm

Definition at line 39 of file PGFstream.h.

Constructor & Destructor Documentation

◆ CPGFStream()

pgf::CPGFStream::CPGFStream ( )
inline

Standard constructor.

Definition at line 43 of file PGFstream.h.

43{}

◆ ~CPGFStream()

virtual pgf::CPGFStream::~CPGFStream ( )
inlinevirtual

Standard destructor.

Definition at line 47 of file PGFstream.h.

47{}

Member Function Documentation

◆ GetPos()

virtual uint64_t pgf::CPGFStream::GetPos ( ) const
pure virtual

Get current stream position.

Returns
Current stream position

Implemented in pgf::CPGFFileStream, and pgf::CPGFMemoryStream.

◆ IsValid()

virtual bool pgf::CPGFStream::IsValid ( ) const
pure virtual

Check stream validity.

Returns
True if stream and current position is valid

Implemented in pgf::CPGFFileStream, and pgf::CPGFMemoryStream.

◆ Read()

virtual void pgf::CPGFStream::Read ( int * count,
void * buffer )
pure virtual

Read some bytes from this stream and stores them into a buffer.

Parameters
countA pointer to a value containing the number of bytes should be read. After this call it contains the number of read bytes.
bufferA memory buffer

Implemented in pgf::CPGFFileStream, and pgf::CPGFMemoryStream.

◆ SetPos()

virtual void pgf::CPGFStream::SetPos ( short posMode,
int64_t posOff )
pure virtual

Set stream position either absolute or relative.

Parameters
posModeA position mode (FSFromStart, FSFromCurrent, FSFromEnd)
posOffA new stream position (absolute positioning) or a position offset (relative positioning)

Implemented in pgf::CPGFFileStream, and pgf::CPGFMemoryStream.

◆ Write()

virtual void pgf::CPGFStream::Write ( int * count,
void * buffer )
pure virtual

Write some bytes out of a buffer into this stream.

Parameters
countA pointer to a value containing the number of bytes should be written. After this call it contains the number of written bytes.
bufferA memory buffer

Implemented in pgf::CPGFFileStream, and pgf::CPGFMemoryStream.


The documentation for this class was generated from the following file: