Salome HOME
NRI : Merge from 1.2c.
[modules/superv.git] / src / GraphBase / DataFlowBase_PortsOfNode.hxx
index 0b2263302555a6eb265ada5418a9127194d4ab24..395c81a2d50e71610bf85cd550d69b0ffb9a7563 100644 (file)
@@ -64,7 +64,7 @@ namespace GraphBase {
 //                           const bool WithInGate ,
 //                           const bool WithOutGate ,
                            int * Graph_prof_debug ,
-                           ostream * Graph_fdebug ) ;
+                           ofstream * Graph_fdebug ) ;
 
       InPort * AddInPort( CORBA::ORB_ptr ORB ,
                           const char *const * NodeName ,
@@ -72,36 +72,53 @@ namespace GraphBase {
                           const char * InputParameterName ,
                           const char * InputParameterType ,
                           int * Graph_prof_debug ,
-                          ostream * Graph_fdebug ) ;
+                          ofstream * Graph_fdebug ) ;
       OutPort * AddOutPort( CORBA::ORB_ptr ORB ,
                             const char *const * NodeName ,
                             const SUPERV::KindOfNode aKind ,
                             const char * OutputParameterName ,
                             const char * InputParameterType ,
                             int * Graph_prof_debug ,
-                            ostream * Graph_fdebug ) ;
+                            ofstream * Graph_fdebug ) ;
 //      void InOutPort( InPort * InputPort , OutPort * OutputPort ) ;
 
       void DelInPort( const char * InputParameterName ) ;
       void DelOutPort( const char * OutputParameterName ) ;
 
       const int GetNodeInPortsSize() const { return _NodeInPortsSize ; } ;
-      const InPort *GetNodeInPort(int i) const {
+      const InPort * GetNodeInLoop() const {
+                   return _NodeInPorts[0] ; } ;
+      const InPort * GetNodeInGate() const {
+                   return _NodeInPorts[GetNodeInPortsSize()-1] ; } ;
+      const InPort * GetNodeInPort(int i) const {
                    return _NodeInPorts[i] ; } ;
-      InPort *GetChangeNodeInPort(int i) const {
+      InPort * GetChangeNodeInLoop() const {
+                   return _NodeInPorts[0] ; } ;
+      InPort * GetChangeNodeInGate() const {
+                   return _NodeInPorts[GetNodeInPortsSize()-1] ; } ;
+      InPort * GetChangeNodeInPort(int i) const {
                    return _NodeInPorts[i] ; } ;
       const int GetNodeOutPortsSize() const { return _NodeOutPortsSize ; } ;
-      const OutPort *GetNodeOutPort(int i) const {
+      const OutPort * GetNodeOutLoop() const {
+                   return _NodeOutPorts[0] ; } ;
+      const OutPort * GetNodeOutGate() const {
+                   return _NodeOutPorts[GetNodeOutPortsSize()-1] ; } ;
+      const OutPort * GetNodeOutPort(int i) const {
                    return _NodeOutPorts[i] ; } ;
-      OutPort *GetChangeNodeOutPort(int i) const {
+      OutPort * GetChangeNodeOutLoop() const {
+                   return _NodeOutPorts[0] ; } ;
+      OutPort * GetChangeNodeOutGate() const {
+                   return _NodeOutPorts[GetNodeOutPortsSize()-1] ; } ;
+      OutPort * GetChangeNodeOutPort(int i) const {
                    return _NodeOutPorts[i] ; } ;
 
-      const InPort *GetInPort( const char *name ) ;
-      const OutPort *GetOutPort( const char *name ) ;
-      InPort *GetChangeInPort( const char *name ) ;
-      OutPort *GetChangeOutPort( const char *name ) ;
+      const InPort * GetInPort( const char *name ) ;
+      const OutPort * GetOutPort( const char *name ) ;
+      InPort * GetChangeInPort( const char *name ) ;
+      OutPort * GetChangeOutPort( const char *name ) ;
 
-      void ListPorts( ostrstream & , const bool klink = true ) const ;
+//      void ListPorts( ostream & , const bool klink = true ) const ;
+      void ListPorts( ostream & , const bool klink = true ) const ;
   };
   
 };