#include <message_subscriber_registry.h>
Public Member Functions | |
const ros::NodeHandle & | getNodeHandle () const |
MessageSubscriberRegistry (QObject *parent=NULL, const ros::NodeHandle &nh=ros::NodeHandle("~")) | |
bool | subscribe (const QString &topic, QObject *receiver, const char *method, const PropertyMap &properties=PropertyMap(), Qt::ConnectionType type=Qt::AutoConnection) |
bool | unsubscribe (const QString &topic, QObject *receiver, const char *method=0) |
virtual | ~MessageSubscriberRegistry () |
Private Types | |
typedef QMap< QString, MessageSubscriber * > ::const_iterator | const_iterator |
typedef QMap< QString, MessageSubscriber * > ::iterator | iterator |
Private Slots | |
void | subscriberAboutToBeDestroyed () |
Private Attributes | |
ros::NodeHandle | nh_ |
QMap< QString, MessageSubscriber * > | subscribers_ |
Definition at line 11 of file message_subscriber_registry.h.
typedef QMap<QString, MessageSubscriber*>::const_iterator utilities::MessageSubscriberRegistry::const_iterator [private] |
Definition at line 28 of file message_subscriber_registry.h.
typedef QMap<QString, MessageSubscriber*>::iterator utilities::MessageSubscriberRegistry::iterator [private] |
Definition at line 27 of file message_subscriber_registry.h.
utilities::MessageSubscriberRegistry::MessageSubscriberRegistry | ( | QObject * | parent = NULL , |
const ros::NodeHandle & | nh = ros::NodeHandle("~") |
||
) |
Definition at line 6 of file message_subscriber_registry.cpp.
Definition at line 12 of file message_subscriber_registry.cpp.
const ros::NodeHandle & utilities::MessageSubscriberRegistry::getNodeHandle | ( | ) | const |
Definition at line 14 of file message_subscriber_registry.cpp.
bool utilities::MessageSubscriberRegistry::subscribe | ( | const QString & | topic, |
QObject * | receiver, | ||
const char * | method, | ||
const PropertyMap & | properties = PropertyMap() , |
||
Qt::ConnectionType | type = Qt::AutoConnection |
||
) | [virtual] |
Implements utilities::MessageBroker.
Definition at line 19 of file message_subscriber_registry.cpp.
void utilities::MessageSubscriberRegistry::subscriberAboutToBeDestroyed | ( | ) | [private, slot] |
Definition at line 61 of file message_subscriber_registry.cpp.
bool utilities::MessageSubscriberRegistry::unsubscribe | ( | const QString & | topic, |
QObject * | receiver, | ||
const char * | method = 0 |
||
) | [virtual] |
Implements utilities::MessageBroker.
Definition at line 49 of file message_subscriber_registry.cpp.
Definition at line 29 of file message_subscriber_registry.h.
QMap<QString, MessageSubscriber*> utilities::MessageSubscriberRegistry::subscribers_ [private] |
Definition at line 30 of file message_subscriber_registry.h.