23 #pragma warning( disable : 4290 ) 46 CORBA::String_var
ior = orb->object_to_string(
m_objref.in());
55 #endif // ORB_IS_RTORB 72 PortableServer::ObjectId_var oid;
73 oid = _default_POA()->servant_to_id(
this);
74 _default_POA()->deactivate_object(oid);
76 catch (PortableServer::POA::ServantNotActive &e)
80 catch (PortableServer::POA::WrongPolicy &e)
147 ::OpenRTM::PortStatus
149 throw (CORBA::SystemException)
153 data = new ::OpenRTM::CdrData();
158 return ::OpenRTM::UNKNOWN_ERROR;
166 CORBA::ULong len((CORBA::ULong)cdr.bufSize());
169 if (len == (CORBA::ULong)0) {
171 return ::OpenRTM::BUFFER_EMPTY;
175 cdr.get_octet_array(&((*
data)[0]), len);
178 cdr.get_octet_array((
char *)&((*
data)[0]), (
int)len);
179 #endif // ORB_IS_RTORB 192 ::OpenRTM::PortStatus
194 const cdrMemoryStream&
data)
201 return ::OpenRTM::PORT_OK;
206 return ::OpenRTM::PORT_ERROR;
211 return ::OpenRTM::BUFFER_FULL;
217 return ::OpenRTM::BUFFER_EMPTY;
222 return ::OpenRTM::PORT_ERROR;
228 return ::OpenRTM::BUFFER_TIMEOUT;
232 return ::OpenRTM::UNKNOWN_ERROR;
236 return ::OpenRTM::UNKNOWN_ERROR;
SDOPackage::NameValue newNV(const char *name, Value value)
Create NameValue.
ConnectorListeners class.
#define RTC_ERROR(fmt)
Error log output macro.
virtual void setConnector(OutPortConnector *connector)
set Connector
void onSenderEmpty()
Notify an ON_SENDER_EMPTY event to listeners.
OutPortCorbaCdrProvider(void)
Constructor.
void setInterfaceType(const char *interface_type)
Set the interface type.
void onBufferRead(const cdrMemoryStream &data)
Notify an ON_BUFFER_READ event to listeners.
AbstractClass * Creator()
Creator template.
::OpenRTM::OutPortCdr_var m_objref
virtual ~OutPortCorbaCdrProvider(void)
Destructor.
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
void onSenderTimeout()
Notify an ON_SENDER_TIMEOUT event to listeners.
ReturnCode addFactory(const Identifier &id, Creator creator, Destructor destructor)
Add factory.
CORBA::ORB_ptr getORB()
Get the pointer to ORB.
static GlobalFactory< AbstractClass, Identifier, Compare, Creator, Destructor > & instance()
Create instance.
static Manager & instance()
Get instance of the manager.
GlobalFactory template class.
virtual ::OpenRTM::PortStatus get(::OpenRTM::CdrData_out data)
[CORBA interface] Get data from the buffer
Enum
DataPortStatus return codes.
::OpenRTM::PortStatus convertReturn(BufferStatus::Enum status, const cdrMemoryStream &data)
Return codes conversion.
void onSend(const cdrMemoryStream &data)
Notify an ON_SEND event to listeners.
#define RTC_PARANOID(fmt)
Paranoid level log output macro.
virtual void init(coil::Properties &prop)
Initializing configuration.
void onSenderError()
Notify an ON_SENDER_ERROR event to listeners.
void onBufferReadTimeout()
Notify an ON_BUFFER_READ_TIMEOUT event to listeners.
OutPortConnector * m_connector
::RTC::BufferStatus::Enum ReturnCode
virtual void setListener(ConnectorInfo &info, ConnectorListeners *listeners)
Set the listener.
prop
Organization::get_organization_property ();.
virtual void setBuffer(CdrBufferBase *buffer)
Setting outside buffer's pointer.
virtual ReturnCode read(DataType &value, long int sec=-1, long int nsec=-1)=0
Read data from the buffer.
void Destructor(AbstractClass *&obj)
Destructor template.
Class represents a set of properties.
SDOPackage::NVList m_properties
Properties to hold the port profiles.
void push_back(CorbaSequence &seq, SequenceElement elem)
Push the new element back to the CORBA sequence.
ConnectorListeners * m_listeners
OutPortCorbaCdrProvider class.
void OutPortCorbaCdrProviderInit(void)
Module initialization.
BufferBase abstract class.
void onBufferEmpty()
Notify an ON_BUFFER_EMPTY event to listeners.
OutPortCorbaCdrProvider class.