ROSaic
Public Member Functions | Protected Attributes
io_comm_mosaic::AbstractCallbackHandler Class Referenceabstract

#include <callbackhandlers.hpp>

Inheritance diagram for io_comm_mosaic::AbstractCallbackHandler:
Inheritance graph
[legend]
Collaboration diagram for io_comm_mosaic::AbstractCallbackHandler:
Collaboration graph
[legend]

Public Member Functions

virtual void Handle (mosaicMessage &mMessage, std::string message_key)=0
 
bool Wait (const boost::posix_time::time_duration &timeout)
 

Protected Attributes

boost::mutex mutex_
 
boost::condition_variable condition_
 

Detailed Description

Definition at line 112 of file callbackhandlers.hpp.

Member Function Documentation

◆ Handle()

virtual void io_comm_mosaic::AbstractCallbackHandler::Handle ( mosaicMessage mMessage,
std::string  message_key 
)
pure virtual

Implemented in io_comm_mosaic::CallbackHandler< T >.

Referenced by io_comm_mosaic::CallbackHandlers::ReadCallback().

Here is the caller graph for this function:

◆ Wait()

bool io_comm_mosaic::AbstractCallbackHandler::Wait ( const boost::posix_time::time_duration &  timeout)
inline

Definition at line 117 of file callbackhandlers.hpp.

References condition_, and mutex_.

118  {
119  boost::mutex::scoped_lock lock(mutex_);
120  return condition_.timed_wait(lock, timeout);
121  }

Field Documentation

◆ condition_

boost::condition_variable io_comm_mosaic::AbstractCallbackHandler::condition_
protected

Definition at line 125 of file callbackhandlers.hpp.

Referenced by io_comm_mosaic::CallbackHandler< T >::Handle(), and Wait().

◆ mutex_

boost::mutex io_comm_mosaic::AbstractCallbackHandler::mutex_
protected

Definition at line 124 of file callbackhandlers.hpp.

Referenced by io_comm_mosaic::CallbackHandler< T >::Handle(), and Wait().


The documentation for this class was generated from the following file: