Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 109334dd082e1c0f3d266c2e64a79e23 > files > 50

libwpg-docs-0.1.2-1mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>libwpg: WPGStreamImplementation.h Source File documentation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.4 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
  </ul>
</div>
<h1>WPGStreamImplementation.h</h1><a href="WPGStreamImplementation_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* libwpg</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment"> * modify it under the terms of the GNU Library General Public</span>
<a name="l00006"></a>00006 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * This library is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment"> * Library General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * You should have received a copy of the GNU Library General Public</span>
<a name="l00015"></a>00015 <span class="comment"> * License along with this library; if not, write to the </span>
<a name="l00016"></a>00016 <span class="comment"> * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, </span>
<a name="l00017"></a>00017 <span class="comment"> * Boston, MA  02111-1301 USA</span>
<a name="l00018"></a>00018 <span class="comment"> *</span>
<a name="l00019"></a>00019 <span class="comment"> * For further information visit http://libwpg.sourceforge.net</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef __WPGSTREAMIMPLEMENTATION_H__</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define __WPGSTREAMIMPLEMENTATION_H__</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;libwpd/WPXStream.h&gt;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>libwpg
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">class </span>WPGFileStreamPrivate;
<a name="l00031"></a>00031 
<a name="l00032"></a><a class="code" href="classlibwpg_1_1WPGFileStream.html">00032</a> <span class="keyword">class </span><a class="code" href="classlibwpg_1_1WPGFileStream.html">WPGFileStream</a>: <span class="keyword">public</span> WPXInputStream
<a name="l00033"></a>00033 {
<a name="l00034"></a>00034 <span class="keyword">public</span>:
<a name="l00035"></a>00035         <span class="keyword">explicit</span> <a class="code" href="classlibwpg_1_1WPGFileStream.html#565084eb08f875efc47f62e0ec183f66">WPGFileStream</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename);
<a name="l00036"></a>00036         <a class="code" href="classlibwpg_1_1WPGFileStream.html#0097a24edd6e42095b8ec809b0f5703f">~WPGFileStream</a>();
<a name="l00037"></a>00037         
<a name="l00038"></a>00038         <span class="keyword">const</span> uint8_t *<a class="code" href="classlibwpg_1_1WPGFileStream.html#a6826b994f073cacc77408f0af5e870c">read</a>(<span class="keywordtype">size_t</span> numBytes, <span class="keywordtype">size_t</span> &amp;numBytesRead);
<a name="l00039"></a>00039         <span class="keywordtype">long</span> <a class="code" href="classlibwpg_1_1WPGFileStream.html#c1a373f7d6f3cfe4e3d32eada1e61a36">tell</a>();
<a name="l00040"></a>00040         <span class="keywordtype">int</span> <a class="code" href="classlibwpg_1_1WPGFileStream.html#92020fced4ea34ab2ad33ea52731ac6d">seek</a>(<span class="keywordtype">long</span> offset, WPX_SEEK_TYPE seekType);
<a name="l00041"></a>00041         <span class="keywordtype">bool</span> <a class="code" href="classlibwpg_1_1WPGFileStream.html#b5c95a7e8f176a7c916f8f98b1fab8d2">atEOS</a>();
<a name="l00042"></a>00042 
<a name="l00043"></a>00043         <span class="keywordtype">bool</span> <a class="code" href="classlibwpg_1_1WPGFileStream.html#865daa76d986da4d3e304ad72141f02f">isOLEStream</a>();
<a name="l00044"></a>00044         WPXInputStream *<a class="code" href="classlibwpg_1_1WPGFileStream.html#03d9b87b5bddbd108a2d26e50aa5dd47">getDocumentOLEStream</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * name);
<a name="l00045"></a>00045         WPXInputStream *<a class="code" href="classlibwpg_1_1WPGFileStream.html#03d9b87b5bddbd108a2d26e50aa5dd47">getDocumentOLEStream</a>();
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="keyword">private</span>:
<a name="l00048"></a><a class="code" href="classlibwpg_1_1WPGFileStream.html#6ff61b6a7456a11a280a01048dfc66a5">00048</a>         <a class="code" href="classlibwpg_1_1WPGFileStreamPrivate.html">WPGFileStreamPrivate</a>* <a class="code" href="classlibwpg_1_1WPGFileStream.html#6ff61b6a7456a11a280a01048dfc66a5">d</a>;
<a name="l00049"></a>00049         <a class="code" href="classlibwpg_1_1WPGFileStream.html#565084eb08f875efc47f62e0ec183f66">WPGFileStream</a>(<span class="keyword">const</span> <a class="code" href="classlibwpg_1_1WPGFileStream.html">WPGFileStream</a>&amp;); <span class="comment">// copy is not allowed</span>
<a name="l00050"></a>00050         <a class="code" href="classlibwpg_1_1WPGFileStream.html">WPGFileStream</a>&amp; <a class="code" href="classlibwpg_1_1WPGFileStream.html#5360d0fcba39a835a351fce987e9c345">operator=</a>(<span class="keyword">const</span> <a class="code" href="classlibwpg_1_1WPGFileStream.html">WPGFileStream</a>&amp;); <span class="comment">// assignment is not allowed</span>
<a name="l00051"></a>00051 };
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="classlibwpg_1_1WPGMemoryStreamPrivate.html">WPGMemoryStreamPrivate</a>;
<a name="l00054"></a>00054 
<a name="l00055"></a><a class="code" href="classlibwpg_1_1WPGMemoryStream.html">00055</a> <span class="keyword">class </span><a class="code" href="classlibwpg_1_1WPGMemoryStream.html">WPGMemoryStream</a>: <span class="keyword">public</span> WPXInputStream
<a name="l00056"></a>00056 {
<a name="l00057"></a>00057 <span class="keyword">public</span>:
<a name="l00058"></a>00058         <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#b9417a94b154a647e511d86a9e59bf20">WPGMemoryStream</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *data, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dataSize);
<a name="l00059"></a>00059         <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#7763d9ec8b962ef4a9a220f456847a3e">~WPGMemoryStream</a>();
<a name="l00060"></a>00060 
<a name="l00061"></a>00061         <span class="keyword">const</span> uint8_t *<a class="code" href="classlibwpg_1_1WPGMemoryStream.html#779c6de0b469a6cbac347b0c9a66d9a8">read</a>(<span class="keywordtype">size_t</span> numBytes, <span class="keywordtype">size_t</span> &amp;numBytesRead);
<a name="l00062"></a>00062         <span class="keywordtype">long</span> <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#3b1f98f830cbcaf6a1226ccfcec9a1ac">tell</a>();
<a name="l00063"></a>00063         <span class="keywordtype">int</span> <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#ac892fe0d33eca7671dc81fd8436b05f">seek</a>(<span class="keywordtype">long</span> offset, WPX_SEEK_TYPE seekType);
<a name="l00064"></a>00064         <span class="keywordtype">bool</span> <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#a0be62331fe0c346d711b85cb838e29a">atEOS</a>();
<a name="l00065"></a>00065 
<a name="l00066"></a>00066         <span class="keywordtype">bool</span> <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#8ab6829ef85dbbd34c873348056cb6e6">isOLEStream</a>();
<a name="l00067"></a>00067         WPXInputStream *<a class="code" href="classlibwpg_1_1WPGMemoryStream.html#42547bd55a35c4f833d75298301c9978">getDocumentOLEStream</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * name);
<a name="l00068"></a>00068         WPXInputStream *<a class="code" href="classlibwpg_1_1WPGMemoryStream.html#42547bd55a35c4f833d75298301c9978">getDocumentOLEStream</a>();
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="keyword">private</span>:
<a name="l00071"></a><a class="code" href="classlibwpg_1_1WPGMemoryStream.html#4f507e09b95cf8c8b97f85b74c4d735c">00071</a>         <a class="code" href="classlibwpg_1_1WPGMemoryStreamPrivate.html">WPGMemoryStreamPrivate</a>* <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#4f507e09b95cf8c8b97f85b74c4d735c">d</a>;
<a name="l00072"></a>00072         <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#b9417a94b154a647e511d86a9e59bf20">WPGMemoryStream</a>(<span class="keyword">const</span> <a class="code" href="classlibwpg_1_1WPGMemoryStream.html">WPGMemoryStream</a>&amp;); <span class="comment">// copy is not allowed</span>
<a name="l00073"></a>00073         <a class="code" href="classlibwpg_1_1WPGMemoryStream.html">WPGMemoryStream</a>&amp; <a class="code" href="classlibwpg_1_1WPGMemoryStream.html#0d5b83ce294d59dcad028ae891c2965c">operator=</a>(<span class="keyword">const</span> <a class="code" href="classlibwpg_1_1WPGMemoryStream.html">WPGMemoryStream</a>&amp;); <span class="comment">// assignment is not allowed</span>
<a name="l00074"></a>00074 };
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 } <span class="comment">// namespace libwpg</span>
<a name="l00077"></a>00077 
<a name="l00078"></a>00078 <span class="preprocessor">#endif // __WPGSTREAMIMPLEMENTATION_H__</span>
</pre></div><hr size="1"><address style="align: right;"><small>
Generated on Sat Jan 5 21:38:19 2008 for libwpg by <a href="http://www.doxygen.org/index.html">
doxygen</a> 1.5.4</small></address>
</body>
</html>