Salome HOME
method getViewType() added that returns CANVAS, CONTROL or CANVASTABLE constant corre...
[modules/superv.git] / src / GraphBase / DataFlowBase_LoopNode.cxx
index 12d0f32275e7ee006783f49ad581d9cd9a0c5349..b06288115590b2c6a48acc515b703a59ea3adb22 100644 (file)
@@ -1,14 +1,17 @@
-using namespace std;
-//=============================================================================
-// File      : DataFlowBase_LoopNode.cxx
-// Created   : 2003
-// Author    : Jean Rahuel, CEA
-// Project   : SALOME
-// $Header:
-//=============================================================================
+//  SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
+//
+//  Copyright (C) 2003  CEA/DEN, EDF R&D
+//
+//
+//
+//  File   : DataFlowBase_LoopNode.cxx
+//  Author : Jean Rahuel, CEA
+//  Module : SUPERV
+//  $Header:
 
-#include <strstream>
-#include <iostream>
+using namespace std;
+//#include <sstream>
+//#include <iostream>
 
 #include "DataFlowBase_LoopNode.hxx"
 
@@ -40,7 +43,7 @@ GraphBase::LoopNode::LoopNode( CORBA::ORB_ptr ORB ,
                                const long   X ,
                                const long   Y ,
                                int * Graph_prof_debug ,
-                               ostream * Graph_fdebug ) :
+                               ofstream * Graph_fdebug ) :
   GraphBase::GOTONode::GOTONode( ORB , ptrNamingService , InitName , anInitPythonFunction ,
                                  NodeName , akind , NodeFirstCreation ,
                                  NodeLastModification  , NodeEditorRelease ,
@@ -56,11 +59,20 @@ GraphBase::LoopNode::LoopNode( CORBA::ORB_ptr ORB ,
             << ServiceInParameter().length()
             << ") Out(" << ServiceOutParameter().length() << ")" << endl ;
 
-  cdebug << "GraphBase::LoopNode::LoopNode SetMorePythonFunction " << MoreName << " "
-         << aMorePythonFunction[0] << endl ;
+  _MyPyMoreMethod = NULL ;
+  _MyPyNextMethod = NULL ;
+
+  cdebug << "GraphBase::LoopNode::LoopNode SetMorePythonFunction " << MoreName << " " ;
+  if ( aMorePythonFunction.length() ) {
+    cdebug << aMorePythonFunction[0] ;
+  }
+  cdebug << endl ;
   SetMorePythonFunction( MoreName , aMorePythonFunction ) ;
-  cdebug << "GraphBase::LoopNode::LoopNode SetNextPythonFunction " << NextName << " "
-         << aNextPythonFunction[0] << endl ;
+  cdebug << "GraphBase::LoopNode::LoopNode SetNextPythonFunction " << NextName << " " ;
+  if ( aNextPythonFunction.length() ) {
+    cdebug << aNextPythonFunction[0] ;
+  }
+  cdebug << endl ;
   SetNextPythonFunction( NextName , aNextPythonFunction ) ;
 
   cdebug_out << "GraphBase::LoopNode::LoopNode" << endl;