1 #ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__
2 #define __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__
4 // -------------------------------------------------------------------------
6 void cpPlugins::Interface::ProcessObject::
7 _MakeOutput( unsigned int idx )
9 if( idx >= this->m_Outputs.size( ) )
11 this->m_Outputs[ idx ] = O::New( );
12 this->m_Outputs[ idx ]->SetSource( this );
15 // -------------------------------------------------------------------------
17 T* cpPlugins::Interface::ProcessObject::
18 _Input( unsigned int idx )
20 if( idx < this->m_Inputs.size( ) )
21 return( dynamic_cast< T* >( this->m_Inputs[ idx ].GetPointer( ) ) );
26 // -------------------------------------------------------------------------
28 const T* cpPlugins::Interface::ProcessObject::
29 _Input( unsigned int idx ) const
31 if( idx < this->m_Inputs.size( ) )
32 return( dynamic_cast< const T* >( this->m_Inputs[ idx ].GetPointer( ) ) );
37 // -------------------------------------------------------------------------
39 T* cpPlugins::Interface::ProcessObject::
40 _Output( unsigned int idx )
42 if( idx < this->m_Outputs.size( ) )
43 return( dynamic_cast< T* >( this->m_Outputs[ idx ].GetPointer( ) ) );
48 // -------------------------------------------------------------------------
50 const T* cpPlugins::Interface::ProcessObject::
51 _Output( unsigned int idx ) const
53 if( idx < this->m_Outputs.size( ) )
54 return( dynamic_cast< const T* >( this->m_Outputs[ idx ].GetPointer( ) ) );
59 #endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__