1 #ifndef __CORBAPYTHONCONV_HXX__
2 #define __CORBAPYTHONCONV_HXX__
4 #include <omniORB4/CORBA.h>
6 #include "PythonPorts.hxx"
13 // --- convertisseurs Corba->Python pour les différents types
15 class CorbaPyDouble : public ProxyPort
18 CorbaPyDouble(InputPyPort* p)
19 : ProxyPort(p), Port(p->getNode()) {}
20 virtual void put(const void *data) throw(ConversionException);
21 void put(CORBA::Any *data) throw(ConversionException);
24 class CorbaPyInt : public ProxyPort
27 CorbaPyInt(InputPyPort* p)
28 : ProxyPort(p), Port(p->getNode()) {}
29 virtual void put(const void *data) throw(ConversionException);
30 void put(CORBA::Any *data) throw(ConversionException);
33 class CorbaPyString : public ProxyPort
36 CorbaPyString(InputPyPort* p)
37 : ProxyPort(p), Port(p->getNode()) {}
38 virtual void put(const void *data) throw(ConversionException);
39 void put(CORBA::Any *data) throw(ConversionException);
42 class CorbaPyObjref : public ProxyPort
45 CorbaPyObjref(InputPyPort* p)
46 : ProxyPort(p), Port(p->getNode()) {}
47 virtual void put(const void *data) throw(ConversionException);
48 void put(CORBA::Any *data) throw(ConversionException);
51 class CorbaPySequence : public ProxyPort
54 CorbaPySequence(InputPyPort* p);
55 virtual void put(const void *data) throw(ConversionException);
56 void put(CORBA::Any *data) throw(ConversionException);
58 DynamicAny::DynAnyFactory_ptr _dynfactory;