]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Workspace.cxx
MVC integration at 50%
[cpPlugins.git] / lib / cpPlugins / Workspace.cxx
index d441c49699b86e8b49e399a2dc1adb75006f1aa5..4c1fe1d298b2976faf57a21b5869bdfa1d0d365a 100644 (file)
@@ -94,6 +94,28 @@ GetFilter( const std::string& name ) const
   return( f );
 }
 
+// -------------------------------------------------------------------------
+cpPlugins::DataObject* cpPlugins::Workspace::
+GetOutput( const std::string& filter, const std::string& output )
+{
+  auto f = this->GetFilter( filter );
+  if( f != NULL )
+    return( f->GetOutput( output ) );
+  else
+    return( NULL );
+}
+
+// -------------------------------------------------------------------------
+const cpPlugins::DataObject* cpPlugins::Workspace::
+GetOutput( const std::string& filter, const std::string& output ) const
+{
+  auto f = this->GetFilter( filter );
+  if( f != NULL )
+    return( f->GetOutput( output ) );
+  else
+    return( NULL );
+}
+
 // -------------------------------------------------------------------------
 bool cpPlugins::Workspace::
 HasFilter( const std::string& name ) const