An abstract class to communicate a checkpoint between an application and the PHM cluster. More...
#include <checkpoint_communicator.h>
Public Types | |
| using | CheckpointReception = std::function< void(uint32_t)> |
| Callback type for checkpoint reception. | |
Public Member Functions | |
| virtual bool | TrySend (uint32_t checkpoint)=0 |
| Try to send a checkpoint occurrence. More... | |
| void | SetCallback (CheckpointReception &&callback) |
| Set a callback to be invoked at a checkpoint reception. More... | |
| void | ResetCallback () noexcept |
| Reset the callback to be invoked at a checkpoint reception. | |
Protected Attributes | |
| CheckpointReception | Callback |
| Callback to be invoked at a checkpoint reception. | |
An abstract class to communicate a checkpoint between an application and the PHM cluster.
| void ara::phm::CheckpointCommunicator::SetCallback | ( | CheckpointReception && | callback | ) |
Set a callback to be invoked at a checkpoint reception.
| callback | Callback to be invoked |
|
pure virtual |
Try to send a checkpoint occurrence.
| checkpoint | Occurred checkpoint |
Implemented in application::helper::FifoCheckpointCommunicator.