#include <message_field_subscriber.h>
Signals | |
void | received (const variant_topic_tools::BuiltinVariant &field_value) |
void | subscribed () |
void | unsubscribed () |
Public Member Functions | |
variant_topic_tools::BuiltinVariant | getCurrentFieldValue () const |
MessageSubscriberRegistry * | getRegistry () const |
bool | isSubscribed () const |
MessageFieldSubscriber (QObject *parent, const QString &type, const QString &field, MessageSubscriberRegistry *registry=NULL) | |
void | setRegistry (MessageSubscriberRegistry *registry) |
void | subscribe (const QString &topic, const size_t &queue_size) |
void | unsubscribe () |
virtual | ~MessageFieldSubscriber () |
Private Slots | |
void | subscriberMessageReceived (const QString &topic, const Message &message) |
Private Attributes | |
variant_topic_tools::BuiltinVariant | current_field_value_ |
MessageField * | field_ |
MessageSubscriberRegistry * | registry_ |
bool | subscribed_ |
QString | subscribed_topic_ |
Definition at line 13 of file message_field_subscriber.h.
utilities::MessageFieldSubscriber::MessageFieldSubscriber | ( | QObject * | parent, |
const QString & | type, | ||
const QString & | field, | ||
MessageSubscriberRegistry * | registry = NULL |
||
) |
Definition at line 7 of file message_field_subscriber.cpp.
Definition at line 15 of file message_field_subscriber.cpp.
variant_topic_tools::BuiltinVariant utilities::MessageFieldSubscriber::getCurrentFieldValue | ( | ) | const |
Definition at line 26 of file message_field_subscriber.cpp.
Definition at line 31 of file message_field_subscriber.cpp.
bool utilities::MessageFieldSubscriber::isSubscribed | ( | ) | const |
Definition at line 53 of file message_field_subscriber.cpp.
void utilities::MessageFieldSubscriber::received | ( | const variant_topic_tools::BuiltinVariant & | field_value | ) | [signal] |
void utilities::MessageFieldSubscriber::setRegistry | ( | MessageSubscriberRegistry * | registry | ) |
Definition at line 36 of file message_field_subscriber.cpp.
void utilities::MessageFieldSubscriber::subscribe | ( | const QString & | topic, |
const size_t & | queue_size | ||
) |
Definition at line 58 of file message_field_subscriber.cpp.
void utilities::MessageFieldSubscriber::subscribed | ( | ) | [signal] |
void utilities::MessageFieldSubscriber::subscriberMessageReceived | ( | const QString & | topic, |
const Message & | message | ||
) | [private, slot] |
Definition at line 93 of file message_field_subscriber.cpp.
Definition at line 83 of file message_field_subscriber.cpp.
void utilities::MessageFieldSubscriber::unsubscribed | ( | ) | [signal] |
variant_topic_tools::BuiltinVariant utilities::MessageFieldSubscriber::current_field_value_ [private] |
Definition at line 36 of file message_field_subscriber.h.
Definition at line 35 of file message_field_subscriber.h.
Definition at line 37 of file message_field_subscriber.h.
bool utilities::MessageFieldSubscriber::subscribed_ [private] |
Definition at line 33 of file message_field_subscriber.h.
QString utilities::MessageFieldSubscriber::subscribed_topic_ [private] |
Definition at line 34 of file message_field_subscriber.h.