X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FPort.h;fp=lib%2FcpPlugins%2FPort.h;h=0000000000000000000000000000000000000000;hb=aa77db36cc1d87ba014c982a235239c3c87224f3;hp=c7f81707cf7eb90af77d94934c6f89d92c41a43f;hpb=733108d258a27799df875ceda2d84c3cafea64d3;p=cpPlugins.git diff --git a/lib/cpPlugins/Port.h b/lib/cpPlugins/Port.h deleted file mode 100644 index c7f8170..0000000 --- a/lib/cpPlugins/Port.h +++ /dev/null @@ -1,82 +0,0 @@ -#ifndef __CPPLUGINS__PORT__H__ -#define __CPPLUGINS__PORT__H__ - -#include - -namespace cpPlugins -{ - /** - */ - class cpPlugins_EXPORT Port - { - public: - typedef Port Self; - - public: - Port( ); - virtual ~Port( ); - Self& operator=( DataObject* obj ); - Self& operator=( const Self& other ); - - bool IsValid( ) const; - - // This could be seen as a pointer to DataObject's - inline DataObject* GetPointer( ) - { return( this->m_Data.GetPointer( ) ); } - inline const DataObject* GetPointer( ) const - { return( this->m_Data.GetPointer( ) ); } - inline DataObject* operator->( ) const - { return( this->m_Data.GetPointer( ) ); } - - inline void SetPointer( DataObject* ptr ) - { this->m_Data = ptr; } - - protected: - cpPlugins::DataObject::Pointer m_Data; - }; - - /** - */ - class cpPlugins_EXPORT InputPort - : public Port - { - public: - typedef InputPort Self; - typedef Port Superclass; - - public: - InputPort( bool required = false ); - virtual ~InputPort( ); - Self& operator=( DataObject* obj ); - Self& operator=( const Superclass& other ); - - bool IsRequired( ) const; - void RequiredOn( ); - void RequiredOff( ); - void SetRequired( bool required ); - - protected: - bool m_Required; - }; - - /** - */ - class cpPlugins_EXPORT OutputPort - : public Port - { - public: - typedef OutputPort Self; - typedef Port Superclass; - - public: - OutputPort( ); - virtual ~OutputPort( ); - Self& operator=( DataObject* obj ); - Self& operator=( const Superclass& other ); - }; - -} // ecapseman - -#endif // __CPPLUGINS__PORT__H__ - -// eof - $RCSfile$