Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / runtime / PythonXMLConv.hxx
diff --git a/src/runtime/PythonXMLConv.hxx b/src/runtime/PythonXMLConv.hxx
new file mode 100644 (file)
index 0000000..d6d0158
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef __PYTHONXMLCONV_HXX__
+#define __PYTHONXMLCONV_HXX__
+
+#include <Python.h>
+#include "XMLPorts.hxx"
+
+namespace YACS
+{
+  namespace ENGINE
+  {
+    // Adaptator Ports Python->Xml for several types
+
+    class PyXml : public ProxyPort
+    {
+    public:
+      PyXml(InputXmlPort* p);
+      virtual void put(const void *data) throw(ConversionException);
+      void put(PyObject *data) throw(ConversionException);
+    };
+  }
+}
+#endif