X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FInterface.h;h=34f29a80cdd11067a6a9e2b3318d7e5d573f9e59;hb=00b54bc0344d74f31df8b93f7c28a07cfc8d6873;hp=a51f8be231409e38857b9b3a761b2c9dcebd818c;hpb=7c7bc497af96e7b5845be9a2fc277036ec752be9;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Interface.h b/lib/cpPlugins/Interface/Interface.h index a51f8be..34f29a8 100644 --- a/lib/cpPlugins/Interface/Interface.h +++ b/lib/cpPlugins/Interface/Interface.h @@ -19,7 +19,7 @@ namespace cpPlugins class cpPlugins_Interface_EXPORT Interface { public: - typedef std::vector< ObjectProvider* > TProviders; + typedef std::vector< ProcessObjectProvider* > TProviders; typedef std::map< std::string, unsigned int > TClasses; typedef TProviders::const_iterator TProvidersIterator; @@ -32,15 +32,14 @@ namespace cpPlugins // Plugin access TClasses& GetClasses( ); const TClasses& GetClasses( ) const; - Object::Pointer CreateObject( const std::string& name ) const; - ProcessObject::Pointer CreateProcessObject( - const std::string& name - ) const; + ProcessObject::Pointer CreateObject( const std::string& name ) const; // Interface to PLUMA bool Load( const std::string& path ); bool Load( const std::string& folder, const std::string& name ); - int LoadFromFolder( const std::string& folder, bool r = false ); + std::list< std::string > LoadFromFolder( + const std::string& folder, bool r = false + ); bool Unload( const std::string& name ); void UnloadAll( ); void GetLoadedPlugins( std::vector< const std::string* >& names ) const;