📄 memfile_8h-source.html
字号:
<!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>memfile.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>memfile.h</h1><a href="memfile_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * memfile.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * WAV file I/O channel class.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 2002 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is</span>00023 <span class="comment"> * Equivalence Pty Ltd</span>00024 <span class="comment"> *</span>00025 <span class="comment"> * All Rights Reserved.</span>00026 <span class="comment"> *</span>00027 <span class="comment"> * Contributor(s): ______________________________________.</span>00028 <span class="comment"> *</span>00029 <span class="comment"> * $Log: memfile.h,v $</span>00030 <span class="comment"> * Revision 1.4 2002/09/16 01:08:59 robertj</span>00031 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00032 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00033 <span class="comment"> *</span>00034 <span class="comment"> * Revision 1.3 2002/08/05 05:40:45 robertj</span>00035 <span class="comment"> * Fixed missing pragma interface/implementation</span>00036 <span class="comment"> *</span>00037 <span class="comment"> * Revision 1.2 2002/06/27 03:53:35 robertj</span>00038 <span class="comment"> * Cleaned up documentation and added Compare() function.</span>00039 <span class="comment"> *</span>00040 <span class="comment"> * Revision 1.1 2002/06/26 09:01:19 craigs</span>00041 <span class="comment"> * Initial version</span>00042 <span class="comment"> *</span>00043 <span class="comment"> */</span>00044 00045 <span class="preprocessor">#ifndef _PMEMFILE</span>00046 <span class="preprocessor"></span><span class="preprocessor">#define _PMEMFILE</span>00047 <span class="preprocessor"></span>00048 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00049 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00050 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00051 <span class="preprocessor"></span>00052 <a name="l00055"></a><a class="code" href="classPMemoryFile.html">00055</a> <span class="keyword">class </span><a class="code" href="classPMemoryFile.html">PMemoryFile</a> : <span class="keyword">public</span> <a class="code" href="classPFile.html">PFile</a>00056 {00057 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPMemoryFile.html">PMemoryFile</a>, <a class="code" href="classPFile.html">PFile</a>);00058 <span class="keyword">public</span>:00063 <a class="code" href="classPMemoryFile.html#z483_0">PMemoryFile</a>();00064 00067 <a class="code" href="classPMemoryFile.html#z483_0">PMemoryFile</a>(00068 <span class="keyword">const</span> <a class="code" href="classPBYTEArray.html">PBYTEArray</a> & <a class="code" href="classPMemoryFile.html#n0">data</a> 00069 );00071 00072 00081 <a class="code" href="classPObject.html#z199_0">Comparison</a> <a class="code" href="classPMemoryFile.html#z485_0">Compare</a>(00082 <span class="keyword">const</span> <a class="code" href="classPObject.html">PObject</a> & obj 00083 ) <span class="keyword">const</span>;00085 00086 00100 <span class="keyword">virtual</span> BOOL <a class="code" href="classPMemoryFile.html#z487_0">Read</a>(00101 <span class="keywordtype">void</span> * buf, 00102 PINDEX len 00103 );00104 00114 <span class="keyword">virtual</span> BOOL <a class="code" href="classPMemoryFile.html#z487_1">Write</a>(00115 <span class="keyword">const</span> <span class="keywordtype">void</span> * buf, 00116 PINDEX len 00117 );00119 00120 00129 off_t <a class="code" href="classPMemoryFile.html#z489_0">GetLength</a>() <span class="keyword">const</span>;00130 00137 BOOL <a class="code" href="classPMemoryFile.html#z489_1">SetLength</a>(00138 off_t len <span class="comment">// New length of file.</span>00139 );00140 00151 BOOL <a class="code" href="classPMemoryFile.html#z489_2">SetPosition</a>(00152 off_t pos, 00153 <a class="code" href="classPFile.html#z133_0">FilePositionOrigin</a> origin = <a class="code" href="classPFile.html#z133_0s11">Start</a> 00154 );00155 00162 off_t <a class="code" href="classPMemoryFile.html#z489_3">GetPosition</a>() <span class="keyword">const</span>;00164 00165 <a name="l00170"></a><a class="code" href="classPMemoryFile.html#z491_0">00170</a> <span class="keyword">const</span> <a class="code" href="classPBYTEArray.html">PBYTEArray</a> & <a class="code" href="classPMemoryFile.html#z491_0">GetData</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classPMemoryFile.html#n0">data</a>; }00172 00173 00174 <span class="keyword">protected</span>:<a name="l00175"></a><a class="code" href="classPMemoryFile.html#n0">00175</a> <a class="code" href="classPBYTEArray.html">PBYTEArray</a> <a class="code" href="classPMemoryFile.html#n0">data</a>;<a name="l00176"></a><a class="code" href="classPMemoryFile.html#n1">00176</a> off_t <a class="code" href="classPMemoryFile.html#n1">position</a>;00177 };00178 00179 00180 <span class="preprocessor">#endif // _PMEMFILE</span>00181 <span class="preprocessor"></span>00182 00183 <span class="comment">// End of File ///////////////////////////////////////////////////////////////</span>00184 </pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:11 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -