1 #ifndef _CORBAPORTS_HXX_
2 #define _CORBAPORTS_HXX_
4 #include <omniORB4/CORBA.h>
6 #include "InputPort.hxx"
7 #include "OutputPort.hxx"
14 /*! \brief Class for CORBA Input Ports
20 class InputCorbaPort : public InputPort
23 InputCorbaPort(const std::string& name, Node *node, TypeCode * type);
24 InputCorbaPort(const InputCorbaPort& other, Node *newHelder);
25 virtual ~InputCorbaPort();
26 bool edIsManuallyInitialized() const;
27 void edRemoveManInit();
28 virtual void put(const void *data) throw(ConversionException);
29 void put(CORBA::Any *data) throw (ConversionException);
30 InputPort *clone(Node *newHelder) const;
31 void *get() const throw(Exception);
32 virtual bool isEmpty();
33 virtual CORBA::Any * getAny();
34 virtual void exSaveInit();
35 virtual void exRestoreInit();
36 virtual std::string dump();
39 CORBA::Any * _initData;
43 class OutputCorbaPort : public OutputPort
46 OutputCorbaPort(const std::string& name, Node *node, TypeCode * type);
47 OutputCorbaPort(const OutputCorbaPort& other, Node *newHelder);
48 virtual ~OutputCorbaPort();
49 virtual void put(const void *data) throw(ConversionException);
50 void put(CORBA::Any *data) throw (ConversionException);
51 OutputPort *clone(Node *newHelder) const;
52 virtual CORBA::Any * getAny();
53 virtual CORBA::Any * getAnyOut();
54 virtual std::string dump();
55 friend std::ostream & operator<< ( std::ostream &os,
56 const OutputCorbaPort& p);