17 #ifndef SHAREDMEMORYPORT_H
18 #define SHAREDMEMORYPORT_H
22 #include <rtm/idl/SharedMemorySkel.h>
25 #define DEFAULT_DATA_SIZE 8
26 #define DEFAULT_SHARED_MEMORY_SIZE 2097152
53 :
public virtual POA_OpenRTM::PortSharedMemory,
54 public virtual PortableServer::RefCountServantBase
127 virtual void create_memory(::CORBA::ULongLong memory_size,
const char *shm_address)
128 throw (CORBA::SystemException);
146 virtual void open_memory(::CORBA::ULongLong memory_size,
const char *shm_address)
147 throw (CORBA::SystemException);
161 virtual void close_memory(::CORBA::Boolean unlink =
false)
162 throw (CORBA::SystemException);
180 virtual void write(cdrMemoryStream& data);
195 virtual void read(cdrMemoryStream& data);
212 virtual void setInterface(::OpenRTM::PortSharedMemory_ptr sm)
213 throw (CORBA::SystemException);
229 virtual void setEndian(::CORBA::Boolean endian)
230 throw (CORBA::SystemException);
246 virtual ::OpenRTM::PortStatus
put()
247 throw (CORBA::SystemException);
263 virtual ::OpenRTM::PortStatus
get()
264 throw (CORBA::SystemException);
266 virtual ::OpenRTM::PortSharedMemory_ptr
getObjRef();
280 #pragma warning( default : 4290 )
283 #endif // RTC_RTOBJECT