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