|
Maps SDK for C++ 1.0.0
|
TopicNotificationService object. More...


Public Member Functions | |
| TopicNotificationService (const TopicNotificationService &)=delete | |
| TopicNotificationService (TopicNotificationService &&tns)=default | |
| Default move constructor noexcept is deduced. | |
| TopicNotificationService & | operator= (const TopicNotificationService &)=delete |
| TopicNotificationService & | operator= (TopicNotificationService &&tns)=default |
| Default move assignment noexcept is deduced. | |
| int | registerForTopic (const String &topic, TopicListener topicListener) noexcept |
| Register for notifications on the given topic. | |
| int | unregisterFromTopic (const String &topic, TopicListener topicListener) noexcept |
| Unregister for notifications on the given topic. | |
| int | unregisterFromAllTopics (TopicListener topicListener) noexcept |
| Unregister for all notifications. | |
| int | publishOnTopic (const String &topic, const DataBuffer &data, ProgressListener listener) noexcept |
| Publish data on the given topic. | |
| int | canPublishOnTopic () const noexcept |
| Check if data can be published. | |
TopicNotificationService object.
Implements share-read / write Api object over ITopicNotificationService.
This behaves like a singleton, i.e. all instances are sharing behind the same API interface
|
default |
Default move constructor noexcept is deduced.
| [in] | tns | The object to be moved |
|
inlinenoexcept |
Check if data can be published.
|
default |
Default move assignment noexcept is deduced.
| [in] | tns | The object to be moved |
|
inlinenoexcept |
Publish data on the given topic.
| [in] | topic | The topic string |
| [in] | data | The data buffer |
| [in] | listener | Progress listener. If empty, data is considered to be volatile ( i.e. no guarantee it will be published ) |
|
inlinenoexcept |
Register for notifications on the given topic.
| [in] | topic | The topic string. |
Can contain many levels separated by KTokenLevelSeparator, e.g. "MyTopic/MySubtopic1/MySubtopic2"
Use KSingleTokenLevelWildcard to register for any value on a selected level, e.g "MyTopic/+/Subtopic"
Use KMultiTokenLevelWildcard to register for any value on all remaining levels, e.g "MyTopic/Subtopic/#"
| [in] | topicListener | The listener for messages on the given topic |
|
inlinenoexcept |
Unregister for all notifications.
| [in] | topicListener | The topic listener used in registerForTopic call. |
|
inlinenoexcept |
Unregister for notifications on the given topic.
| [in] | topic | The topic string |
| [in] | topicListener | The topic listener used in registerForTopic call. |