Salome HOME
Traces
[modules/superv.git] / src / GraphEditor / DataFlowEditor_DataFlow.cxx
index 40e263912dd27cb08d888434026dedca6c48e745..40d20bdda12fac5de919fd24e302e5a5ced5ab3d 100644 (file)
@@ -41,15 +41,21 @@ GraphEditor::DataFlow::DataFlow() :
   cdebug_out << "GraphEditor::DataFlow::DataFlowEditor()" << endl;
 }
 
+//extern ostream * fdebug ;
+
 GraphEditor::DataFlow::DataFlow( CORBA::ORB_ptr ORB,
                                  SALOME_NamingService* ptrNamingService ,
                                  const char *DataFlowName ,
-                                 const char * DebugFileName ) :
-  OutNode( ORB, ptrNamingService , DataFlowName , DebugFileName ) {
+                                 const char * DebugFileName ,
+                                 const SUPERV::KindOfNode aKindOfNode ) :
+  OutNode( ORB, ptrNamingService , DataFlowName , DebugFileName , aKindOfNode ) {
+//  cout << "GraphEditor::DataFlow::DataFlow(" ;
   cdebug_in << "GraphEditor::DataFlow::DataFlow(" ;
   if ( DataFlowName ) {
-    cdebug << DataFlowName ;
+//    cout << DataFlowName << " , " << DebugFileName ;
+    cdebug << DataFlowName << " , " << DebugFileName;
   }
+//  cout << ")" << endl;
   cdebug << ")" << endl;
 
   _theNamingService = ptrNamingService ;
@@ -58,6 +64,7 @@ GraphEditor::DataFlow::DataFlow( CORBA::ORB_ptr ORB,
   _Executing = false ;
 
   cdebug_out << "GraphEditor::DataFlow::DataFlow" << endl;
+//  fdebug = new ofstream( DebugFileName ); // GraphBase::Base::_fdebug ;
 }
 
 GraphEditor::DataFlow::DataFlow(
@@ -96,23 +103,4 @@ GraphEditor::DataFlow::~DataFlow() {
 //  delete _GT ;
 }
 
-#if 0
-GraphExecutor::DataFlow * GraphEditor::DataFlow::Run() {
-  cdebug_in << "GraphEditor::DataFlow::Run" << endl;
-  SUPERV::SGraph * theDataFlow ;
-  GraphExecutor::DataFlow * aDataFlowExecutor ;
-  theDataFlow = GetDataFlow() ;
-  aDataFlowExecutor = new GraphExecutor::DataFlow( NamingService() ,
-                                                   theDataFlow->Info.theName ) ;
-  if ( aDataFlowExecutor->LoadDataFlow( *theDataFlow ) ) {
-    aDataFlowExecutor->Run() ;
-  }
-  else {
-    MESSAGE( "GraphEditor::DataFlow::Run error while loading DataFlowExecutor")
-    delete aDataFlowExecutor ;
-  }
-  cdebug_out << "GraphEditor::DataFlow::Run" << endl;
-  return aDataFlowExecutor ;
-}
-#endif