Salome HOME
56ec4c3aad66f97b51261c41eb56caba19f11250
[modules/yacs.git] / src / runtime / CppNode.hxx
1
2 #ifndef _CPPNODE_HXX_
3 #define _CPPNODE_HXX_
4
5 #include "ElementaryNode.hxx"
6
7 namespace YACS
8 {
9   namespace ENGINE
10   {
11     // local C++ implementation - single process
12     
13     typedef bool (*MYRUN)(int nbin, int nbout, void **in, void** out);
14     
15     class CppNode: public ENGINE::ElementaryNode 
16     {
17     public:
18       CppNode(const std::string name);
19       virtual void execute();
20       void setfunc(MYRUN fonc) { _run = fonc;}
21       
22     protected:
23       MYRUN _run;
24
25     };
26   }
27 }
28
29 #endif