00001 00020 #ifndef RTC_INPORTCONNECTOR_H 00021 #define RTC_INPORTCONNECTOR_H 00022 00023 #include <rtm/ConnectorBase.h> 00024 00025 namespace RTC 00026 { 00047 class InPortConnector 00048 : public ConnectorBase 00049 { 00050 public: 00051 DATAPORTSTATUS_ENUM 00059 InPortConnector(ConnectorBase::Profile& profile, 00060 CdrBufferBase* buffer); 00061 00069 virtual ~InPortConnector(); 00070 00084 virtual const Profile& profile(); 00098 virtual const char* id(); 00099 00113 virtual const char* name(); 00114 00128 virtual ReturnCode disconnect() = 0; 00129 00143 virtual CdrBufferBase* getBuffer(); 00144 00158 virtual ReturnCode read(cdrMemoryStream& data) = 0; 00159 00160 protected: 00161 Logger rtclog; 00162 Profile m_profile; 00163 CdrBufferBase* m_buffer; 00164 }; 00165 }; // namespace RTC 00166 00167 #endif // RTC_INPORTCONNECTOR_H