1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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 // SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
23 // File : DataFlowBase_GOTONode.hxx
24 // Author : Jean Rahuel, CEA
27 #ifndef _DATAFLOWBASE_GOTONODE_HXX
28 #define _DATAFLOWBASE_GOTONODE_HXX
30 #include "DataFlowBase_InLineNode.hxx"
34 class GOTONode : public InLineNode {
38 InLineNode * _CoupledNode ;
39 char * _CoupledNodeName ;
44 GOTONode( CORBA::ORB_ptr ORB ,
45 SALOME_NamingService* ptrNamingService ,
46 const char *DataFlowName ,
47 const SUPERV::KindOfNode DataFlowkind ,
48 int * Graph_prof_debug ,
49 ofstream * Graph_fdebug ) ;
50 GOTONode( CORBA::ORB_ptr ORB ,
51 SALOME_NamingService* ptrNamingService ,
52 const char * FuncName ,
53 const SUPERV::ListOfStrings & PythonFunction ,
54 const char *NodeName ,
55 const SUPERV::KindOfNode akind ,
56 const SUPERV::SDate NodeFirstCreation ,
57 const SUPERV::SDate NodeLastModification ,
58 const char * NodeEditorRelease ,
59 const char * NodeAuthor ,
60 const char * NodeComment ,
61 const bool GeneratedName ,
64 int * Graph_prof_debug = NULL ,
65 ofstream * Graph_fdebug = NULL ) ;
68 void CoupledNode( InLineNode * aCoupledNode ) ;
69 const InLineNode * CoupledNode() const ;
70 InLineNode * CoupledNode() ;
71 void CoupledNodeName( const char * aCoupledNodeName ) ;
72 char * CoupledNodeName() const ;
74 // bool SaveXML(ostream &f , char *Tabs , int X , int Y ) const ;
75 bool SaveXML(QDomDocument & Graph , QDomElement & info , int X , int Y ) const ;
77 bool SavePY(ostream &f , const char * aGraphName , int X , int Y ) const ;