]> Creatis software - cpPlugins.git/blobdiff - plugins/GenericPlugins/DataReproducer.cxx
yet another refactoring
[cpPlugins.git] / plugins / GenericPlugins / DataReproducer.cxx
diff --git a/plugins/GenericPlugins/DataReproducer.cxx b/plugins/GenericPlugins/DataReproducer.cxx
new file mode 100644 (file)
index 0000000..586e37b
--- /dev/null
@@ -0,0 +1,49 @@
+#include "DataReproducer.h"
+#include <cpPlugins/Pipeline/DataObject.h>
+
+// -------------------------------------------------------------------------
+void cpPlugins_GenericPlugins::DataReproducer::
+AddInput( const std::string& n, cpPlugins::Pipeline::DataObject* o )
+{
+  this->Superclass::AddInput( n, o );
+  auto out =
+    dynamic_cast< cpPlugins::Pipeline::OutputPort* >(
+      this->m_Outputs.find( "Output" )->second
+      );
+  out->Set( o );
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins_GenericPlugins::DataReproducer::
+SetInput( const std::string& n, cpPlugins::Pipeline::DataObject* o )
+{
+  this->Superclass::SetInput( n, o );
+  auto out =
+    dynamic_cast< cpPlugins::Pipeline::OutputPort* >(
+      this->m_Outputs.find( "Output" )->second
+      );
+  out->Set( o );
+}
+
+// -------------------------------------------------------------------------
+cpPlugins_GenericPlugins::DataReproducer::
+DataReproducer( )
+  : Superclass( )
+{
+  this->_ConfigureInput( "Input", true, false );
+  this->_ConfigureOutput( "Output" );
+}
+
+// -------------------------------------------------------------------------
+cpPlugins_GenericPlugins::DataReproducer::
+~DataReproducer( )
+{
+}
+
+// -------------------------------------------------------------------------
+void cpPlugins_GenericPlugins::DataReproducer::
+_GenerateData( )
+{
+}
+
+// eof - $RCSfile$