X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FInterface.h;h=34f29a80cdd11067a6a9e2b3318d7e5d573f9e59;hb=00b54bc0344d74f31df8b93f7c28a07cfc8d6873;hp=585e2d5fd4b260824390559a4cc204fb6766825d;hpb=cb833d2fface96e020fe91584d2206860a8174ee;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/Interface.h b/lib/cpPlugins/Interface/Interface.h index 585e2d5..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; @@ -29,18 +29,17 @@ namespace cpPlugins Interface( ); virtual ~Interface( ); - /// Plugin access + // 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 + // 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;