]> SALOME platform Git repositories - modules/yacs.git/blob - src/runtime/CORBACORBAConv.cxx
Salome HOME
PR: merge from BR_DATACONV_PR tag "mergeto_trunk_25oct06"
[modules/yacs.git] / src / runtime / CORBACORBAConv.cxx
1
2 #include "CORBACORBAConv.hxx"
3 #include "TypeConversions.hxx"
4
5 using namespace YACS::ENGINE;
6 using namespace std;
7
8 CorbaCorba::CorbaCorba(InputCorbaPort* p)
9   : ProxyPort(p), Port(p->getNode())
10 {
11 }
12
13 //!Convertit un Any convertible en CORBA::Any 
14 /*!
15  *   \param data : CORBA::Any object
16  */
17
18 void CorbaCorba::put(const void *data) throw(ConversionException)
19 {
20   put((CORBA::Any *)data);
21 }
22
23 void CorbaCorba::put(CORBA::Any *data) throw(ConversionException)
24 {
25   //conversion du Any data en any attendu (de type type())
26
27   CORBA::Any *a = convertCorbaCorba(type(),data);
28   _port->put(a);
29 }