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_GOTONode.hxx
8 // Author : Jean Rahuel, CEA
12 #ifndef _DATAFLOWBASE_GOTONODE_HXX
13 #define _DATAFLOWBASE_GOTONODE_HXX
15 #include "DataFlowBase_InLineNode.hxx"
19 class GOTONode : public InLineNode {
23 InLineNode * _CoupledNode ;
28 GOTONode( CORBA::ORB_ptr ORB ,
29 SALOME_NamingService* ptrNamingService ,
30 const char * FuncName ,
31 const SUPERV::ListOfStrings & PythonFunction ,
32 const char *NodeName ,
33 const SUPERV::KindOfNode akind ,
34 const SUPERV::SDate NodeFirstCreation ,
35 const SUPERV::SDate NodeLastModification ,
36 const char * NodeEditorRelease ,
37 const char * NodeAuthor ,
38 const char * NodeComment ,
39 const bool GeneratedName ,
42 int * Graph_prof_debug = NULL ,
43 ostream * Graph_fdebug = NULL ) ;
46 void CoupledNode( InLineNode * aCoupledNode ) {
47 // cdebug << Name() << ".GraphBase::GOTONode::CoupledNode( " ;
48 // if ( aCoupledNode ) {
49 // cdebug << aCoupledNode->Name() ;
54 // cdebug << " )" << endl ;
55 _CoupledNode = aCoupledNode ; } ;
56 const InLineNode * CoupledNode() const {
57 // cdebug << Name() << ".GraphBase::GOTONode::CoupledNode() --> " ;
58 // if ( _CoupledNode ) {
59 // cdebug << _CoupledNode->Name() ;
65 return _CoupledNode ; } ;
66 InLineNode * CoupledNode() {
67 // cdebug << Name() << ".GraphBase::GOTONode::CoupledNode() --> " ;
68 // if ( _CoupledNode ) {
69 // cdebug << _CoupledNode->Name() ;
75 return _CoupledNode ; } ;
77 // bool SaveXML(ostream &f , char *Tabs , int X , int Y ) const ;
78 bool SaveXML(QDomDocument & Graph , QDomElement & info , int X , int Y ) const ;
80 bool SavePY(ostream &f , const char * aGraphName , int X , int Y ) const ;