src/GraphBase/DataFlowBase_GOTONode.hxx

Go to the documentation of this file.
00001 //  SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
00002 //
00003 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
00005 // 
00006 //  This library is free software; you can redistribute it and/or 
00007 //  modify it under the terms of the GNU Lesser General Public 
00008 //  License as published by the Free Software Foundation; either 
00009 //  version 2.1 of the License. 
00010 // 
00011 //  This library is distributed in the hope that it will be useful, 
00012 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00013 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00014 //  Lesser General Public License for more details. 
00015 // 
00016 //  You should have received a copy of the GNU Lesser General Public 
00017 //  License along with this library; if not, write to the Free Software 
00018 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00019 // 
00020 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 //  File   : DataFlowBase_GOTONode.hxx
00023 //  Author : Jean Rahuel, CEA
00024 //  Module : SUPERV
00025 
00026 #ifndef _DATAFLOWBASE_GOTONODE_HXX
00027 #define _DATAFLOWBASE_GOTONODE_HXX
00028 
00029 #include "DataFlowBase_InLineNode.hxx"
00030 
00031 namespace GraphBase {
00032 
00033   class GOTONode : public InLineNode {
00034 
00035     private:
00036     
00037       InLineNode * _CoupledNode ;
00038       char       * _CoupledNodeName ;
00039 
00040     public:
00041 
00042       GOTONode() ;
00043       GOTONode( CORBA::ORB_ptr ORB ,
00044                 SALOME_NamingService* ptrNamingService ,
00045                 const char *DataFlowName ,
00046                 const SUPERV::KindOfNode DataFlowkind ,
00047                 int * Graph_prof_debug ,
00048                 ofstream * Graph_fdebug ) ;
00049       GOTONode( CORBA::ORB_ptr ORB ,
00050                 SALOME_NamingService* ptrNamingService ,
00051                 const char * FuncName ,
00052                 const SUPERV::ListOfStrings & PythonFunction ,
00053                 const char *NodeName ,
00054                 const SUPERV::KindOfNode akind ,
00055                 const SUPERV::SDate NodeFirstCreation ,
00056                 const SUPERV::SDate NodeLastModification ,
00057                 const char * NodeEditorRelease ,
00058                 const char * NodeAuthor ,
00059                 const char * NodeComment ,
00060                 const bool   GeneratedName ,
00061                 const long   X ,
00062                 const long   Y ,
00063                 int * Graph_prof_debug = NULL ,
00064                 ofstream * Graph_fdebug = NULL ) ;
00065       virtual ~GOTONode() ;
00066 
00067       void CoupledNode( InLineNode * aCoupledNode ) ;
00068       const InLineNode * CoupledNode() const ;
00069       InLineNode * CoupledNode() ;
00070       void CoupledNodeName( const char * aCoupledNodeName ) ;
00071       char * CoupledNodeName() const ;
00072 
00073 //      bool SaveXML(ostream &f , char *Tabs , int X , int Y ) const ;
00074       bool SaveXML(QDomDocument & Graph , QDomElement & info , int X , int Y ) const ;
00075 
00076       bool SavePY(ostream &f , const char * aGraphName , int X , int Y ) const ;
00077 
00078   };
00079   
00080 };
00081 
00082 #endif