Salome HOME
Error Messages
[modules/superv.git] / src / GraphBase / DataFlowBase_EndOfSwitchNode.hxx
index 93e2599d10b372258434fc874bcf7fc72656f6e7..c6ac446fff82a41783298088c9dbfc231a6e9852 100644 (file)
@@ -44,19 +44,14 @@ namespace GraphBase {
                   ofstream * Graph_fdebug = NULL ) ;
       virtual ~EndOfSwitchNode() ;
 
-      void InitEndSwitchInPortLinked() { // without StreamInPorts and Default
-           _EndSwitchInPortLinkedNumber = GetNodeInPortsSize() - DataStreamInPortsNumber() - 1 ;
-           _SwitchWithGOTO = false ;
-           int i ;
-           for ( i = 0 ; i < GetNodeInPortsSize()-1 ; i++ ) {
-             GetChangeNodeInPort( i )->BranchOfSwitchLinked( false ) ;
-          } } ;
-      bool DecrEndSwitchInPortLinked( GraphBase::InPort * anInPort ) ;
+      void InitEndSwitchInPortLinked() ;
+      bool DecrEndSwitchInPortLinked( GraphBase::InPort * anInPort ,
+                                      string & anErrorMessage ) ;
       void SetSwitchWithGOTO() {
            _SwitchWithGOTO = true ; } ;
       bool SwitchWithGOTO() {
            return _SwitchWithGOTO ; } ;
-      bool CheckEndSwitchInPortsLinked() ;
+      bool CheckEndSwitchInPortsLinked( string & anErrorMessage ) ;
 
   };