]> SALOME platform Git repositories - modules/superv.git/blob - src/GraphBase/DataFlowBase_GOTONode.hxx
Salome HOME
NRI : Merge from V1_2.
[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  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : DataFlowBase_GOTONode.hxx
8 //  Author : Jean Rahuel, CEA
9 //  Module : SUPERV
10 //  $Header:
11
12 #ifndef _DATAFLOWBASE_GOTONODE_HXX
13 #define _DATAFLOWBASE_GOTONODE_HXX
14
15 #include "DataFlowBase_InLineNode.hxx"
16
17 namespace GraphBase {
18
19   class GOTONode : public InLineNode {
20
21     private:
22     
23       InLineNode            * _CoupledNode ;
24
25     public:
26
27       GOTONode() ;
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 ,
40                   const long   X ,
41                   const long   Y ,
42                   int * Graph_prof_debug = NULL ,
43                   ostream * Graph_fdebug = NULL ) ;
44       virtual ~GOTONode() ;
45
46       void CoupledNode( InLineNode * aCoupledNode ) {
47 //           cdebug << Name() << ".GraphBase::GOTONode::CoupledNode( " ;
48 //           if ( aCoupledNode ) {
49 //             cdebug << aCoupledNode->Name() ;
50 //         }
51 //           else {
52 //             cdebug << "NULL" ;
53 //         }
54 //           cdebug << " )" << endl ;
55            _CoupledNode = aCoupledNode ; } ;
56       const InLineNode * CoupledNode() const {
57 //            cdebug << Name() << ".GraphBase::GOTONode::CoupledNode() --> " ;
58 //            if ( _CoupledNode ) {
59 //              cdebug << _CoupledNode->Name() ;
60 //          }
61 //            else {
62 //              cdebug << "NULL" ;
63 //          }
64 //            cdebug << endl ;
65             return _CoupledNode ; } ;
66       InLineNode * CoupledNode() {
67 //                   cdebug << Name() << ".GraphBase::GOTONode::CoupledNode() --> " ;
68 //                   if ( _CoupledNode ) {
69 //                     cdebug << _CoupledNode->Name() ;
70 //                 }
71 //                   else {
72 //                     cdebug << "NULL" ;
73 //                 }
74 //                   cdebug << endl ;
75                    return _CoupledNode ; } ;
76
77 //      bool SaveXML(ostream &f , char *Tabs , int X , int Y ) const ;
78       bool SaveXML(QDomDocument & Graph , QDomElement & info , int X , int Y ) const ;
79
80       bool SavePY(ostream &f , const char * aGraphName , int X , int Y ) const ;
81
82   };
83   
84 };
85
86 #endif