Salome HOME
Debug for ObjectReferences with omniORB4
[modules/superv.git] / src / GraphEditor / DataFlowEditor_DataFlow.cxx
1 //  SUPERV GraphEditor : contains classes that permit edition of graphs
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : DataFlowEditor_DataFlow.cxx
25 //  Module : SUPERV
26
27 using namespace std;
28 #include "DataFlowEditor_DataFlow.hxx"
29
30 // Implementation de la classe GraphEditor::Graph
31
32 GraphEditor::DataFlow::DataFlow() :
33   OutNode() {
34   cdebug_in << "GraphEditor::DataFlow::DataFlowEditor()" << endl;
35
36   _theNamingService = NULL ;
37   _DataFlowExecutor = NULL ;
38   _ReadOnly  = false ;
39   _Executing = false ;
40
41   cdebug_out << "GraphEditor::DataFlow::DataFlowEditor()" << endl;
42 }
43
44 //extern ostream * fdebug ;
45
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(" ;
54   if ( DataFlowName ) {
55 //    cout << DataFlowName << " , " << DebugFileName ;
56     cdebug << DataFlowName << " , " << DebugFileName;
57   }
58 //  cout << ")" << endl;
59   cdebug << ")" << endl;
60
61   _theNamingService = ptrNamingService ;
62   _DataFlowExecutor = NULL ;
63   _ReadOnly  = false ;
64   _Executing = false ;
65
66   cdebug_out << "GraphEditor::DataFlow::DataFlow" << endl;
67 //  fdebug = new ofstream( DebugFileName ); // GraphBase::Base::_fdebug ;
68 }
69
70 GraphEditor::DataFlow::DataFlow(
71                      CORBA::ORB_ptr ORB,
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;
91
92   _theNamingService = ptrNamingService ;
93   _DataFlowExecutor = NULL ;
94   _ReadOnly  = false ;
95   _Executing = false ;
96
97   cdebug_out << "GraphEditor::DataFlow::DataFlow" << endl;
98 } ;
99
100 GraphEditor::DataFlow::~DataFlow() {
101 //  delete _DataFlowNode ;
102 //  delete _DataFlowDatas ;
103 //  delete _GT ;
104 }
105
106