From: stephan b. <sg...@us...> - 2004-12-25 02:45:06
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/Plugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13162/include/pclasses/Plugin Modified Files: Plugin.h Log Message: Removed the deletion of SharedLibs at shutdown - they are owned by System::openSharedLib(). Index: Plugin.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Plugin/Plugin.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Plugin.h 25 Dec 2004 01:46:04 -0000 1.5 +++ Plugin.h 25 Dec 2004 02:44:57 -0000 1.6 @@ -34,17 +34,18 @@ } /** - Calls delete() on each entry in container(). + Does nothing. */ ~PluginCleaner() throw() { - typename ListType::iterator it = m_list.begin(); - while( m_list.end() != it ) - { - delete( (*it) ); - ++it; - } - m_list.clear(); + // Reminder: System::openSharedLib() owns them! +// typename ListType::iterator it = m_list.begin(); +// while( m_list.end() != it ) +// { +// delete( (*it) ); +// ++it; +// } +// m_list.clear(); } /** @@ -247,6 +248,11 @@ return this->m_holder.container(); } + /** + Searches for name using this object's searchPath(). + Returns a path to a plugin file on success or + an empty string on error. + */ std::string findPlugin( const std::string & name ) const { return this->searchPath().find( name ); @@ -294,6 +300,9 @@ return pluginManager<T>().addPlugin( pluginname ); } + /** + Convenience function to call pluginManager<T>().findPlugin(name). + */ template <typename T> std::string findPlugin( const std::string & name ) { |