88 template <
class DataType>
147 bool read_block =
false,
bool write_block =
false,
148 int read_timeout = 0,
int write_timeout = 0)
149 #if defined(__GNUC__) && (__GNUC__ <= 3 && __GNUC_MINOR__ <= 3)
150 :
InPortBase(name, ::CORBA_Util::toRepositoryIdOfStruct<DataType>()),
152 :
InPortBase(name, ::CORBA_Util::toRepositoryId<DataType>()),
154 m_name(name), m_value(value),
155 m_OnRead(NULL), m_OnReadConvert(NULL)
197 return m_name.c_str();
245 RTC_DEBUG((
"isNew() = true, readable data: %d", r));
249 RTC_DEBUG((
"isNew() = false, no readable data"));
296 RTC_DEBUG((
"isEmpty() = true, buffer is empty"));
300 RTC_DEBUG((
"isEmpty() = false, data exists in the buffer"));
382 if (m_OnRead != NULL)
407 if (m_OnReadConvert != 0)
409 m_value = (*m_OnReadConvert)(m_value);
425 RTC_ERROR((
"unknown retern value from buffer.read()"));
535 m_OnReadConvert = on_rconvert;
539 std::string m_typename;
579 #endif // RTC_INPORT_H