X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FProcessObject.h;h=d201a6c84c09ac57782062d14178420412d206e0;hb=a3f2018cdd92e865082fed86673f10207c21ec51;hp=3381fa818e77c4685f54286c31253c545865b7ff;hpb=54e12e973942f6ddfe6c606acf2fd93480ca6165;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/ProcessObject.h b/lib/cpPlugins/Interface/ProcessObject.h index 3381fa8..d201a6c 100644 --- a/lib/cpPlugins/Interface/ProcessObject.h +++ b/lib/cpPlugins/Interface/ProcessObject.h @@ -37,29 +37,28 @@ namespace cpPlugins virtual void SetNumberOfOutputs( unsigned int n ); virtual void SetInput( unsigned int idx, DataObject* dobj ); - virtual DataObject* GetOutput( unsigned int idx ); virtual std::string Update( ); virtual void DisconnectOutputs( ); - protected: - ProcessObject( ); - virtual ~ProcessObject( ); - - template< class O > - inline void _MakeOutput( unsigned int idx ); - template< class T > - inline T* _Input( unsigned int idx ); + inline T* GetInput( unsigned int idx ); template< class T > - inline const T* _Input( unsigned int idx ) const; + inline const T* GetInput( unsigned int idx ) const; template< class T > - inline T* _Output( unsigned int idx ); + inline T* GetOutput( unsigned int idx ); template< class T > - inline const T* _Output( unsigned int idx ) const; + inline const T* GetOutput( unsigned int idx ) const; + + protected: + ProcessObject( ); + virtual ~ProcessObject( ); + + template< class O > + inline void _MakeOutput( unsigned int idx ); virtual std::string _GenerateData( ) = 0;