1 #include <cpPlugins/Port.h>
3 // -------------------------------------------------------------------------
10 // -------------------------------------------------------------------------
16 // -------------------------------------------------------------------------
18 Self& cpPlugins::Port::
19 operator=( DataObject* obj )
25 // -------------------------------------------------------------------------
27 Self& cpPlugins::Port::
28 operator=( const Self& other )
30 this->m_Data = other.m_Data;
34 // -------------------------------------------------------------------------
35 bool cpPlugins::Port::
38 return( this->m_Data.IsNotNull( ) );
41 // -------------------------------------------------------------------------
42 cpPlugins::InputPort::
43 InputPort( bool required )
45 m_Required( required )
49 // -------------------------------------------------------------------------
50 cpPlugins::InputPort::
55 // -------------------------------------------------------------------------
56 cpPlugins::InputPort::
57 Self& cpPlugins::InputPort::
58 operator=( DataObject* obj )
60 this->Superclass::operator=( obj );
64 // -------------------------------------------------------------------------
65 cpPlugins::InputPort::
66 Self& cpPlugins::InputPort::
67 operator=( const Superclass& other )
69 this->Superclass::operator=( other );
70 auto i = dynamic_cast< const InputPort* >( &other );
72 this->m_Required = i->m_Required;
76 // -------------------------------------------------------------------------
77 bool cpPlugins::InputPort::
80 return( this->m_Required );
83 // -------------------------------------------------------------------------
84 void cpPlugins::InputPort::
87 this->SetRequired( true );
90 // -------------------------------------------------------------------------
91 void cpPlugins::InputPort::
94 this->SetRequired( false );
97 // -------------------------------------------------------------------------
98 void cpPlugins::InputPort::
99 SetRequired( bool required )
101 this->m_Required = required;
104 // -------------------------------------------------------------------------
105 cpPlugins::OutputPort::
111 // -------------------------------------------------------------------------
112 cpPlugins::OutputPort::
117 // -------------------------------------------------------------------------
118 cpPlugins::OutputPort::
119 Self& cpPlugins::OutputPort::
120 operator=( DataObject* obj )
122 this->Superclass::operator=( obj );
126 // -------------------------------------------------------------------------
127 cpPlugins::OutputPort::
128 Self& cpPlugins::OutputPort::
129 operator=( const Superclass& other )
131 this->Superclass::operator=( other );