2 #include "TypeConversions.hxx"
3 #include "CORBANeutralConv.hxx"
8 #include "YacsTrace.hxx"
10 using namespace YACS::ENGINE;
13 CorbaNeutral::CorbaNeutral(InputPort* p)
14 : ProxyPort(p), DataPort(p->getName(), p->getNode(), p->edGetType()), Port(p->getNode())
18 //!Convert a CORBA::Any that is convertible to a YACS::ENGINE::Any * and send it to proxy port
20 * \param data : CORBA::Any object as a void * pointer
23 void CorbaNeutral::put(const void *data) throw(ConversionException)
25 put((CORBA::Any *)data);
28 //!Convert a CORBA::Any that is convertible to a YACS::ENGINE::Any * and send it to proxy port
30 * \param data : CORBA::Any object
32 void CorbaNeutral::put(CORBA::Any *data) throw(ConversionException)
34 DEBTRACE( "CorbaNeutral::put" )
35 YACS::ENGINE::Any *ob;
36 ob=convertCorbaNeutral(edGetType(),data);
37 DEBTRACE("before put refcnt: " << ob->getRefCnt())
38 DEBTRACE( _port->getName() )
40 // ob has been created in convertCorbaNeutral. _port has normally called incRef
42 DEBTRACE("after put refcnt: " << ob->getRefCnt())