1 // SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : DataFlowBase_SwitchNode.cxx
8 // Author : Jean Rahuel, CEA
16 #include "DataFlowBase_SwitchNode.hxx"
18 GraphBase::SwitchNode::SwitchNode() :
19 GraphBase::GOTONode::GOTONode() {
21 cdebug << "GraphBase::SwitchNode::SwitchNode " << this
22 << " _Name " << (void *) Name() << " " << Name() << " _Comment "
23 << (void *) Comment() << " " << Comment() << " " << endl ;
27 GraphBase::SwitchNode::SwitchNode( CORBA::ORB_ptr ORB ,
28 SALOME_NamingService* ptrNamingService ,
29 const char * FuncName ,
30 const SUPERV::ListOfStrings & aPythonFunction ,
31 const char *NodeName ,
32 const SUPERV::KindOfNode akind ,
33 const SUPERV::SDate NodeFirstCreation ,
34 const SUPERV::SDate NodeLastModification ,
35 const char * NodeEditorRelease ,
36 const char * NodeAuthor ,
37 const char * NodeComment ,
38 const bool GeneratedName ,
41 int * Graph_prof_debug ,
42 ostream * Graph_fdebug ) :
43 GraphBase::GOTONode::GOTONode( ORB , ptrNamingService , FuncName , aPythonFunction ,
44 NodeName , akind , NodeFirstCreation ,
45 NodeLastModification , NodeEditorRelease ,
46 NodeAuthor , NodeComment , GeneratedName ,
47 X , Y , Graph_prof_debug , Graph_fdebug ) {
49 cdebug_in << "GraphBase::SwitchNode::SwitchNode " << this
50 << "' _Name " << (void *) Name() << " '" << Name() << " _Comment "
51 << (void *) Comment() << " " << Comment() << " "
52 << " KindOfNode " << Kind() << " FuncName " << FuncName
53 << " ServiceName " << ServiceName() << " In("
54 << ServiceInParameter().length()
55 << ") Out(" << ServiceOutParameter().length() << ")" << endl ;
57 cdebug_out << "GraphBase::SwitchNode::SwitchNode" << endl;
60 GraphBase::SwitchNode::~SwitchNode() {
61 cdebug << "GraphBase::SwitchNode::~SwitchNode " << this
62 << " _Name " << (void *) Name() << " " << Name() << " _Comment "
63 << (void *) Comment() << " " << Comment() << " " << endl ;
64 // if ( _ComponentName != NULLSTRING )
65 // delete [] _ComponentName ;
67 // delete [] _EditorRelease ;
68 // if ( _Author != NULLSTRING )
69 // delete [] _Author ;
70 // if ( _Computer != FACTORYSERVER )
71 // delete [] _Computer;
72 // if ( _Comment != NULLSTRING )
73 // delete [] _Comment;