📄 classpion_1_1_pion_plugin.html
字号:
<div class="memdoc"><p>searches directories for a valid plug-in file<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>path_to_file</em> </td><td>the path to the plug-in file, if found </td></tr> <tr><td valign="top"></td><td valign="top"><em>the</em> </td><td>name name of the plug-in to search for </td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the plug-in file was found </dd></dl><p>Definition at line <a class="el" href="_pion_plugin_8hpp-source.html#l00073">73</a> of file <a class="el" href="_pion_plugin_8hpp-source.html">PionPlugin.hpp</a>.<p>Referenced by <a class="el" href="_h_t_t_p_server_8cpp-source.html#l00136">pion::HTTPServer::loadModule()</a>.</div></div><p><a class="anchor" name="f5987395dce53c3921baa44be7d62a65"></a><!-- doxytag: member="pion::PionPlugin::findConfigFile" ref="f5987395dce53c3921baa44be7d62a65" args="(std::string &path_to_file, const std::string &name)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">static bool pion::PionPlugin::findConfigFile </td> <td>(</td> <td class="paramtype">std::string & </td> <td class="paramname"> <em>path_to_file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>name</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [inline, static]</code></td> </tr> </table></div><div class="memdoc"><p>searches directories for a valid plug-in configuration file<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>path_to_file</em> </td><td>if found, is set to the complete path to the file </td></tr> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>the name of the configuration file to search for </td></tr> </table></dl><dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the configuration file was found </dd></dl><p>Definition at line <a class="el" href="_pion_plugin_8hpp-source.html#l00086">86</a> of file <a class="el" href="_pion_plugin_8hpp-source.html">PionPlugin.hpp</a>.<p>Referenced by <a class="el" href="_h_t_t_p_server_8cpp-source.html#l00178">pion::HTTPServer::loadModuleConfig()</a>.</div></div><p><a class="anchor" name="b84026edef087fb963e6a828d4b8f730"></a><!-- doxytag: member="pion::PionPlugin::checkCygwinPath" ref="b84026edef087fb963e6a828d4b8f730" args="(boost::filesystem::path &final_path, const std::string &path_string)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void pion::PionPlugin::checkCygwinPath </td> <td>(</td> <td class="paramtype">boost::filesystem::path & </td> <td class="paramname"> <em>final_path</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>path_string</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [static]</code></td> </tr> </table></div><div class="memdoc"><p>updates path for cygwin oddities, if necessary<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>final_path</em> </td><td>path object for the file, will be modified if necessary </td></tr> <tr><td valign="top"></td><td valign="top"><em>start_path</em> </td><td>original path to the file. if final_path is not valid, this will be appended to PION_CYGWIN_DIRECTORY to attempt attempt correction of final_path for cygwin </td></tr> </table></dl><p>Definition at line <a class="el" href="_pion_plugin_8cpp-source.html#l00040">40</a> of file <a class="el" href="_pion_plugin_8cpp-source.html">PionPlugin.cpp</a>.<p>Referenced by <a class="el" href="_pion_plugin_8cpp-source.html#l00051">addPluginDirectory()</a>.</div></div><p><a class="anchor" name="998d9f6ff965e708ad466ed3afac3b68"></a><!-- doxytag: member="pion::PionPlugin::open" ref="998d9f6ff965e708ad466ed3afac3b68" args="(const std::string &plugin_file)" --><div class="memitem"><div class="memproto"> <table class="memname"> <tr> <td class="memname">void pion::PionPlugin::open </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>plugin_file</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table></div><div class="memdoc"><p>opens plug-in library within a shared object file. If the library is already being used by another <a class="el" href="classpion_1_1_pion_plugin.html">PionPlugin</a> object, then the existing code will be re-used and the reference count will be increased. Beware that this does NOT check the plug-in's base class (InterfaceClassType), so you must be careful to ensure that the namespace is unique between plug-ins that have different base classes. If the plug-in's name matches an existing plug-in of a different base class, the resulting behavior is undefined (it will probably crash your program).<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>plugin_file</em> </td><td>shared object file containing the plugin code </td></tr> </table></dl><p>Definition at line <a class="el" href="_pion_plugin_8cpp-source.html#l00076">76</a> of file <a class="el" href="_pion_plugin_8cpp-source.html">PionPlugin.cpp</a>.<p>References <a class="el" href="_pion_plugin_8hpp-source.html#l00117">getPluginName()</a>, <a class="el" href="_pion_plugin_8hpp-source.html#l00171">pion::PionPlugin::PionPluginData::m_plugin_name</a>, <a class="el" href="_pion_plugin_8hpp-source.html#l00174">pion::PionPlugin::PionPluginData::m_references</a>, and <a class="el" href="_pion_plugin_8cpp-source.html#l00105">releaseData()</a>.<p>Referenced by <a class="el" href="_h_t_t_p_server_8cpp-source.html#l00136">pion::HTTPServer::loadModule()</a>.</div></div><p><hr>The documentation for this class was generated from the following files:<ul><li>/Users/mdickey/code/libpion-export/include/libpion/<a class="el" href="_pion_plugin_8hpp-source.html">PionPlugin.hpp</a><li>/Users/mdickey/code/libpion-export/src/<a class="el" href="_pion_plugin_8cpp-source.html">PionPlugin.cpp</a></ul><hr size="1"><address style="text-align: right;"><small>Generated on Tue Jun 19 13:29:23 2007 for libpion by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -