]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Workspace.h
More on graph editor
[cpPlugins.git] / lib / cpPlugins / Interface / Workspace.h
index 6cf157d37c7921f1e013310be4050871cd9553bd..9a79d29ae15a3023b9b84eb26666cb7ce6c8c475 100644 (file)
@@ -41,14 +41,8 @@ namespace cpPlugins
       virtual ~Workspace( );
 
       // Plugins management
-      bool LoadPluginsPath( const std::string& path, bool r = false );
-      bool LoadPlugins( const std::string& fname );
-      const TStringContainer& GetLoadedPlugins( ) const;
-      void GetLoadedPluginCategories( TStringContainer& categories ) const;
-      void GetLoadedPluginFilters( TStringContainer& filters ) const;
-      const TStringContainer& GetLoadedPluginFilters(
-        const std::string& category
-        ) const;
+      TInterface* GetInterface( );
+      void SetInterface( TInterface* i );
 
       // Workspace IO
       std::string LoadWorkspace( const std::string& fname );
@@ -68,6 +62,7 @@ namespace cpPlugins
       const TParameters* GetParameters( const std::string& name ) const;
       TFilter* GetFilter( const std::string& name );
       const TFilter* GetFilter( const std::string& name ) const;
+      bool HasFilter( const std::string& name ) const;
 
       // Graph reduction
       bool Reduce( const std::string& name );
@@ -81,10 +76,7 @@ namespace cpPlugins
 
     protected:
       // Plugins interface
-      TInterface       m_Interface;
-      std::string      m_LastLoadedPlugin;
-      TStringContainer m_LoadedPlugins;
-      std::map< std::string, TStringContainer > m_LoadedFilters;
+      TInterface* m_Interface;
 
       // Processing graph
       typename TGraph::Pointer m_Graph;