]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/runtime/CppPythonConv.hxx
Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / runtime / CppPythonConv.hxx
diff --git a/src/runtime/CppPythonConv.hxx b/src/runtime/CppPythonConv.hxx
new file mode 100644 (file)
index 0000000..949886b
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef __CPPPYTHONCONV_HXX__
+#define __CPPPYTHONCONV_HXX__
+
+#include "PythonPorts.hxx"
+
+namespace YACS
+{
+  namespace ENGINE
+  {
+    //Proxy port to adapt Python port to Cpp
+
+    class CppPy : public ProxyPort
+    {
+    public:
+      CppPy(InputPyPort* p);
+      virtual void put(const void *data)  throw(ConversionException);
+      virtual void put(Any *a)  throw(ConversionException);
+    };
+    int isAdaptablePyObjectCpp(const TypeCode *t1, const TypeCode *t2);
+  }
+}
+
+#endif