#include <pldatasrc.h>
Inheritance diagram for PLDataSource:
Public Member Functions | |
PLDataSource (PLIProgressNotification *pNotification=NULL) | |
virtual | ~PLDataSource () |
virtual void | Open (const char *pszName, int FileSize) |
virtual void | Close () |
char * | GetName () |
virtual PLBYTE * | GetBufferPtr (int MinBytesInBuffer)=0 |
Read but don't advance file pointer. | |
virtual PLBYTE * | ReadNBytes (int n) |
This needs to be overridden in derived classes. | |
int | GetFileSize () |
virtual PLBYTE * | ReadEverything ()=0 |
This is a legacy routine that interferes with progress notifications. | |
PLBYTE * | Read1Byte () |
PLBYTE * | Read2Bytes () |
PLBYTE * | Read4Bytes () |
void | OProgressNotification (double part) |
handles progress notification from other libs | |
void | AlignToWord () |
void | Skip (int n) |
void | CheckEOF () |
Test to see if we didn't go past the end of the file. | |
Private Attributes | |
char * | m_pszName |
int | m_FileSize |
int | m_BytesRead |
bool | m_bSrcLSBFirst |
PLIProgressNotification * | m_pNotification |
It defines methods to open, close, and read from data sources. Does byte-order-conversions in the ReadByte, ReadWord, and ReadLong routines.
Definition at line 23 of file pldatasrc.h.
|
Definition at line 22 of file pldatasrc.cpp. |
|
Definition at line 38 of file pldatasrc.cpp. |
|
Definition at line 141 of file pldatasrc.h. |
|
Test to see if we didn't go past the end of the file.
Definition at line 156 of file pldatasrc.h. References PL_ERREND_OF_FILE. |
|
Reimplemented in PLFileSource, and PLMemSource. Definition at line 59 of file pldatasrc.cpp. Referenced by PLMemSource::Close(), and PLFileSource::Close(). |
|
Read but don't advance file pointer.
Implemented in PLFileSource, and PLMemSource. Referenced by PLAnyPicDecoder::MakeBmp(). |
|
Definition at line 115 of file pldatasrc.h. Referenced by PLTIFFDecoderEx::Associate(), PLTIFFDecoder::DoDecode(), and PLAnyPicDecoder::MakeBmp(). |
|
Definition at line 70 of file pldatasrc.cpp. Referenced by PLAnyPicDecoder::MakeBmp(). |
|
Definition at line 44 of file pldatasrc.cpp. References PLASSERT. Referenced by PLMemSource::Open(), and PLFileSource::Open(). |
|
handles progress notification from other libs
Definition at line 90 of file pldatasrc.cpp. Referenced by PLJPEGDecoder::JNotification(). |
|
Definition at line 121 of file pldatasrc.h. |
|
Definition at line 128 of file pldatasrc.h. |
|
Definition at line 135 of file pldatasrc.h. |
|
This is a legacy routine that interferes with progress notifications. Don't call it! Implemented in PLFileSource, and PLMemSource. Referenced by PLTIFFDecoderEx::Associate(), and PLTIFFDecoder::DoDecode(). |
|
This needs to be overridden in derived classes.
Reimplemented in PLFileSource, and PLMemSource. Definition at line 76 of file pldatasrc.cpp. Referenced by PLPCXDecoder::DoDecode(), GIF_Read_Data(), PLAnyPicDecoder::MakeBmp(), my_read_data(), PLMemSource::ReadNBytes(), and PLFileSource::ReadNBytes(). |
|
Definition at line 149 of file pldatasrc.h. |
|
Definition at line 108 of file pldatasrc.h. |
|
Definition at line 107 of file pldatasrc.h. |
|
Definition at line 106 of file pldatasrc.h. |
|
Definition at line 110 of file pldatasrc.h. |
|
Definition at line 104 of file pldatasrc.h. |