Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PLFileSource Class Reference

This is a class which takes a file as a source of picture data. More...

#include <plfilesrc.h>

Inheritance diagram for PLFileSource:

Inheritance graph
[legend]
Collaboration diagram for PLFileSource:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLFileSource (PLIProgressNotification *pNotification=NULL)
virtual ~PLFileSource ()
virtual int Open (const char *pszFName)
virtual void Close ()
virtual PLBYTEReadNBytes (int n)
 This needs to be overridden in derived classes.
virtual PLBYTEGetBufferPtr (int MinBytesInBuffer)
 Read but don't advance file pointer.
virtual PLBYTEReadEverything ()
 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
PLBYTEm_pBuffer
PLBYTEm_pReadPos
int m_BytesReadFromFile
PLBYTEm_pStartData
PLBYTEm_pCurPos

Detailed Description

This is a class which takes a file as a source of picture data.

Definition at line 27 of file plfilesrc.h.


Constructor & Destructor Documentation

PLFileSource::PLFileSource PLIProgressNotification pNotification = NULL  ) 
 

Definition at line 21 of file plfilesrc.cpp.

PLFileSource::~PLFileSource  )  [virtual]
 

Definition at line 39 of file plfilesrc.cpp.


Member Function Documentation

bool PLFileSource::bytesAvailable int  n  )  [private]
 

Definition at line 236 of file plfilesrc.cpp.

void PLFileSource::Close  )  [virtual]
 

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:

void PLFileSource::fillBuffer int  n = 4096  )  [private]
 

Definition at line 222 of file plfilesrc.cpp.

References PLASSERT.

PLBYTE * PLFileSource::GetBufferPtr int  MinBytesInBuffer  )  [virtual]
 

Read but don't advance file pointer.

Implements PLDataSource.

Definition at line 193 of file plfilesrc.cpp.

References PLASSERT.

int PLFileSource::Open const char *  pszFName  )  [virtual]
 

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:

PLBYTE * PLFileSource::ReadEverything  )  [virtual]
 

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.

PLBYTE * PLFileSource::ReadNBytes int  n  )  [virtual]
 

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:


Member Data Documentation

int PLFileSource::m_BytesReadFromFile [private]
 

Definition at line 79 of file plfilesrc.h.

PLBYTE* PLFileSource::m_pBuffer [private]
 

Definition at line 76 of file plfilesrc.h.

PLBYTE* PLFileSource::m_pCurPos [private]
 

Definition at line 82 of file plfilesrc.h.

FILE* PLFileSource::m_pFile [private]
 

Definition at line 75 of file plfilesrc.h.

PLBYTE* PLFileSource::m_pReadPos [private]
 

Definition at line 78 of file plfilesrc.h.

PLBYTE* PLFileSource::m_pStartData [private]
 

Definition at line 81 of file plfilesrc.h.


The documentation for this class was generated from the following files:
Generated on Wed Dec 15 21:20:59 2004 for vuVolume by  doxygen 1.3.9.1