Click here to Skip to main content
15,884,425 members
Articles / Desktop Programming / MFC

Multi platform plug-in development made easy!

Rate me:
Please Sign up or sign in to vote.
4.04/5 (25 votes)
7 Mar 20065 min read 100.7K   1.9K   63  
How to use and develop plug-ins for multiple platforms.
<!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>SPL Library: spl_pluginserver_linux.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</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">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
<h1>spl_pluginserver_linux.h</h1><a href="spl__pluginserver__linux_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00028 <span class="comment">//---------------------------------------------------------------------------------------------------------------------------</span>
00033 <span class="comment"></span><span class="comment">//---------------------------------------------------------------------------------------------------------------------------</span>
00034 
00035 <span class="preprocessor">#ifndef         __SPL_PLUGINSERVER_LINUX_H__</span>
00036 <span class="preprocessor"></span><span class="preprocessor">#define         __SPL_PLUGINSERVER_LINUX_H__</span>
00037 <span class="preprocessor"></span>
00038 <span class="preprocessor">#ifndef         __SPL_PLUGINSERVER_H__</span>
00039 <span class="preprocessor"></span><span class="preprocessor">#include        "<a class="code" href="spl__pluginserver_8h.html">spl_pluginserver.h</a>"</span>
00040 <span class="preprocessor">#endif</span>
00041 <span class="preprocessor"></span>
00042 <span class="keyword">namespace </span>SPL 
00043 {
00044 
00045 <span class="comment">//---------------------------------------------------------------------------------------------------------------------------</span>
00048 <span class="comment"></span><span class="comment">//---------------------------------------------------------------------------------------------------------------------------</span>
<a name="l00049"></a><a class="code" href="classSPL_1_1slcPluginServer.html">00049</a> <span class="keyword">class </span><a class="code" href="classSPL_1_1slcPluginServer.html">slcPluginServer</a> : <span class="keyword">public</span> <a class="code" href="classSPL_1_1slaPluginServer.html">slaPluginServer</a>
00050 {
00051         <span class="comment">//</span>
00052         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00053         <span class="comment">//***********************************************     CON/DESTRUCTION     ***********************************************</span>
00054         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00055         <span class="comment">//</span>
00056 <span class="keyword">public</span>:
00057 
00058         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00060 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00061         <a class="code" href="classSPL_1_1slcPluginServer.html#a0">slcPluginServer</a>( <span class="keywordtype">void</span> );
00062 
00063         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00065 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00066         <span class="keyword">virtual</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a1">~slcPluginServer</a>( <span class="keywordtype">void</span> );
00067 
00068         <span class="comment">//</span>
00069         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00070         <span class="comment">//************************************************     MODIFICATION     *************************************************</span>
00071         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00072         <span class="comment">//</span>
00073 <span class="keyword">public</span>:
00074 
00075         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00077 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00078         <span class="keyword">virtual</span> <a class="code" href="classSPL_1_1slcPluginInfo.html">slcPluginInfo</a> <a class="code" href="classSPL_1_1slcPluginServer.html#a2">GetPluginInfo</a>( <span class="keyword">const</span> <span class="keywordtype">long</span> a_lIndex );
00079 
00080         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00082 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00083         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a3">GetAllPluginInfos</a>( <span class="keywordtype">void</span> );
00084 
00085         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00091 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00092         <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a4">LoadAllPlugins</a>( <span class="keyword">const</span> string&amp;                a_strPath, 
00093                                                                  <span class="keyword">const</span> string&amp;            a_strWildcard, 
00094                                                                  <span class="keyword">const</span> <a class="code" href="classSPL_1_1slcPluginArgs.html">slcPluginArgs</a>* a_pPluginArgs = <a class="code" href="spl__typedefs_8h.html#a0">NULL</a> );
00095 
00096         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00105 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00106         <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a5">LoadPlugin</a>( <span class="keyword">const</span> string&amp; a_strFileName, <span class="keyword">const</span> <a class="code" href="classSPL_1_1slcPluginArgs.html">slcPluginArgs</a>* a_pPluginArgs = <a class="code" href="spl__typedefs_8h.html#a0">NULL</a> );
00107 
00108         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00115 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00116         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a6">UnloadPlugin</a>( <span class="keyword">const</span> <span class="keywordtype">long</span> a_lIndex, <span class="keyword">const</span> <a class="code" href="classSPL_1_1slcPluginArgs.html">slcPluginArgs</a>* a_pPluginArgs = <a class="code" href="spl__typedefs_8h.html#a0">NULL</a> );
00117 
00118         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00121 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00122         <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a7">UnloadAllPlugins</a>( <span class="keyword">const</span> <a class="code" href="classSPL_1_1slcPluginArgs.html">slcPluginArgs</a>* a_pPluginArgs = <a class="code" href="spl__typedefs_8h.html#a0">NULL</a> );
00123 
00124         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00131 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00132         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a8">RunPlugin</a>( <span class="keyword">const</span> <span class="keywordtype">long</span> a_lIndex, <span class="keyword">const</span> <a class="code" href="classSPL_1_1slcPluginArgs.html">slcPluginArgs</a>* a_pPluginArgs = <a class="code" href="spl__typedefs_8h.html#a0">NULL</a> );
00133 
00134         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00138 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00139         <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a9">RunAllPlugins</a>( <span class="keyword">const</span> <a class="code" href="classSPL_1_1slcPluginArgs.html">slcPluginArgs</a>* a_pPluginArgs = <a class="code" href="spl__typedefs_8h.html#a0">NULL</a> );
00140 
00141         <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00148 <span class="comment"></span>        <span class="comment">//-----------------------------------------------------------------------------------------------------------------------</span>
00149         <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classSPL_1_1slcPluginServer.html#a10">Refresh</a>( <span class="keyword">const</span> string&amp;                a_strPath, 
00150                                                   <span class="keyword">const</span> string&amp;            a_strWildcard, 
00151                                                   <span class="keyword">const</span> <a class="code" href="classSPL_1_1slcPluginArgs.html">slcPluginArgs</a>* a_pPluginShutdownArgs = <a class="code" href="spl__typedefs_8h.html#a0">NULL</a>, 
00152                                                   <span class="keyword">const</span> <a class="code" href="classSPL_1_1slcPluginArgs.html">slcPluginArgs</a>* a_pPluginInitArgs = <a class="code" href="spl__typedefs_8h.html#a0">NULL</a> );
00153 };
00154 
00155 } <span class="comment">// End of namespace SPL</span>
00156 
00157 <span class="keyword">using</span> <span class="keyword">namespace </span><a class="code" href="classSPL.html">SPL</a>;
00158 
00159 <span class="preprocessor">#endif  //      __SPL_PLUGINSERVER_H__</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun May 9 15:01:04 2004 for SPL Library by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.6 </small></address>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Germany Germany
I was born in 1982 near Stuttgart / Germany and began my first steps in programming computers at the age of only nine years on an old Commodore CBM 7072. In 2002 I finished my education as IT specialist for software engineering and did my civillian service afterwards. Currently I'm working as leader of the software division in a bigger company located in south west Germany, mainly on software development and research projects for multimedia terminals and user recognition/verification systems.

Comments and Discussions