]> SALOME platform Git repositories - modules/superv.git/blobdiff - src/GraphEditor/DataFlowEditor_DataFlow.cxx
Salome HOME
Bug fix: don't set "Loading" state for MacroNodes in InitialState() function (called...
[modules/superv.git] / src / GraphEditor / DataFlowEditor_DataFlow.cxx
index 836dac09074ba8562c73e9ac5552f6fb85456224..40d20bdda12fac5de919fd24e302e5a5ced5ab3d 100644 (file)
@@ -1,5 +1,30 @@
-using namespace std;
+//  SUPERV GraphEditor : contains classes that permit edition of graphs
+//
+//  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
+// 
+//  This library is free software; you can redistribute it and/or 
+//  modify it under the terms of the GNU Lesser General Public 
+//  License as published by the Free Software Foundation; either 
+//  version 2.1 of the License. 
+// 
+//  This library is distributed in the hope that it will be useful, 
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of 
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
+//  Lesser General Public License for more details. 
+// 
+//  You should have received a copy of the GNU Lesser General Public 
+//  License along with this library; if not, write to the Free Software 
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
+// 
+//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+//
+//
+//
+//  File   : DataFlowEditor_DataFlow.cxx
+//  Module : SUPERV
 
+using namespace std;
 #include "DataFlowEditor_DataFlow.hxx"
 
 // Implementation de la classe GraphEditor::Graph
@@ -16,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 ;
@@ -33,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(
@@ -71,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