1 // SUPERV GraphEditor : contains classes that permit edition of graphs
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : DataFlowEditor_DataFlow.cxx
28 #include "DataFlowEditor_DataFlow.hxx"
30 // Implementation de la classe GraphEditor::Graph
32 GraphEditor::DataFlow::DataFlow() :
34 cdebug_in << "GraphEditor::DataFlow::DataFlowEditor()" << endl;
36 _theNamingService = NULL ;
37 _DataFlowExecutor = NULL ;
41 cdebug_out << "GraphEditor::DataFlow::DataFlowEditor()" << endl;
44 //extern ostream * fdebug ;
46 GraphEditor::DataFlow::DataFlow( CORBA::ORB_ptr ORB,
47 SALOME_NamingService* ptrNamingService ,
48 const char *DataFlowName ,
49 const char * DebugFileName ,
50 const SUPERV::KindOfNode aKindOfNode ) :
51 OutNode( ORB, ptrNamingService , DataFlowName , DebugFileName , aKindOfNode ) {
52 // cout << "GraphEditor::DataFlow::DataFlow(" ;
53 cdebug_in << "GraphEditor::DataFlow::DataFlow(" ;
55 // cout << DataFlowName << " , " << DebugFileName ;
56 cdebug << DataFlowName << " , " << DebugFileName;
58 // cout << ")" << endl;
59 cdebug << ")" << endl;
61 _theNamingService = ptrNamingService ;
62 _DataFlowExecutor = NULL ;
66 cdebug_out << "GraphEditor::DataFlow::DataFlow" << endl;
67 // fdebug = new ofstream( DebugFileName ); // GraphBase::Base::_fdebug ;
70 GraphEditor::DataFlow::DataFlow(
72 SALOME_NamingService* ptrNamingService ,
73 const SALOME_ModuleCatalog::Service& DataFlowService ,
74 const char *DataFlowComponentName ,
75 const char *DataFlowInterfaceName ,
76 const char *DataFlowName ,
77 const SUPERV::KindOfNode DataFlowkind ,
78 const SUPERV::SDate DataFlowFirstCreation ,
79 const SUPERV::SDate DataFlowLastModification ,
80 const char * DataFlowEditorRelease ,
81 const char * DataFlowAuthor ,
82 const char * DataFlowComputer ,
83 const char * DataFlowComment ,
84 const char * DebugFileName ) :
85 OutNode( ORB, ptrNamingService , DataFlowService , DataFlowComponentName ,
86 DataFlowInterfaceName , DataFlowName , DataFlowkind ,
87 DataFlowFirstCreation , DataFlowLastModification ,
88 DataFlowEditorRelease , DataFlowAuthor ,
89 DataFlowComputer , DataFlowComment , DebugFileName ) {
90 cdebug_in << "GraphEditor::DataFlow::DataFlow(" << DataFlowName << ")" << endl;
92 _theNamingService = ptrNamingService ;
93 _DataFlowExecutor = NULL ;
97 cdebug_out << "GraphEditor::DataFlow::DataFlow" << endl;
100 GraphEditor::DataFlow::~DataFlow() {
101 // delete _DataFlowNode ;
102 // delete _DataFlowDatas ;