Salome HOME
*** empty log message ***
[modules/superv.git] / src / Supervision / Value_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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : Value_Impl.hxx
25 //  Author : Jean Rahuel
26 //  Module : SUPERV
27 //  $Header: 
28
29 #ifndef _VALUE_IMPL_HXX_
30 #define _VALUE_IMPL_HXX_
31
32 //#include <iostream.h>
33
34 #include "CORBA.h"
35
36 #include <SALOMEconfig.h>
37 #include "SALOME_Component_i.hxx"
38 #include "SALOME_LifeCycleCORBA.hxx"
39
40 #include "DataFlowBase_Base.hxx"
41 #include "DataFlowEditor_DataFlow.hxx"
42
43 class Value_Impl : public POA_SUPERV::Value ,
44                    public Engines_Component_i  {
45   private:
46
47     CORBA::ORB_ptr             _Orb ;
48     PortableServer::POA_ptr    _Poa ;
49     PortableServer::ObjectId * _ContId ;
50
51     GraphEditor::DataFlow * _DataFlowEditor ;
52     GraphEditor::InNode *   _DataFlowNode ;
53     char *                  _NodeName ;
54     char *                  _ParameterName ;
55     bool                    _InputPort ;
56     bool                    _InputValue ;
57     CORBA::Any *            _Any ;
58
59   public:
60     Value_Impl();
61     Value_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                 GraphEditor::InNode * DataFlowNode ,
68                 const char *ParameterName ,
69                 const CORBA::Any * anAny ,
70                 const bool activate ) ;
71     Value_Impl( CORBA::ORB_ptr orb ,
72                 PortableServer::POA_ptr poa ,
73                 PortableServer::ObjectId * contId , 
74                 const char *instanceName ,
75                 const char *interfaceName ,
76                 GraphEditor::DataFlow * DataFlowEditor ,
77                 GraphEditor::InNode * DataFlowNode ,
78                 const char *ParameterName ,
79                 const bool activate ) ;
80
81     virtual ~Value_Impl() ;
82     virtual void destroy() ;
83
84     virtual void InPort( bool anInput ) ;
85
86     virtual bool Input( const CORBA::Any * anAny ) ;
87
88     virtual CORBA::Any * ToAny() ;
89     virtual char * ToString() ;
90     virtual bool IsIOR() ;
91     virtual char* ComponentDataType() ;
92
93 } ;
94
95 #endif