RSB
0.7.0
|
A rsb::Handler for rsb::Listener s that pushes all received data on a rsc::SynchronizedQueue. More...
#include <QueuePushHandler.h>
Public Member Functions | |
QueuePushHandler (boost::shared_ptr< rsc::threading::SynchronizedQueue< boost::shared_ptr< T > > > queue, const std::string &method="") | |
Constructs a new instance. | |
std::string | getClassName () const |
void | printContents (std::ostream &stream) const |
void | handle (EventPtr event) |
Handle event. | |
Public Member Functions inherited from rsb::Handler | |
std::set< std::string > | getMethods () const |
Returns the desired set of methods this handler can handle. | |
bool | acceptsMethod (const std::string &method) const |
Private Attributes | |
boost::shared_ptr < rsc::threading::SynchronizedQueue < boost::shared_ptr< T > > > | queue |
Additional Inherited Members | |
Protected Member Functions inherited from rsb::Handler | |
Handler (const std::string &method="") | |
Creates a new handler that only accepts events for the specified method. | |
Handler (const std::set< std::string > &methods) | |
Creates a new handler that only accepts events with the specified methods. | |
virtual | ~Handler () |
A rsb::Handler for rsb::Listener s that pushes all received data on a rsc::SynchronizedQueue.
This queue must handle shared pointers of the data type.
T | data type received by the handler. All data is handeled as a shared pointer of this type |
Definition at line 47 of file QueuePushHandler.h.
|
inline |
Constructs a new instance.
queue | the queue to push received data on |
method | method of this handler to react on, empty means all events |
Definition at line 59 of file QueuePushHandler.h.
|
inline |
Reimplemented from rsb::Handler.
Definition at line 66 of file QueuePushHandler.h.
|
inlinevirtual |
Handle event.
event | The event that should be handled. |
Implements rsb::eventprocessing::Handler.
Definition at line 74 of file QueuePushHandler.h.
References rsb::QueuePushHandler< T >::queue.
|
inline |
Definition at line 70 of file QueuePushHandler.h.
References rsb::QueuePushHandler< T >::queue.
|
private |
Definition at line 50 of file QueuePushHandler.h.
Referenced by rsb::QueuePushHandler< T >::handle(), and rsb::QueuePushHandler< T >::printContents().