📄 dynalink_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>dynalink.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>dynalink.h</h1><a href="dynalink_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * dynalink.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Dynamic Link Library abstraction 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) 1993-1998 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 Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Portions are Copyright (C) 1993 Free Software Foundation, Inc.</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: dynalink.h,v $</span>00030 <span class="comment"> * Revision 1.16 2004/07/11 07:56:35 csoutheren</span>00031 <span class="comment"> * Applied jumbo VxWorks patch, thanks to Eize Slange</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.15 2004/02/22 02:38:33 ykiryanov</span>00034 <span class="comment"> * Removed ifndef BEOS when declaring PDynalink</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.14 2003/09/17 05:41:58 csoutheren</span>00037 <span class="comment"> * Removed recursive includes</span>00038 <span class="comment"> *</span>00039 <span class="comment"> * Revision 1.13 2003/09/17 01:18:02 csoutheren</span>00040 <span class="comment"> * Removed recursive include file system and removed all references</span>00041 <span class="comment"> * to deprecated coooperative threading support</span>00042 <span class="comment"> *</span>00043 <span class="comment"> * Revision 1.12 2003/05/14 00:42:32 rjongbloed</span>00044 <span class="comment"> * Added missing virtual keyword to PDynaLink functions.</span>00045 <span class="comment"> *</span>00046 <span class="comment"> * Revision 1.11 2003/01/24 10:21:06 robertj</span>00047 <span class="comment"> * Fixed issues in RTEMS support, thanks Vladimir Nesic</span>00048 <span class="comment"> *</span>00049 <span class="comment"> * Revision 1.10 2002/10/10 04:43:43 robertj</span>00050 <span class="comment"> * VxWorks port, thanks Martijn Roest</span>00051 <span class="comment"> *</span>00052 <span class="comment"> * Revision 1.9 2002/09/16 01:08:59 robertj</span>00053 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00054 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00055 <span class="comment"> *</span>00056 <span class="comment"> * Revision 1.8 2001/06/30 06:59:06 yurik</span>00057 <span class="comment"> * Jac Goudsmit from Be submit these changes 6/28. Implemented by Yuri Kiryanov</span>00058 <span class="comment"> *</span>00059 <span class="comment"> * Revision 1.7 2001/05/22 12:49:32 robertj</span>00060 <span class="comment"> * Did some seriously wierd rewrite of platform headers to eliminate the</span>00061 <span class="comment"> * stupid GNU compiler warning about braces not matching.</span>00062 <span class="comment"> *</span>00063 <span class="comment"> * Revision 1.6 1999/03/09 02:59:49 robertj</span>00064 <span class="comment"> * Changed comments to doc++ compatible documentation.</span>00065 <span class="comment"> *</span>00066 <span class="comment"> * Revision 1.5 1999/02/16 08:07:11 robertj</span>00067 <span class="comment"> * MSVC 6.0 compatibility changes.</span>00068 <span class="comment"> *</span>00069 <span class="comment"> * Revision 1.4 1998/09/23 06:20:29 robertj</span>00070 <span class="comment"> * Added open source copyright license.</span>00071 <span class="comment"> *</span>00072 <span class="comment"> * Revision 1.3 1997/06/16 13:15:52 robertj</span>00073 <span class="comment"> * Added function to get a dyna-link libraries name.</span>00074 <span class="comment"> *</span>00075 <span class="comment"> * Revision 1.2 1997/06/08 04:49:20 robertj</span>00076 <span class="comment"> * Added DLL file extension string function.</span>00077 <span class="comment"> *</span>00078 <span class="comment"> * Revision 1.1 1995/03/14 12:44:08 robertj</span>00079 <span class="comment"> * Initial revision</span>00080 <span class="comment"> *</span>00081 <span class="comment"> */</span>00082 00083 <span class="preprocessor">#ifndef _PDYNALINK</span>00084 <span class="preprocessor"></span><span class="preprocessor">#define _PDYNALINK</span>00085 <span class="preprocessor"></span>00086 <span class="preprocessor">#if !defined(P_RTEMS)</span>00087 <span class="preprocessor"></span>00088 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00089 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00090 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00091 <span class="preprocessor"></span><a name="l00095"></a><a class="code" href="classPDynaLink.html">00095</a> <span class="keyword">class </span><a class="code" href="classPDynaLink.html">PDynaLink</a> : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00096 {00097 <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(<a class="code" href="classPDynaLink.html">PDynaLink</a>, <a class="code" href="classPObject.html">PObject</a>);00098 00099 <span class="keyword">public</span>:00105 <a class="code" href="classPDynaLink.html#z107_0">PDynaLink</a>();00109 <a class="code" href="classPDynaLink.html#z107_0">PDynaLink</a>(00110 <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & <a class="code" href="classPDynaLink.html#n1">name</a> 00111 );00112 00115 <a class="code" href="classPDynaLink.html#z107_2">~PDynaLink</a>();00117 00120 <span class="comment">/* Open a new dyna-link, loading the specified module.</span>00121 <span class="comment"></span>00122 <span class="comment"> @return</span>00123 <span class="comment"> TRUE if the library was loaded.</span>00124 <span class="comment"> */</span>00125 <span class="keyword">virtual</span> BOOL <a class="code" href="classPDynaLink.html#z109_0">Open</a>(00126 <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & <a class="code" href="classPDynaLink.html#n1">name</a> 00127 );00128 00131 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPDynaLink.html#z109_1">Close</a>();00132 00135 <span class="keyword">virtual</span> BOOL <a class="code" href="classPDynaLink.html#z109_2">IsLoaded</a>() <span class="keyword">const</span>;00136 00146 <span class="keyword">virtual</span> <a class="code" href="classPString.html">PString</a> <a class="code" href="classPDynaLink.html#z109_3">GetName</a>(00147 BOOL full = FALSE 00148 ) <span class="keyword">const</span>;00149 00155 <span class="keyword">static</span> <a class="code" href="classPString.html">PString</a> <a class="code" href="classPDynaLink.html#z109_4">GetExtension</a>();00157 00160 <a name="l00161"></a><a class="code" href="classPDynaLink.html#z111_0">00161</a> <span class="keyword">typedef</span> void (*<a class="code" href="classPDynaLink.html#z111_0">Function</a>)();00162 00163 00169 BOOL <a class="code" href="classPDynaLink.html#z111_1">GetFunction</a>(00170 PINDEX index, 00171 <a class="code" href="classPDynaLink.html#z111_0">Function</a> & func 00172 );00173 00179 BOOL <a class="code" href="classPDynaLink.html#z111_1">GetFunction</a>(00180 <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & <a class="code" href="classPDynaLink.html#n1">name</a>, 00181 <a class="code" href="classPDynaLink.html#z111_0">Function</a> & func 00182 );00184 00185 00186 <span class="comment">// Include platform dependent part of class</span>00187 <span class="preprocessor">#ifdef _WIN32</span>00188 <span class="preprocessor"></span><span class="preprocessor">#include "msos/ptlib/dynalink.h"</span>00189 <span class="preprocessor">#else</span>00190 <span class="preprocessor"></span><span class="preprocessor">#include "unix/ptlib/dynalink.h"</span>00191 <span class="preprocessor">#endif</span>00192 <span class="preprocessor"></span>};00193 00194 <span class="preprocessor">#endif // !defined(P_RTEMS)</span>00195 <span class="preprocessor"></span>00196 <span class="preprocessor">#endif</span>00197 <span class="preprocessor"></span>00198 <span class="comment">// End Of File ///////////////////////////////////////////////////////////////</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:10 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 + -