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