1 #include <cpPlugins/Interface/ProcessObjectPort.h>
3 // -------------------------------------------------------------------------
4 cpPlugins::Interface::ProcessObjectPort::
10 // -------------------------------------------------------------------------
11 cpPlugins::Interface::ProcessObjectPort::
16 // -------------------------------------------------------------------------
17 cpPlugins::Interface::ProcessObjectPort::
18 Self& cpPlugins::Interface::ProcessObjectPort::
19 operator=( DataObject* obj )
25 // -------------------------------------------------------------------------
26 cpPlugins::Interface::ProcessObjectPort::
27 Self& cpPlugins::Interface::ProcessObjectPort::
28 operator=( const Self& other )
30 this->m_Data = other.m_Data.GetPointer( );
34 // -------------------------------------------------------------------------
35 bool cpPlugins::Interface::ProcessObjectPort::
38 return( this->m_Data.IsNotNull( ) );
41 // -------------------------------------------------------------------------
42 cpPlugins::Interface::InputProcessObjectPort::
43 InputProcessObjectPort( bool required )
48 // -------------------------------------------------------------------------
49 cpPlugins::Interface::InputProcessObjectPort::
50 ~InputProcessObjectPort( )
54 // -------------------------------------------------------------------------
55 cpPlugins::Interface::InputProcessObjectPort::
56 Self& cpPlugins::Interface::InputProcessObjectPort::
57 operator=( DataObject* obj )
59 this->Superclass::operator=( obj );
63 // -------------------------------------------------------------------------
64 cpPlugins::Interface::InputProcessObjectPort::
65 Self& cpPlugins::Interface::InputProcessObjectPort::
66 operator=( const Superclass& other )
68 auto i = dynamic_cast< const InputProcessObjectPort* >( &other );
69 this->Superclass::operator=( other );
71 this->m_Required = i->m_Required;
75 // -------------------------------------------------------------------------
76 bool cpPlugins::Interface::InputProcessObjectPort::
79 return( this->m_Required );
82 // -------------------------------------------------------------------------
83 void cpPlugins::Interface::InputProcessObjectPort::
86 this->SetRequired( true );
89 // -------------------------------------------------------------------------
90 void cpPlugins::Interface::InputProcessObjectPort::
93 this->SetRequired( false );
96 // -------------------------------------------------------------------------
97 void cpPlugins::Interface::InputProcessObjectPort::
98 SetRequired( bool required )
100 this->m_Required = required;
103 // -------------------------------------------------------------------------
104 cpPlugins::Interface::OutputProcessObjectPort::
105 OutputProcessObjectPort( )
110 // -------------------------------------------------------------------------
111 cpPlugins::Interface::OutputProcessObjectPort::
112 ~OutputProcessObjectPort( )
116 // -------------------------------------------------------------------------
117 cpPlugins::Interface::OutputProcessObjectPort::
118 Self& cpPlugins::Interface::OutputProcessObjectPort::
119 operator=( DataObject* obj )
121 this->Superclass::operator=( obj );
125 // -------------------------------------------------------------------------
126 cpPlugins::Interface::OutputProcessObjectPort::
127 Self& cpPlugins::Interface::OutputProcessObjectPort::
128 operator=( const Superclass& other )
130 this->Superclass::operator=( other );