1 // SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
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.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : DataFlowBase_GOTONode.hxx
23 // Author : Jean Rahuel, CEA
26 #ifndef _DATAFLOWBASE_GOTONODE_HXX
27 #define _DATAFLOWBASE_GOTONODE_HXX
29 #include "DataFlowBase_InLineNode.hxx"
33 class GOTONode : public InLineNode {
37 InLineNode * _CoupledNode ;
38 char * _CoupledNodeName ;
43 GOTONode( CORBA::ORB_ptr ORB ,
44 SALOME_NamingService* ptrNamingService ,
45 const char *DataFlowName ,
46 const SUPERV::KindOfNode DataFlowkind ,
47 int * Graph_prof_debug ,
48 ofstream * Graph_fdebug ) ;
49 GOTONode( CORBA::ORB_ptr ORB ,
50 SALOME_NamingService* ptrNamingService ,
51 const char * FuncName ,
52 const SUPERV::ListOfStrings & PythonFunction ,
53 const char *NodeName ,
54 const SUPERV::KindOfNode akind ,
55 const SUPERV::SDate NodeFirstCreation ,
56 const SUPERV::SDate NodeLastModification ,
57 const char * NodeEditorRelease ,
58 const char * NodeAuthor ,
59 const char * NodeComment ,
60 const bool GeneratedName ,
63 int * Graph_prof_debug = NULL ,
64 ofstream * Graph_fdebug = NULL ) ;
67 void CoupledNode( InLineNode * aCoupledNode ) ;
68 const InLineNode * CoupledNode() const ;
69 InLineNode * CoupledNode() ;
70 void CoupledNodeName( const char * aCoupledNodeName ) ;
71 char * CoupledNodeName() const ;
73 // bool SaveXML(ostream &f , char *Tabs , int X , int Y ) const ;
74 bool SaveXML(QDomDocument & Graph , QDomElement & info , int X , int Y ) const ;
76 bool SavePY(ostream &f , const char * aGraphName , int X , int Y ) const ;