]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.hxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.hxx
index a4a417bde2fbe6f289fdf62e55491c4a1df0642e..f84d4a6301e202cf44bfbb95fb8b0e4b9b7a4bb2 100644 (file)
@@ -1,21 +1,10 @@
 #ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__
 #define __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__
 
-// -------------------------------------------------------------------------
-template< class O >
-void cpPlugins::Interface::ProcessObject::
-_MakeOutput( unsigned int idx )
-{
-  if( idx >= this->m_Outputs.size( ) )
-    return;
-  this->m_Outputs[ idx ] = O::New( );
-  this->m_Outputs[ idx ]->SetSource( this );
-}
-
 // -------------------------------------------------------------------------
 template< class T >
 T* cpPlugins::Interface::ProcessObject::
-_Input( unsigned int idx )
+GetInput( unsigned int idx )
 {
   if( idx < this->m_Inputs.size( ) )
     return( dynamic_cast< T* >( this->m_Inputs[ idx ].GetPointer( ) ) );
@@ -26,7 +15,7 @@ _Input( unsigned int idx )
 // -------------------------------------------------------------------------
 template< class T >
 const T* cpPlugins::Interface::ProcessObject::
-_Input( unsigned int idx ) const
+GetInput( unsigned int idx ) const
 {
   if( idx < this->m_Inputs.size( ) )
     return(
@@ -39,7 +28,7 @@ _Input( unsigned int idx ) const
 // -------------------------------------------------------------------------
 template< class T >
 T* cpPlugins::Interface::ProcessObject::
-_Output( unsigned int idx )
+GetOutput( unsigned int idx )
 {
   if( idx < this->m_Outputs.size( ) )
     return( dynamic_cast< T* >( this->m_Outputs[ idx ].GetPointer( ) ) );
@@ -50,7 +39,7 @@ _Output( unsigned int idx )
 // -------------------------------------------------------------------------
 template< class T >
 const T* cpPlugins::Interface::ProcessObject::
-_Output( unsigned int idx ) const
+GetOutput( unsigned int idx ) const
 {
   if( idx < this->m_Outputs.size( ) )
     return(
@@ -60,6 +49,17 @@ _Output( unsigned int idx ) const
     return( NULL );
 }
 
+// -------------------------------------------------------------------------
+template< class O >
+void cpPlugins::Interface::ProcessObject::
+_MakeOutput( unsigned int idx )
+{
+  if( idx >= this->m_Outputs.size( ) )
+    return;
+  this->m_Outputs[ idx ] = O::New( );
+  this->m_Outputs[ idx ]->SetSource( this );
+}
+
 #endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__HXX__
 
 // eof - $RCSfile$