#include <notifier.h>
◆ get_next_notification()
Get the next notification from the notification queue.
Used by the Server to get the notifications in order to forward them to the clients. A simple queue is used that has a mutex lock which may, or may not be successfully obtained at the moment of checking.
- Parameters
-
- Returns
- true if a notification has been successfully fetched, false if not
◆ has_notification()
bool Notifier::has_notification |
( |
| ) |
|
Check if there are any pending notifications.
- Returns
- true if there are pending notifications, false otherwise
◆ send_mm_state_deinitialized()
void Notifier::send_mm_state_deinitialized |
( |
| ) |
|
Send a notification over ZeroMQ that Motion Master has deinitialized.
◆ send_mm_state_deinitializing()
void Notifier::send_mm_state_deinitializing |
( |
| ) |
|
Send a notification over ZeroMQ that Motion Master is deinitializing.
◆ send_mm_state_initialized()
void Notifier::send_mm_state_initialized |
( |
| ) |
|
Send a notification over ZeroMQ that Motion Master has initialized.
◆ send_mm_state_initializing()
void Notifier::send_mm_state_initializing |
( |
| ) |
|
Send a notification over ZeroMQ that Motion Master is initializing.
◆ send_mm_state_slaves_found()
void Notifier::send_mm_state_slaves_found |
( |
| ) |
|
Send a notification over ZeroMQ that Motion Master has found slaves.
◆ send_mm_state_terminating()
void Notifier::send_mm_state_terminating |
( |
| ) |
|
Send a notification over ZeroMQ that Motion Master is being terminated.
Create a Google Protocol Buffers terminating process message and send it over ZeroMQ
◆ send_mm_state_waiting_for_slaves()
void Notifier::send_mm_state_waiting_for_slaves |
( |
| ) |
|
Send a notification over ZeroMQ that Motion Master is waiting for slaves.
◆ send_monitoring_status()
void Notifier::send_monitoring_status |
( |
motionmaster::MotionMasterMessage::Status * |
status | ) |
|
Send a monitoring status message.
- Parameters
-
status | the Motion Master API status message |
◆ send_notification_status()
void Notifier::send_notification_status |
( |
motionmaster::MotionMasterMessage::Status * |
status | ) |
|
Send a notification status message.
- Parameters
-
status | the Motion Master API status message |
◆ send_slave_error()
void Notifier::send_slave_error |
( |
uint32_t |
device_address, |
|
|
int32_t |
device_id, |
|
|
int32_t |
code, |
|
|
const std::string & |
additional_info = "" |
|
) |
| |
Send a slave error message over ZeroMQ.
Create a Google Protocol Buffers error log message and send it over ZeroMQ
- Parameters
-
device_address | device address |
device_id | device ID |
code | error code |
additional_info | any additional information |
◆ send_slave_warning()
void Notifier::send_slave_warning |
( |
uint32_t |
device_address, |
|
|
int32_t |
device_id, |
|
|
int32_t |
code, |
|
|
const std::string & |
additional_info = "" |
|
) |
| |
Send a slave warning message over ZeroMQ.
Create a Google Protocol Buffers warning log message and send it over ZeroMQ
- Parameters
-
device_address | device address |
device_id | device ID |
code | warning code |
additional_info | any additional information |
◆ send_status()
void Notifier::send_status |
( |
motionmaster::MotionMasterMessage::Status * |
status, |
|
|
std::string |
topic = "" |
|
) |
| |
Send a status message.
- Parameters
-
status | the Motion Master API status message |
topic | a topic to send the status message to |
The documentation for this class was generated from the following files: