1 #ifndef __RUNTIMEFORENGINETEST_HXX__
2 #define __RUNTIMEFORENGINETEST_HXX__
5 #include "InputPort.hxx"
6 #include "OutputPort.hxx"
7 #include "ElementaryNode.hxx"
13 class TestElemNode: public ElementaryNode
16 TestElemNode(const std::string& s): ElementaryNode(s) { }
17 TestElemNode(const TestElemNode& other, ComposedNode *father);
20 Node *simpleClone(ComposedNode *father, bool editionOnly) const;
23 class TestElemInputPort : public InputPort
26 TestElemInputPort(const std::string& name, Node *node, TypeCode* type);
27 TestElemInputPort(const TestElemInputPort& other, Node *newHelder);
28 void put(const void *data) throw(ConversionException);
29 InputPort *clone(Node *newHelder) const;
30 void *get() const throw(Exception);
37 class TestElemOutputPort : public OutputPort
40 TestElemOutputPort(const std::string& name, Node *node, TypeCode* type);
41 TestElemOutputPort(const TestElemOutputPort& other, Node *newHelder);
42 void put(const void *data) throw(ConversionException);
43 OutputPort *clone(Node *newHelder) const;
46 class RuntimeForEngineTest : public Runtime
49 static void setRuntime();
50 ElementaryNode* createNode(const std::string& implementation, const std::string& name) throw(Exception);
51 InputPort* createInputPort(const std::string& name, const std::string& impl, Node * node, TypeCode * type);
52 OutputPort* createOutputPort(const std::string& name, const std::string& impl, Node * node, TypeCode * type);
53 InputPort* adapt(InputPort* source, const std::string& impl, TypeCode * type) throw (ConversionException);