Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

PLFileSink Class Reference

#include <plfilesink.h>

Inheritance diagram for PLFileSink:

PLDataSink List of all members.

Public Member Functions

 PLFileSink ()
 Create an uninitialized file sink.

virtual int Open (const char *pszFName, int MaxFileSize)
 Open a file sink. Allocates MaxFileSize bytes.

virtual void Close ()
 Flushes the data and closes the file.


Detailed Description

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

If PL_FILE_MAPPING is defined (this is the case under windows), the data is written directly to the mapped file. If not, the class allocates 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" TODO: Use mapped files for the *nix version as well.

Definition at line 33 of file plfilesink.h.


The documentation for this class was generated from the following file:
Generated on Sun Jun 6 13:42:22 2004 for paintlib by doxygen 1.3.2