Salome HOME
3489d46f6b2e6b01a4ea6466c602f117dc257060
[modules/superv.git] / src / GraphBase / DataFlowBase_GOTONode.hxx
1 //  SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //  File   : DataFlowBase_GOTONode.hxx
23 //  Author : Jean Rahuel, CEA
24 //  Module : SUPERV
25
26 #ifndef _DATAFLOWBASE_GOTONODE_HXX
27 #define _DATAFLOWBASE_GOTONODE_HXX
28
29 #include "DataFlowBase_InLineNode.hxx"
30
31 namespace GraphBase {
32
33   class GOTONode : public InLineNode {
34
35     private:
36     
37       InLineNode * _CoupledNode ;
38       char       * _CoupledNodeName ;
39
40     public:
41
42       GOTONode() ;
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 ,
61                 const long   X ,
62                 const long   Y ,
63                 int * Graph_prof_debug = NULL ,
64                 ofstream * Graph_fdebug = NULL ) ;
65       virtual ~GOTONode() ;
66
67       void CoupledNode( InLineNode * aCoupledNode ) ;
68       const InLineNode * CoupledNode() const ;
69       InLineNode * CoupledNode() ;
70       void CoupledNodeName( const char * aCoupledNodeName ) ;
71       char * CoupledNodeName() const ;
72
73 //      bool SaveXML(ostream &f , char *Tabs , int X , int Y ) const ;
74       bool SaveXML(QDomDocument & Graph , QDomElement & info , int X , int Y ) const ;
75
76       bool SavePY(ostream &f , const char * aGraphName , int X , int Y ) const ;
77
78   };
79   
80 };
81
82 #endif