1 #include "TypeConversions.hxx"
2 #include "PythonXMLConv.hxx"
8 #include "YacsTrace.hxx"
10 using namespace YACS::ENGINE;
13 PyXml::PyXml(InputXmlPort* p)
14 : ProxyPort(p), DataPort(p->getName(), p->getNode(), p->edGetType()), Port(p->getNode())
18 //!Convert a PyObject that is convertible to Xml::char * and send it to proxy port
20 * \param data : PyObject object as a void * pointer
23 void PyXml::put(const void *data) throw(ConversionException)
25 put((PyObject *)data);
28 //!Convert a PyObject that is convertible to Xml::char * and send it to proxy port
30 * \param data : PyObject object
32 void PyXml::put(PyObject *data) throw(ConversionException)
34 DEBTRACE("PyXml::put" );
35 std::string sss = convertPyObjectXml(edGetType(),data);
36 ((InputXmlPort*)_port)->put((const char*)sss.c_str());