File: classPLFileSink.html

package info (click to toggle)
paintlib 2.6.2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 7,900 kB
  • ctags: 3,875
  • sloc: cpp: 25,209; sh: 10,600; ansic: 1,891; makefile: 119
file content (44 lines) | stat: -rw-r--r-- 3,465 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paintlib: PLFileSink class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Compound&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Compound&nbsp;Members</a></div>
<h1>PLFileSink Class Reference</h1><code>#include &lt;<a class="el" href="plfilesink_8h-source.html">plfilesink.h</a>&gt;</code>
<p>
<p>Inheritance diagram for PLFileSink:
<p><center><img src="classPLFileSink.png" usemap="#PLFileSink_map" border="0" alt=""></center>
<map name="PLFileSink_map">
<area href="classPLDataSink.html" alt="PLDataSink" shape="rect" coords="0,56,77,80">
</map>
<a href="classPLFileSink-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a0" doxytag="PLFileSink::PLFileSink"></a>
&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLFileSink.html#a0">PLFileSink</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create an uninitialized file sink. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a2" doxytag="PLFileSink::Open"></a>
virtual int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLFileSink.html#a2">Open</a> (const char *pszFName, int MaxFileSize)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Open a file sink. Allocates MaxFileSize bytes. <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a name="a3" doxytag="PLFileSink::Close"></a>
virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classPLFileSink.html#a3">Close</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flushes the data and closes the file. <br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This is a data sink class which takes a file as a destination of picture data.<p>
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. 
<p>

<p>
Definition at line <a class="el" href="plfilesink_8h-source.html#l00037">37</a> of file <a class="el" href="plfilesink_8h-source.html">plfilesink.h</a>.<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="plfilesink_8h-source.html">plfilesink.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:41 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.2 </small></address>
</body>
</html>