]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/BasicFilters/InputDataReproducer.cxx
...
[cpPlugins.git] / lib / cpPlugins / Plugins / BasicFilters / InputDataReproducer.cxx
1 #include "InputDataReproducer.h"
2
3 // -------------------------------------------------------------------------
4 cpPlugins::BasicFilters::InputDataReproducer::
5 InputDataReproducer( )
6   : Superclass( )
7 {
8   this->_AddInput( "Input" );
9   this->_AddOutput< cpPlugins::Interface::DataObject >( "Output" );
10   this->m_Parameters->Clear( );
11 }
12
13 // -------------------------------------------------------------------------
14 cpPlugins::BasicFilters::InputDataReproducer::
15 ~InputDataReproducer( )
16 {
17 }
18
19 // -------------------------------------------------------------------------
20 std::string cpPlugins::BasicFilters::InputDataReproducer::
21 _GenerateData( )
22 {
23   auto i = this->m_Inputs.find( "Input" );
24   auto o = this->m_Outputs.find( "Output" );
25   if( i == this->m_Inputs.end( ) || o == this->m_Outputs.end( ) )
26     return( "InputDataReproducer: No input/output ports." );
27
28   // Connect output
29   o->second = i->second;
30   return( "" );
31 }
32
33 // eof - $RCSfile$