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

PLFileSink Class Reference

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

#include <plfilesink.h>

Inheritance diagram for PLFileSink:

Inheritance graph
[legend]
Collaboration diagram for PLFileSink:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PLFileSink ()
virtual ~PLFileSink ()
virtual int Open (const char *pszFName, int MaxFileSize)
virtual void Close ()

Private Attributes

FILE * m_pFile
PLBYTEm_pDataBuf

Detailed Description

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

Restriction: needs to allocate a buffer large enough to hold a complete image file. But we don't know its size before it's actually encoded, so we have to be generous or "accidents will happen" A better implementation would rely on memory-mapped files or implement dynamic buffering.

Definition at line 28 of file plfilesink.h.


Constructor & Destructor Documentation

PLFileSink::PLFileSink  ) 
 

Definition at line 23 of file plfilesink.cpp.

References NULL.

PLFileSink::~PLFileSink  )  [virtual]
 

Definition at line 30 of file plfilesink.cpp.

References Close().

Here is the call graph for this function:


Member Function Documentation

void PLFileSink::Close  )  [virtual]
 

Reimplemented from PLDataSink.

Definition at line 53 of file plfilesink.cpp.

References PLDataSink::Close(), PLDataSink::GetDataSize(), m_pDataBuf, m_pFile, and PLASSERT.

Referenced by PLPicEncoder::MakeFileFromBmp(), and ~PLFileSink().

Here is the call graph for this function:

int PLFileSink::Open const char *  pszFName,
int  MaxFileSize
[virtual]
 

Definition at line 37 of file plfilesink.cpp.

References m_pDataBuf, m_pFile, PLDataSink::Open(), and PLBYTE.

Referenced by PLPicEncoder::MakeFileFromBmp().

Here is the call graph for this function:


Member Data Documentation

PLBYTE* PLFileSink::m_pDataBuf [private]
 

Definition at line 52 of file plfilesink.h.

Referenced by Close(), and Open().

FILE* PLFileSink::m_pFile [private]
 

Definition at line 51 of file plfilesink.h.

Referenced by Close(), and Open().


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