1 // SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : FNode_Impl.hxx
23 // Author : Jean Rahuel
26 #ifndef _FNODE_IMPL_HXX_
27 #define _FNODE_IMPL_HXX_
29 //#include <iostream.h>
33 #include <SALOMEconfig.h>
34 #include "SALOME_Component_i.hxx"
35 #include "SALOME_LifeCycleCORBA.hxx"
37 #include "CNode_Impl.hxx"
39 #include "Port_Impl.hxx"
41 #include "DataFlowEditor_DataFlow.hxx"
42 #include "DataFlowExecutor_DataFlow.hxx"
44 class FNode_Impl : public CNode_Impl ,
45 public POA_SUPERV::FNode {
49 PortableServer::POA_ptr _Poa ;
50 PortableServer::ObjectId * _ContId ;
55 FNode_Impl( CORBA::ORB_ptr orb ,
56 PortableServer::POA_ptr poa ,
57 PortableServer::ObjectId * contId ,
58 const char * instanceName ,
59 const char * interfaceName ,
60 const char * aDataFlowName ) ;
61 FNode_Impl( CORBA::ORB_ptr orb ,
62 PortableServer::POA_ptr poa ,
63 PortableServer::ObjectId * contId ,
64 const char * instanceName ,
65 const char * interfaceName ,
66 GraphEditor::DataFlow * DataFlowEditor ,
67 const SALOME_ModuleCatalog::Service &NodeService ,
68 const char * NodeComponentName ,
69 const char * NodeInterfaceName ,
70 const char * NodeName = NULLSTRING ,
71 const SUPERV::KindOfNode NodeKindOfNode = SUPERV::FactoryNode ,
72 bool isCimpl = true ) ; // mkr : PAL11273 : C++ implementation by default
73 FNode_Impl( CORBA::ORB_ptr orb ,
74 PortableServer::POA_ptr poa ,
75 PortableServer::ObjectId * contId ,
76 const char * instanceName ,
77 const char * interfaceName ,
78 GraphEditor::DataFlow * DataFlowEditor ,
79 GraphEditor::InNode * DataFlowNode ) ;
80 virtual ~FNode_Impl() ;
81 virtual void destroy() ;
82 virtual bool Delete() ;
84 virtual char * GetComponentName() ;
85 virtual bool SetComponentName(const char *) ;
86 virtual char * GetInterfaceName() ;
87 virtual bool SetInterfaceName(const char *) ;
88 virtual char * GetContainer() ;
89 virtual bool SetContainer( const char * aDataFlowContainer ) ;
91 virtual GraphBase::FactoryNode * BaseNode() {
92 return DataFlowNode()->FactoryNode() ; } ;
94 virtual bool IsCimpl() { return _isCimpl; } ; // mkr : PAL11273