23 #pragma warning( disable : 4290 ) 46 CORBA::String_var
ior = orb->object_to_string(
m_objref.in());
66 PortableServer::ObjectId_var oid;
67 oid = _default_POA()->servant_to_id(
this);
68 _default_POA()->deactivate_object(oid);
70 catch (PortableServer::POA::ServantNotActive &e)
74 catch (PortableServer::POA::WrongPolicy &e)
135 ::OpenRTM::PortStatus
137 throw (CORBA::SystemException)
144 cdr.put_octet_array(&(
data[0]),
data.length());
146 return ::OpenRTM::PORT_ERROR;
153 RTC_TRACE((
"connector endian: %s", endian_type ?
"little":
"big"));
154 cdr.setByteSwapFlag(endian_type);
155 cdr.put_octet_array(&(
data[0]),
data.length());
157 RTC_PARANOID((
"converted CDR data size: %d", cdr.bufSize()));
171 ::OpenRTM::PortStatus
173 const cdrMemoryStream&
data)
179 return ::OpenRTM::PORT_OK;
184 return ::OpenRTM::PORT_ERROR;
190 return ::OpenRTM::BUFFER_FULL;
195 return ::OpenRTM::BUFFER_EMPTY;
200 return ::OpenRTM::PORT_ERROR;
206 return ::OpenRTM::BUFFER_TIMEOUT;
210 return ::OpenRTM::UNKNOWN_ERROR;
214 return ::OpenRTM::UNKNOWN_ERROR;
SDOPackage::NameValue newNV(const char *name, Value value)
Create NameValue.
void onBufferWriteTimeout(const cdrMemoryStream &data)
Notify an ON_BUFFER_WRITE_TIMEOUT event to listeners.
ConnectorListeners class.
#define RTC_ERROR(fmt)
Error log output macro.
SDOPackage::NVList m_properties
Properties to hold port profile.
AbstractClass * Creator()
Creator template.
void onReceiverError(const cdrMemoryStream &data)
RTC::ReturnCode_t ret(RTC::Local::ReturnCode_t r)
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.
virtual ~InPortCorbaCdrProvider(void)
Destructor.
void onReceiverTimeout(const cdrMemoryStream &data)
Notify an ON_RECEIVER_TIMEOUT event to listeners.
GlobalFactory template class.
InPortCorbaCdrProvider(void)
Constructor.
Enum
DataPortStatus return codes.
InPortConnector * m_connector
InPortCorbaCdrProvider class.
#define RTC_PARANOID(fmt)
Paranoid level log output macro.
virtual void setListener(ConnectorInfo &info, ConnectorListeners *listeners)
Set the listener.
void onBufferWrite(const cdrMemoryStream &data)
Notify an ON_BUFFER_WRITE event to listeners.
void onReceiverFull(const cdrMemoryStream &data)
Notify an ON_RECEIVER_FULL event to listeners.
InPortCorbaCdrProvider class.
ConnectorListeners * m_listeners
virtual void setConnector(InPortConnector *connector)
set Connector
void InPortCorbaCdrProviderInit(void)
Module initialization.
prop
Organization::get_organization_property ();.
void setInterfaceType(const char *interface_type)
Set the interface type.
::OpenRTM::InPortCdr_var m_objref
virtual bool isLittleEndian()
Whether this connector's endian is little.
void Destructor(AbstractClass *&obj)
Destructor template.
Class represents a set of properties.
virtual void setBuffer(BufferBase< cdrMemoryStream > *buffer)
Setting outside buffer's pointer.
virtual void init(coil::Properties &prop)
Initializing configuration.
void onReceived(const cdrMemoryStream &data)
Notify an ON_RECEIVED event to listeners.
void push_back(CorbaSequence &seq, SequenceElement elem)
Push the new element back to the CORBA sequence.
::OpenRTM::PortStatus convertReturn(BufferStatus::Enum status, const cdrMemoryStream &data)
Return codes conversion.
void onBufferFull(const cdrMemoryStream &data)
Notify an ON_BUFFER_FULL event to listeners.
virtual ReturnCode write(const DataType &value, long int sec=-1, long int nsec=-1)=0
Write data into the buffer.
BufferBase abstract class.
virtual ::OpenRTM::PortStatus put(const ::OpenRTM::CdrData &data)
[CORBA interface] Write data into the buffer