#include <plfilesrc.h>
Inheritance diagram for PLFileSource:
Public Member Functions | |
PLFileSource (PLIProgressNotification *pNotification=NULL) | |
virtual | ~PLFileSource () |
virtual int | Open (const char *pszFName) |
virtual void | Close () |
virtual PLBYTE * | ReadNBytes (int n) |
This needs to be overridden in derived classes. | |
virtual PLBYTE * | GetBufferPtr (int MinBytesInBuffer) |
Read but don't advance file pointer. | |
virtual PLBYTE * | ReadEverything () |
This is a legacy routine that interferes with progress notifications. | |
Private Member Functions | |
bool | bytesAvailable (int n) |
void | fillBuffer (int n=4096) |
Private Attributes | |
FILE * | m_pFile |
PLBYTE * | m_pBuffer |
PLBYTE * | m_pReadPos |
int | m_BytesReadFromFile |
PLBYTE * | m_pStartData |
PLBYTE * | m_pCurPos |
Definition at line 27 of file plfilesrc.h.
|
Definition at line 21 of file plfilesrc.cpp. |
|
Definition at line 39 of file plfilesrc.cpp. |
|
Definition at line 236 of file plfilesrc.cpp. |
|
Reimplemented from PLDataSource. Definition at line 159 of file plfilesrc.cpp. References PLDataSource::Close(). Referenced by PLPicDecoder::Close(). |
Here is the call graph for this function:
|
Definition at line 222 of file plfilesrc.cpp. References PLASSERT. |
|
Read but don't advance file pointer.
Implements PLDataSource. Definition at line 193 of file plfilesrc.cpp. References PLASSERT. |
|
Definition at line 51 of file plfilesrc.cpp. References NULL, PLDataSource::Open(), and PLBYTE. Referenced by PLPicDecoder::OpenFile(). |
Here is the call graph for this function:
|
This is a legacy routine that interferes with progress notifications. Don't call it! Implements PLDataSource. Definition at line 205 of file plfilesrc.cpp. References PLASSERT. |
|
This needs to be overridden in derived classes.
Reimplemented from PLDataSource. Definition at line 179 of file plfilesrc.cpp. References PLDataSource::ReadNBytes(). Referenced by PLPicDecoder::unpackPictRow(). |
Here is the call graph for this function:
|
Definition at line 79 of file plfilesrc.h. |
|
Definition at line 76 of file plfilesrc.h. |
|
Definition at line 82 of file plfilesrc.h. |
|
Definition at line 75 of file plfilesrc.h. |
|
Definition at line 78 of file plfilesrc.h. |
|
Definition at line 81 of file plfilesrc.h. |