src/GraphBase/DataFlowBase_EndOfSwitchNode.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_EndOfSwitchNode.hxx
00023 //  Author : Jean Rahuel, CEA
00024 //  Module : SUPERV
00025 
00026 #ifndef _DATAFLOWBASE_ENDOFSWITCHNODE_HXX
00027 #define _DATAFLOWBASE_ENDOFSWITCHNODE_HXX
00028 
00029 #include "DataFlowBase_GOTONode.hxx"
00030 
00031 namespace GraphBase {
00032 
00033   class EndOfSwitchNode : public GOTONode {
00034 
00035     private:
00036 
00037       int  _EndSwitchInPortLinkedNumber ; // For Check from Branches to EndOfSwitch links
00038       bool _SwitchWithGOTO ;
00039     
00040     public:
00041 
00042       EndOfSwitchNode() ;
00043       EndOfSwitchNode( CORBA::ORB_ptr ORB ,
00044                   SALOME_NamingService* ptrNamingService ,
00045                   const char * FuncName ,
00046                   const SUPERV::ListOfStrings & aPythonFunction ,
00047                   const char *NodeName ,
00048                   const SUPERV::KindOfNode akind ,
00049                   const SUPERV::SDate NodeFirstCreation ,
00050                   const SUPERV::SDate NodeLastModification ,
00051                   const char * NodeEditorRelease ,
00052                   const char * NodeAuthor ,
00053                   const char * NodeComment ,
00054                   const bool   GeneratedName ,
00055                   const long   X ,
00056                   const long   Y ,
00057                   int * Graph_prof_debug = NULL ,
00058                   ofstream * Graph_fdebug = NULL ) ;
00059       virtual ~EndOfSwitchNode() ;
00060 
00061       void InitEndSwitchInPortLinked() ;
00062       bool DecrEndSwitchInPortLinked( GraphBase::InPort * anInPort ,
00063                                       string & anErrorMessage ) ;
00064       void SetSwitchWithGOTO() {
00065            _SwitchWithGOTO = true ; } ;
00066       bool SwitchWithGOTO() {
00067            return _SwitchWithGOTO ; } ;
00068       bool CheckEndSwitchInPortsLinked( string & anErrorMessage ) ;
00069 
00070   };
00071   
00072 };
00073 
00074 #endif