]> SALOME platform Git repositories - modules/superv.git/blob - src/Supervision/Value_Impl.hxx
Salome HOME
Update copyright information
[modules/superv.git] / src / Supervision / Value_Impl.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  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 //  SUPERV Supervision : contains the implementation of interfaces of SuperVision described in SUPERV.idl
23 //  File   : Value_Impl.hxx
24 //  Author : Jean Rahuel
25 //  Module : SUPERV
26 //  $Header: 
27 //
28 #ifndef _VALUE_IMPL_HXX_
29 #define _VALUE_IMPL_HXX_
30
31 //#include <iostream.h>
32
33 #include "CORBA.h"
34
35 #include <SALOMEconfig.h>
36 #include "SALOME_Component_i.hxx"
37 #include "SALOME_LifeCycleCORBA.hxx"
38
39 #include "DataFlowBase_Base.hxx"
40 #include "DataFlowEditor_DataFlow.hxx"
41
42 class Value_Impl : public POA_SUPERV::Value ,
43                    public Engines_Component_i  {
44   private:
45
46     CORBA::ORB_ptr             _Orb ;
47     PortableServer::POA_ptr    _Poa ;
48     PortableServer::ObjectId * _ContId ;
49
50     GraphEditor::DataFlow * _DataFlowEditor ;
51     GraphEditor::InNode *   _DataFlowNode ;
52     char *                  _NodeName ;
53     char *                  _ParameterName ;
54     bool                    _InputPort ;
55     bool                    _InputValue ;
56     CORBA::Any *            _Any ;
57
58   public:
59     Value_Impl();
60     Value_Impl( CORBA::ORB_ptr orb ,
61                 PortableServer::POA_ptr poa ,
62                 PortableServer::ObjectId * contId , 
63                 const char *instanceName ,
64                 const char *interfaceName ,
65                 GraphEditor::DataFlow * DataFlowEditor ,
66                 GraphEditor::InNode * DataFlowNode ,
67                 const char *ParameterName ,
68                 const CORBA::Any * anAny ,
69                 const bool activate ) ;
70     Value_Impl( CORBA::ORB_ptr orb ,
71                 PortableServer::POA_ptr poa ,
72                 PortableServer::ObjectId * contId , 
73                 const char *instanceName ,
74                 const char *interfaceName ,
75                 GraphEditor::DataFlow * DataFlowEditor ,
76                 GraphEditor::InNode * DataFlowNode ,
77                 const char *ParameterName ,
78                 const bool activate ) ;
79
80     virtual ~Value_Impl() ;
81     virtual void destroy() ;
82
83     virtual void InPort( bool anInput ) ;
84
85     virtual bool Input( const CORBA::Any * anAny ) ;
86
87     virtual CORBA::Any * ToAny() ;
88     virtual char * ToString() ;
89     virtual bool IsIOR() ;
90     virtual char* ComponentDataType() ;
91
92 } ;
93
94 #endif