2 #include "TypeConversions.hxx"
3 #include "CppNeutralConv.hxx"
10 #include "YacsTrace.hxx"
18 Any* convertCppNeutral(const TypeCode *t, Any *a)
20 return convertNeutralNeutral(t, a);
23 CppNeutral::CppNeutral(InputPort* p)
24 : ProxyPort(p), DataPort(p->getName(), p->getNode(), p->edGetType()), Port(p->getNode())
28 void CppNeutral::put(const void *data) throw(ConversionException)
30 DEBTRACE(" CppNeutral::put(const void *data)");
34 //! Send received C++/Neutral (Any *) value to proxy port
36 * \param data : Neutral (Any *) value
39 void CppNeutral::put(Any *data) throw(ConversionException)
41 DEBTRACE("CppNeutral::put " << data);
43 ob=convertCppNeutral(edGetType(), data);
44 DEBTRACE("before put refcnt: " << ob->getRefCnt());
46 DEBTRACE( "after put refcnt: " << ob->getRefCnt() );
47 //_port has called incRef
51 int isAdaptableNeutralCpp(const TypeCode *t1, const TypeCode *t2)
53 return isAdaptableNeutralNeutral(t1, t2);