]> Creatis software - cpPlugins.git/blob - plugins/GenericPlugins/DataReproducer.cxx
yet another refactoring
[cpPlugins.git] / plugins / GenericPlugins / DataReproducer.cxx
1 #include "DataReproducer.h"
2 #include <cpPlugins/Pipeline/DataObject.h>
3
4 // -------------------------------------------------------------------------
5 void cpPlugins_GenericPlugins::DataReproducer::
6 AddInput( const std::string& n, cpPlugins::Pipeline::DataObject* o )
7 {
8   this->Superclass::AddInput( n, o );
9   auto out =
10     dynamic_cast< cpPlugins::Pipeline::OutputPort* >(
11       this->m_Outputs.find( "Output" )->second
12       );
13   out->Set( o );
14 }
15
16 // -------------------------------------------------------------------------
17 void cpPlugins_GenericPlugins::DataReproducer::
18 SetInput( const std::string& n, cpPlugins::Pipeline::DataObject* o )
19 {
20   this->Superclass::SetInput( n, o );
21   auto out =
22     dynamic_cast< cpPlugins::Pipeline::OutputPort* >(
23       this->m_Outputs.find( "Output" )->second
24       );
25   out->Set( o );
26 }
27
28 // -------------------------------------------------------------------------
29 cpPlugins_GenericPlugins::DataReproducer::
30 DataReproducer( )
31   : Superclass( )
32 {
33   this->_ConfigureInput( "Input", true, false );
34   this->_ConfigureOutput( "Output" );
35 }
36
37 // -------------------------------------------------------------------------
38 cpPlugins_GenericPlugins::DataReproducer::
39 ~DataReproducer( )
40 {
41 }
42
43 // -------------------------------------------------------------------------
44 void cpPlugins_GenericPlugins::DataReproducer::
45 _GenerateData( )
46 {
47 }
48
49 // eof - $RCSfile$