fesa-core
4.2.0
|
#include <DataManager.h>
Public Member Functions | |
virtual void | initialCopy ()=0 |
virtual void | update (uint16_t oldIndex, uint16_t newIndex)=0 |
DataManager interface. DataManagers are responsible for updating data when BufferSynchronizer triggers a synchronization.
|
pure virtual |
Performs the initial copy of the data from the reference buffer to the reader buffers. Called once before any call to update().
Implemented in fesa::FieldTrackerDataManager.
|
pure virtual |
Updates the reader buffers. Called by BufferSynchronizer when an update can be safely done.
oldIndex | index of the reader buffer which is about to become the old buffer |
newIndex | index of the reader buffer which is about to become the new buffer |
Implemented in fesa::FieldTrackerDataManager.