2 #ifndef _PYTHONPORTS_HXX_
3 #define _PYTHONPORTS_HXX_
7 #include "InputPort.hxx"
8 #include "OutputPort.hxx"
15 class InputPyPort : public InputPort
18 InputPyPort(const std::string& name, Node * node, TypeCode * type);
19 virtual void put(const void *data) throw(ConversionException);
20 void put(PyObject *data) throw(ConversionException);
21 virtual PyObject * getPyObj() const;
26 class OutputPyPort : public OutputPort
29 OutputPyPort(const std::string& name, Node * node, TypeCode * type);
30 virtual void put(const void *data) throw(ConversionException);
31 void put(PyObject *data) throw(ConversionException);
32 virtual PyObject * get() const;