Version: 9.16.0
NeutralCORBAConv.cxx
Go to the documentation of this file.
1// Copyright (C) 2006-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#include "TypeConversions.hxx"
21#include "RuntimeSALOME.hxx"
22#include "NeutralCORBAConv.hxx"
23
24#include <iostream>
25
26using namespace YACS::ENGINE;
27using namespace std;
28
29
30void NeutralCorbaInt::put(const void *data)
31{
32 put((YACS::ENGINE::Any *)data);
33}
34
36
41{
42 CORBA::Any *a =convertNeutralCorba(edGetType(),data);
43 _port->put(a);
44 //delete Any that has been allocated by convertNeutralCorba
45 delete a;
46}
47
48void NeutralCorbaBool::put(const void *data)
49{
50 put((YACS::ENGINE::Any *)data);
51}
52
54
59{
60 CORBA::Any *a =convertNeutralCorba(edGetType(),data);
61 _port->put(a);
62 //delete Any that has been allocated by convertNeutralCorba
63 delete a;
64}
65
66
67void NeutralCorbaDouble::put(const void *data)
68{
69 put((YACS::ENGINE::Any *)data);
70}
71
73
78{
79 CORBA::Any *a =convertNeutralCorba(edGetType(),data);
80 _port->put(a);
81 //delete Any that has been allocated by convertNeutralCorba
82 delete a;
83}
84
85void NeutralCorbaSequence::put(const void *data)
86{
87 put((YACS::ENGINE::Any *)data);
88}
89
91
95{
96 CORBA::Any *a =convertNeutralCorba(edGetType(),data);
97 _port->put(a);
98 //delete Any that has been allocated by convertNeutralCorba
99 delete a;
100}
101
102NeutralCorbaString::NeutralCorbaString(InputCorbaPort* p):ProxyPort(p), DataPort(p->getName(), p->getNode(), p->edGetType()), Port(p->getNode())
103{
104}
105
106void NeutralCorbaString::put(const void *data)
107{
108 put((YACS::ENGINE::Any *)data);
109}
110
112
116{
117 CORBA::Any *a =convertNeutralCorba(edGetType(),data);
118 _port->put(a);
119 //delete Any that has been allocated by convertNeutralCorba
120 delete a;
121}
122
123NeutralCorbaObjref::NeutralCorbaObjref(InputCorbaPort* p):ProxyPort(p), DataPort(p->getName(), p->getNode(), p->edGetType()), Port(p->getNode())
124{
125}
126
127void NeutralCorbaObjref::put(const void *data)
128{
129 put((YACS::ENGINE::Any *)data);
130}
131
133
137{
138 CORBA::Any *a =convertNeutralCorba(edGetType(),data);
139 _port->put(a);
140 //delete Any that has been allocated by convertNeutralCorba
141 delete a;
142}
143
144
146 : ProxyPort(p), DataPort(p->getName(), p->getNode(), p->edGetType()), Port(p->getNode())
147{
148}
149
150void NeutralCorbaStruct::put(const void *data)
151{
152 put((YACS::ENGINE::Any *)data);
153}
154
156
160{
161 CORBA::Any *a =convertNeutralCorba(edGetType(),data);
162 _port->put(a);
163 //delete Any that has been allocated by convertNeutralCorba
164 delete a;
165}
: Interface for management of storage of data formated dynamically in its TypeCode....
Definition: Any.hxx:79
TypeCode * edGetType() const
Definition: DataPort.hxx:53
Class for CORBA Input Ports.
Definition: CORBAPorts.hxx:45
virtual void put(const void *data)=0
virtual void put(const void *data)
virtual void put(const void *data)
virtual void put(const void *data)
virtual void put(const void *data)
virtual void put(const void *data)
virtual void put(const void *data)
virtual void put(const void *data)
Base class for all ports.
Definition: Port.hxx:43
Base class for Proxy Input Ports.
Definition: InputPort.hxx:100
Proc * p
Definition: driver.cxx:216
CORBA::Any * convertNeutralCorba(const TypeCode *t, YACS::ENGINE::Any *data)