Salome HOME
9e761fcaf5a37a84397a38a56362cbb66b6fb40f
[modules/superv.git] / src / Supervision / StreamPort_Impl.hxx
1 //  SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
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. 
10 // 
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. 
15 // 
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 
19 // 
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 //
23 //
24 //  File   : StreamPort_Impl.hxx
25 //  Author : Jean Rahuel
26 //  Module : SUPERV
27 //  $Header: 
28
29 #ifndef _STREAMPORT_IMPL_HXX_
30 #define _STREAMPORT_IMPL_HXX_
31
32 #include "Port_Impl.hxx"
33
34 #include "StreamLink_Impl.hxx"
35
36 class StreamPort_Impl : public Port_Impl ,
37                         public POA_SUPERV::StreamPort {
38   private:
39
40     CORBA::ORB_ptr             _Orb ;
41     PortableServer::POA_ptr    _Poa ;
42     PortableServer::ObjectId * _ContId ;
43
44   public:
45     StreamPort_Impl();
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 ,
54                      bool InputPort ,
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 ,
64                      bool InputPort ) ;
65     virtual ~StreamPort_Impl() ;
66     virtual void destroy() ;
67
68     virtual SUPERV::StreamLink_ptr StreamLink()  ;
69
70     virtual SALOME_ModuleCatalog::DataStreamDependency Dependency() ;
71     virtual bool SetDependency( const SALOME_ModuleCatalog::DataStreamDependency aDependency ) ;
72
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 ) ;
79
80     virtual bool SetNumberOfValues( CORBA::Long aNumberOfValues ) ;
81     virtual CORBA::Long NumberOfValues() ;
82
83 } ;
84
85 #endif