2 //=============================================================================
3 // File : DataFlowBase_InPort.cxx
5 // Author : Jean Rahuel, CEA
8 //=============================================================================
10 #include "DataFlowBase_InPort.hxx"
11 #include "DataFlowBase_OutPort.hxx"
13 char ** _PortStateName ;
15 GraphBase::InPort::InPort(
16 const char *const * Name ,
17 const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ,
18 const SUPERV::KindOfPort aKind) :
19 Port( Name , aserviceParameter ) {
21 _InitialOutPort = NULL ;
25 //GraphBase::InPort::~InPort() {
26 // cout << "InPort::~InPort()" << endl ;
29 bool GraphBase::InPort::IsConnected() const {
30 return ( _OutPort != NULL && !_OutPort->IsDataConnected() ) ;
33 bool GraphBase::InPort::IsDataConnected() const {
34 return ( _OutPort != NULL && _OutPort->IsDataConnected() ) ;
37 void GraphBase::InPort::StringValue(ostream & f ) const {
39 _OutPort->StringValue( f ) ;
44 ostream & operator<< (ostream &f ,const GraphBase::InPort &P) {
45 f << P.PortName() << ", "
46 << "type : " << P.PortType() << ", " ;
48 << P.NodeName() << ", ";