5 #include "ServiceNode.hxx"
11 // local C++ implementation - single process
15 typedef void (*MYRUN)(int nbin, int nbout,
16 YACS::ENGINE::Any **in, YACS::ENGINE::Any ** out);
18 /*! \brief Class for C++ Nodes (in process component)
20 * local C++ implementation - single process
25 class CppNode : public YACS::ENGINE::ServiceNode
28 Node *simpleClone(ComposedNode *father, bool editionOnly) const;
30 CppNode(const CppNode &other, ComposedNode *father);
31 CppNode(const std::string &name);
33 virtual void execute();
34 virtual ServiceNode* createNode(const std::string& name);
35 CppNode* cloneNode(const std::string& name);
37 void setCode(const std::string & componentName, const std::string & service);
38 void setFunc(MYRUN fonc);
40 static const char IMPL_NAME[];
41 static const char KIND[];
42 std::string getKind() const { return CppNode::KIND; }
44 std::string _componentName;