[openrtm-commit:03170] r3220 - branches/RELENG_1_2/OpenRTM-aist/examples/Throughput
openrtm @ openrtm.org
openrtm @ openrtm.org
2018年 2月 9日 (金) 23:48:10 JST
Author: n-ando
Date: 2018-02-09 23:48:10 +0900 (Fri, 09 Feb 2018)
New Revision: 3220
Modified:
branches/RELENG_1_2/OpenRTM-aist/examples/Throughput/Throughput.h
Log:
[incompat,->trunk] Some ConnectorListener signatures have been modified.
Modified: branches/RELENG_1_2/OpenRTM-aist/examples/Throughput/Throughput.h
===================================================================
--- branches/RELENG_1_2/OpenRTM-aist/examples/Throughput/Throughput.h 2018-02-09 14:46:55 UTC (rev 3219)
+++ branches/RELENG_1_2/OpenRTM-aist/examples/Throughput/Throughput.h 2018-02-09 14:48:10 UTC (rev 3220)
@@ -430,13 +430,15 @@
class DataListener
: public ConnectorDataListenerT<DataType>
{
+ USE_CONNLISTENER_STATUS;
public:
DataListener(Throughput *comp) : m_comp(comp) {};
virtual ~DataListener() {};
- virtual void operator()(const ConnectorInfo& info,
- const DataType& data)
+ virtual ReturnCode operator()(ConnectorInfo& info,
+ DataType& data)
{
m_comp->receiveData(data.tm, data.data.length());
+ return RTC::ConnectorListenerStatus::NO_CHANGE;
}
Throughput* m_comp;
};
@@ -444,10 +446,11 @@
class ConnListener
: public ConnectorListener
{
+ USE_CONNLISTENER_STATUS;
public:
ConnListener(Throughput *comp) : m_comp(comp) {}
virtual ~ConnListener() {}
- virtual void operator()(const ConnectorInfo& info)
+ virtual ReturnCode operator()(ConnectorInfo& info)
{
// Connector Listener: ON_CONNECT
// Profile::name: ConsoleIn0.out_ConsoleOut0.in
@@ -476,6 +479,7 @@
std::cout << std::endl;
std::cout << "------------------------------" << std::endl;
m_comp->setConnectorProfile(info);
+ return RTC::ConnectorListenerStatus::NO_CHANGE;
};
Throughput* m_comp;
};
More information about the openrtm-commit
mailing list