Salome HOME
NRI : Merge from 1.2c.
[modules/superv.git] / src / GraphBase / DataFlowBase_InLineNode.cxx
index b6285e696ec4d93d3a9622ee8c7600f3b33fd396..e182718d04dd54681bccc2faf3b08581931ae816 100644 (file)
@@ -10,8 +10,8 @@
 //  $Header:
 
 using namespace std;
-#include <strstream>
-#include <iostream>
+//#include <sstream>
+//#include <iostream>
 
 #include "DataFlowBase_InLineNode.hxx"
 
@@ -24,7 +24,7 @@ GraphBase::InLineNode::InLineNode( CORBA::ORB_ptr ORB ,
                                    SALOME_NamingService* ptrNamingService ,
                                    const char * aDataFlowName ,
                                    int * Graph_prof_debug ,
-                                   ostream * Graph_fdebug ) :
+                                   ofstream * Graph_fdebug ) :
   GraphBase::ComputingNode::ComputingNode( ORB , ptrNamingService , aDataFlowName ,
                                            Graph_prof_debug , Graph_fdebug ) {
   _PythonFunction = SUPERV::ListOfStrings() ;
@@ -48,7 +48,7 @@ GraphBase::InLineNode::InLineNode( CORBA::ORB_ptr ORB ,
                                    const long   X ,
                                    const long   Y ,
                                    int * Graph_prof_debug ,
-                                   ostream * Graph_fdebug ) :
+                                   ofstream * Graph_fdebug ) :
   GraphBase::ComputingNode::ComputingNode( ORB , ptrNamingService ,
                                            NodeService ,
                                            NodeName , akind , NodeFirstCreation ,
@@ -85,7 +85,7 @@ GraphBase::InLineNode::InLineNode( CORBA::ORB_ptr ORB ,
                                    const long   X ,
                                    const long   Y ,
                                    int * Graph_prof_debug ,
-                                   ostream * Graph_fdebug ) :
+                                   ofstream * Graph_fdebug ) :
   GraphBase::ComputingNode::ComputingNode( ORB , ptrNamingService ,
                                            SALOME_ModuleCatalog::Service() ,
                                            NodeName , akind , NodeFirstCreation ,
@@ -131,8 +131,11 @@ GraphBase::InLineNode::~InLineNode() {
 void GraphBase::InLineNode::SetPythonFunction( const char * FuncName ,
                                                const SUPERV::ListOfStrings & aPythonFunction ) {
   int i ;
-  cdebug << "GraphBase::InLineNode::PythonFunction length " << aPythonFunction.length()
-         << endl ;
+  cdebug << "GraphBase::InLineNode::PythonFunction length " << aPythonFunction.length() ;
+  if ( aPythonFunction.length() == 1 ) {
+    cdebug << " aPythonFunction[ 0 ] '" << aPythonFunction[ 0 ] << "'" ;
+  }
+  cdebug << endl ;
   _FuncName = my_strdup( FuncName ) ;
   if ( ( aPythonFunction.length() == 0 ) ||
          ( aPythonFunction.length() == 1 && strlen( aPythonFunction[ 0 ] ) == 0 ) ) {
@@ -140,7 +143,7 @@ void GraphBase::InLineNode::SetPythonFunction( const char * FuncName ,
   }
   else {
     _PythonFunction.length( aPythonFunction.length() ) ;
-    for ( i = 0 ; i < aPythonFunction.length() ; i++ ) {
+    for ( i = 0 ; i < (int ) aPythonFunction.length() ; i++ ) {
       cdebug << aPythonFunction[ i ] << endl ;
       _PythonFunction[ i ] = CORBA::string_dup( aPythonFunction[ i ] ) ;
     }