]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/runtime/CppNode.hxx
Salome HOME
PR: merge from BR_DATACONV_PR tag "mergeto_trunk_25oct06"
[modules/yacs.git] / src / runtime / CppNode.hxx
diff --git a/src/runtime/CppNode.hxx b/src/runtime/CppNode.hxx
new file mode 100644 (file)
index 0000000..56ec4c3
--- /dev/null
@@ -0,0 +1,29 @@
+
+#ifndef _CPPNODE_HXX_
+#define _CPPNODE_HXX_
+
+#include "ElementaryNode.hxx"
+
+namespace YACS
+{
+  namespace ENGINE
+  {
+    // local C++ implementation - single process
+    
+    typedef bool (*MYRUN)(int nbin, int nbout, void **in, void** out);
+    
+    class CppNode: public ENGINE::ElementaryNode 
+    {
+    public:
+      CppNode(const std::string name);
+      virtual void execute();
+      void setfunc(MYRUN fonc) { _run = fonc;}
+      
+    protected:
+      MYRUN _run;
+
+    };
+  }
+}
+
+#endif