00001 // -*- C++ -*- 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(ConnectorInfo& info, 00060 CdrBufferBase* buffer); 00061 00069 virtual ~InPortConnector(); 00070 00084 virtual const ConnectorInfo& 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 00173 virtual void setEndian(const bool endian_type); 00174 00192 virtual bool isLittleEndian(); 00193 00194 protected: 00202 Logger rtclog; 00210 ConnectorInfo m_profile; 00218 CdrBufferBase* m_buffer; 00226 bool m_littleEndian; 00227 }; 00228 }; // namespace RTC 00229 00230 #endif // RTC_INPORTCONNECTOR_H