7 #include "InputPort.hxx"
8 #include "OutputPort.hxx"
15 /*! \brief Class for C++ Ports
21 class InputCppPort : public InputPort
24 InputCppPort(const std::string& name, Node * node, TypeCode * type);
25 InputCppPort(const InputCppPort& other, Node *newHelder);
27 bool edIsManuallyInitialized() const;
28 void edRemoveManInit();
29 virtual void put(const void *data) throw(ConversionException);
30 void put(YACS::ENGINE::Any *data) throw(ConversionException);
31 InputPort *clone(Node *newHelder) const;
32 virtual YACS::ENGINE::Any * getCppObj() const;
33 void *get() const throw(Exception);
34 virtual bool isEmpty();
35 virtual void exSaveInit();
36 virtual void exRestoreInit();
37 virtual std::string dump();
39 YACS::ENGINE::Any* _data;
40 YACS::ENGINE::Any* _initData;
43 class OutputCppPort : public OutputPort
46 OutputCppPort(const std::string& name, Node * node, TypeCode * type);
47 OutputCppPort(const OutputCppPort& other, Node *newHelder);
49 virtual void put(const void *data) throw(ConversionException);
50 void put(YACS::ENGINE::Any *data) throw(ConversionException);
51 OutputPort *clone(Node *newHelder) const;
52 virtual YACS::ENGINE::Any * get() const;
53 virtual std::string dump();
55 YACS::ENGINE::Any* _data;