3 #include "DataFlowEditor_DataFlow.hxx"
5 // Implementation de la classe GraphEditor::Graph
7 GraphEditor::DataFlow::DataFlow() :
9 cdebug_in << "GraphEditor::DataFlow::DataFlowEditor()" << endl;
11 _theNamingService = NULL ;
12 _DataFlowExecutor = NULL ;
16 cdebug_out << "GraphEditor::DataFlow::DataFlowEditor()" << endl;
19 GraphEditor::DataFlow::DataFlow( CORBA::ORB_ptr ORB,
20 SALOME_NamingService* ptrNamingService ,
21 const char *DataFlowName ,
22 const char * DebugFileName ) :
23 OutNode( ORB, ptrNamingService , DataFlowName , DebugFileName ) {
24 cdebug_in << "GraphEditor::DataFlow::DataFlow(" ;
26 cdebug << DataFlowName ;
28 cdebug << ")" << endl;
30 _theNamingService = ptrNamingService ;
31 _DataFlowExecutor = NULL ;
35 cdebug_out << "GraphEditor::DataFlow::DataFlow" << endl;
38 GraphEditor::DataFlow::DataFlow(
40 SALOME_NamingService* ptrNamingService ,
41 const SALOME_ModuleCatalog::Service& DataFlowService ,
42 const char *DataFlowComponentName ,
43 const char *DataFlowInterfaceName ,
44 const char *DataFlowName ,
45 const SUPERV::KindOfNode DataFlowkind ,
46 const SUPERV::SDate DataFlowFirstCreation ,
47 const SUPERV::SDate DataFlowLastModification ,
48 const char * DataFlowEditorRelease ,
49 const char * DataFlowAuthor ,
50 const char * DataFlowComputer ,
51 const char * DataFlowComment ,
52 const char * DebugFileName ) :
53 OutNode( ORB, ptrNamingService , DataFlowService , DataFlowComponentName ,
54 DataFlowInterfaceName , DataFlowName , DataFlowkind ,
55 DataFlowFirstCreation , DataFlowLastModification ,
56 DataFlowEditorRelease , DataFlowAuthor ,
57 DataFlowComputer , DataFlowComment , DebugFileName ) {
58 cdebug_in << "GraphEditor::DataFlow::DataFlow(" << DataFlowName << ")" << endl;
60 _theNamingService = ptrNamingService ;
61 _DataFlowExecutor = NULL ;
65 cdebug_out << "GraphEditor::DataFlow::DataFlow" << endl;
68 GraphEditor::DataFlow::~DataFlow() {
69 // delete _DataFlowNode ;
70 // delete _DataFlowDatas ;
75 GraphExecutor::DataFlow * GraphEditor::DataFlow::Run() {
76 cdebug_in << "GraphEditor::DataFlow::Run" << endl;
77 SUPERV::SGraph * theDataFlow ;
78 GraphExecutor::DataFlow * aDataFlowExecutor ;
79 theDataFlow = GetDataFlow() ;
80 aDataFlowExecutor = new GraphExecutor::DataFlow( NamingService() ,
81 theDataFlow->Info.theName ) ;
82 if ( aDataFlowExecutor->LoadDataFlow( *theDataFlow ) ) {
83 aDataFlowExecutor->Run() ;
86 MESSAGE( "GraphEditor::DataFlow::Run error while loading DataFlowExecutor")
87 delete aDataFlowExecutor ;
89 cdebug_out << "GraphEditor::DataFlow::Run" << endl;
90 return aDataFlowExecutor ;