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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : StreamPort_Impl.hxx
25 // Author : Jean Rahuel
29 #ifndef _STREAMPORT_IMPL_HXX_
30 #define _STREAMPORT_IMPL_HXX_
32 #include "Port_Impl.hxx"
34 #include "StreamLink_Impl.hxx"
36 class StreamPort_Impl : public Port_Impl ,
37 public POA_SUPERV::StreamPort {
41 PortableServer::POA_ptr _Poa ;
42 PortableServer::ObjectId * _ContId ;
46 StreamPort_Impl( CORBA::ORB_ptr orb ,
47 PortableServer::POA_ptr poa ,
48 PortableServer::ObjectId * contId ,
49 const char *instanceName ,
50 const char *interfaceName ,
51 GraphEditor::DataFlow * DataFlowEditor ,
52 GraphEditor::InNode * DataStreamNode ,
53 GraphBase::Port * DataStreamPort ,
55 const CORBA::Any * anAny ) ;
56 StreamPort_Impl( CORBA::ORB_ptr orb ,
57 PortableServer::POA_ptr poa ,
58 PortableServer::ObjectId * contId ,
59 const char *instanceName ,
60 const char *interfaceName ,
61 GraphEditor::DataFlow * DataFlowEditor ,
62 GraphEditor::InNode * DataFlowNode ,
63 GraphBase::Port * DataStreamPort ,
65 virtual ~StreamPort_Impl() ;
66 virtual void destroy() ;
68 virtual SUPERV::StreamLink_ptr StreamLink() ;
70 virtual SALOME_ModuleCatalog::DataStreamDependency Dependency() ;
71 virtual bool SetDependency( const SALOME_ModuleCatalog::DataStreamDependency aDependency ) ;
73 virtual bool SetParams( const SUPERV::KindOfSchema aKindOfSchema ,
74 const SUPERV::KindOfInterpolation aKindOfInterpolation ,
75 const SUPERV::KindOfExtrapolation aKindOfExtrapolation ) ;
76 virtual bool Params( SUPERV::KindOfSchema & aKindOfSchema ,
77 SUPERV::KindOfInterpolation & aKindOfInterpolation ,
78 SUPERV::KindOfExtrapolation & aKindOfExtrapolation ) ;
80 virtual bool SetNumberOfValues( const long aNumberOfValues ) ;
81 virtual long NumberOfValues() ;