Public Member Functions | |
virtual RTC::InPortConsumer * | clone () const |
virtual int | getCount () const |
virtual const std::vector< long > & | getIntervalTicks () const |
virtual void | init (coil::Properties &prop) |
Initializing configuration. | |
MockConsumer () | |
virtual void | publishInterfaceProfile (SDOPackage::NVList &properties) |
Publish InterfaceProfile information. | |
virtual void | push () |
virtual InPortConsumer::ReturnCode | put (const cdrMemoryStream &data) |
Send data to the destination port. | |
virtual bool | subscribeInterface (const SDOPackage::NVList &) |
Subscribe the data send notification. | |
virtual void | unsubscribeInterface (const SDOPackage::NVList &) |
Unsubscribe the data send notification. | |
virtual | ~MockConsumer () |
Private Member Functions | |
void | clearLastTime () |
bool | isLastTimeCleared () |
Private Attributes | |
std::vector< long > | _intervalTicks |
timeval | _lastTime |
Definition at line 227 of file PublisherPeriodicTests.cpp.
PublisherPeriodic::MockConsumer::MockConsumer | ( | ) | [inline] |
Definition at line 231 of file PublisherPeriodicTests.cpp.
virtual PublisherPeriodic::MockConsumer::~MockConsumer | ( | ) | [inline, virtual] |
Definition at line 236 of file PublisherPeriodicTests.cpp.
void PublisherPeriodic::MockConsumer::clearLastTime | ( | ) | [inline, private] |
Definition at line 301 of file PublisherPeriodicTests.cpp.
virtual RTC::InPortConsumer* PublisherPeriodic::MockConsumer::clone | ( | ) | const [inline, virtual] |
Definition at line 255 of file PublisherPeriodicTests.cpp.
virtual int PublisherPeriodic::MockConsumer::getCount | ( | ) | const [inline, virtual] |
Definition at line 279 of file PublisherPeriodicTests.cpp.
virtual const std::vector<long>& PublisherPeriodic::MockConsumer::getIntervalTicks | ( | ) | const [inline, virtual] |
Definition at line 274 of file PublisherPeriodicTests.cpp.
virtual void PublisherPeriodic::MockConsumer::init | ( | coil::Properties & | prop | ) | [inline, virtual] |
Initializing configuration.
This operation would be called to configure this consumer in initialization.
Implements RTC::InPortConsumer.
Definition at line 284 of file PublisherPeriodicTests.cpp.
bool PublisherPeriodic::MockConsumer::isLastTimeCleared | ( | ) | [inline, private] |
Definition at line 307 of file PublisherPeriodicTests.cpp.
virtual void PublisherPeriodic::MockConsumer::publishInterfaceProfile | ( | SDOPackage::NVList & | properties | ) | [inline, virtual] |
Publish InterfaceProfile information.
Publish interfaceProfile information. Check the dataport.interface_type value of the NameValue object specified by an argument in property information and get information only when the interface type of the specified port is matched.
properties | Properties to get InterfaceProfile information |
Implements RTC::InPortConsumer.
Definition at line 291 of file PublisherPeriodicTests.cpp.
virtual void PublisherPeriodic::MockConsumer::push | ( | ) | [inline, virtual] |
Definition at line 238 of file PublisherPeriodicTests.cpp.
virtual InPortConsumer::ReturnCode PublisherPeriodic::MockConsumer::put | ( | const cdrMemoryStream & | data | ) | [inline, virtual] |
Send data to the destination port.
Pure virtual function to send data to the destination port.
This function might the following return codes
Implements RTC::InPortConsumer.
Definition at line 287 of file PublisherPeriodicTests.cpp.
virtual bool PublisherPeriodic::MockConsumer::subscribeInterface | ( | const SDOPackage::NVList & | properties | ) | [inline, virtual] |
Subscribe the data send notification.
Pure virtual function to subscribe the data send notification based on specified property information.
properties | Properties for reference when subscribing |
Implements RTC::InPortConsumer.
Definition at line 264 of file PublisherPeriodicTests.cpp.
virtual void PublisherPeriodic::MockConsumer::unsubscribeInterface | ( | const SDOPackage::NVList & | properties | ) | [inline, virtual] |
Unsubscribe the data send notification.
Pure virtual function to unsubscribe the data send notification.
properties | Properties for reference when unsubscribing |
Implements RTC::InPortConsumer.
Definition at line 269 of file PublisherPeriodicTests.cpp.
std::vector<long> PublisherPeriodic::MockConsumer::_intervalTicks [private] |
Definition at line 296 of file PublisherPeriodicTests.cpp.
timeval PublisherPeriodic::MockConsumer::_lastTime [private] |
Definition at line 297 of file PublisherPeriodicTests.cpp.