From: stephan b. <sg...@us...> - 2005-01-06 17:02:11
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/IO In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17219/include/pclasses/IO Modified Files: IOManager.h Log Message: Replaced IOPluginManager with IOManager, as the Plugin support can probably be handled transparently. Index: IOManager.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/IO/IOManager.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- IOManager.h 31 Dec 2004 14:38:25 -0000 1.4 +++ IOManager.h 6 Jan 2005 17:02:03 -0000 1.5 @@ -12,15 +12,15 @@ the P::IO layer. */ template <typename InterfaceT> - class IOPluginManager : public ::P::Plugin::PluginManager<InterfaceT> + class IOManager : public ::P::Factory<InterfaceT> { public: - typdef IOPluginManager<InterfaceT> ThisType; + typdef IOManager<InterfaceT> ThisType; typedef ::P::PluginManager<InterfaceT> ParentType; typedef typename ParentType::FactoryFuncType FactoryFuncType; typedef typename ParentType::ResultType ResultType; - IOPluginManager(){} - virtual ~IOPluginManager(){} + IOManager(){} + virtual ~IOManager(){} /** @@ -29,6 +29,10 @@ Clients may transparently replace or modify the default returned object by specializing P::Hook::FactoryInstanceHook<ThisType>. + + InterfaceT's which want to be loadable via DLL's + should install a FactoryInstanceHook to plug in the + DLL awareness. */ static ThisType & instance() { @@ -61,7 +65,7 @@ { return this->provides( _protocol.protocol() ); } - }; // class IOPluginManager + }; // class IOManager } } // namespace P::IO |