2 #include "TypeConversions.hxx"
3 #include "CORBACppConv.hxx"
8 #include "YacsTrace.hxx"
16 Any * convertCorbaCpp(const TypeCode *t, CORBA::Any *A)
18 return convertCorbaNeutral(t, A);
21 CorbaCpp::CorbaCpp(InputPort* p)
22 : ProxyPort(p), DataPort(p->getName(), p->getNode(), p->edGetType()), Port(p->getNode())
26 //!Convert a CORBA::Any that is convertible to a YACS::ENGINE::Any * and send it to proxy port
28 * \param data : CORBA::Any object as a void * pointer
31 void CorbaCpp::put(const void *data) throw(ConversionException)
33 put((CORBA::Any *)data);
36 //!Convert a CORBA::Any that is convertible to a YACS::ENGINE::Any * and send it to proxy port
38 * \param data : CORBA::Any object
40 void CorbaCpp::put(CORBA::Any *data) throw(ConversionException)
42 DEBTRACE("CorbaCpp::put");
43 YACS::ENGINE::Any *ob;
44 ob= convertCorbaCpp(edGetType(),data);
45 DEBTRACE("refcnt: " << ob->getRefCnt());
46 DEBTRACE(_port->getName());
48 // ob has been created in convertCorbaNeutral. _port has normally called incrRef
50 DEBTRACE("after put refcnt: " << ob->getRefCnt())
53 int isAdaptableCppCorba(const TypeCode *t1,const TypeCode *t2)
55 return isAdaptableNeutralCorba(t1, t2);