#include <AnimationQueue.h>
The AnimationQueue is responsible for delaying messages to preserve the animation duration while also keeping the order of the message
| communication::AnimationQueue::AnimationQueue |
( |
Communicator & |
communicator | ) |
|
|
explicit |
CTor: Construct the AnimationQueue with a communicator to which to send
- Parameters
-
| communicator | reference to the communicator to which to send |
| communication::AnimationQueue::AnimationQueue |
( |
const AnimationQueue & |
animationQueue | ) |
|
|
delete |
Explicitly delete the copy C-Tor to obey the rule of five
| communication::AnimationQueue::AnimationQueue |
( |
AnimationQueue && |
animationQueue | ) |
|
|
delete |
Explicitly delete the move C-Tor to obey the rule of five
| communication::AnimationQueue::~AnimationQueue |
( |
| ) |
|
| void communication::AnimationQueue::add |
( |
const messages::Payload & |
payload, |
|
|
const std::vector< int > & |
clients, |
|
|
std::chrono::milliseconds |
timeOffset = std::chrono::milliseconds{0} |
|
) |
| |
Add an payload to the queue to send
- Parameters
-
| payload | the payload to send |
| clients | list off all clients to which to send the message |
| timeOffset | the time between: the current time if the queue is empty, at the end of the queue if the queue is non empty but all offsets are obeyed or some time after the queue to obey the offset (even if the queue is empty it is checked with the last sent message) |
Explicitly delete the copy assignment to obey the rule of five
Explicitly delete the move assignment to obey the rule of five
The documentation for this class was generated from the following files: