#include <FieldDataManager.h>
Extension of the DataManager interface which provides methods to register modified fields.
virtual const void* fesa::FieldDataManager::getFieldAddress |
( |
uint16_t |
bufferIndex, |
|
|
uint32_t |
fieldIndex |
|
) |
| |
|
pure virtual |
Returns the address of the field whose index id fieldIndex in the reader buffer whose index is bufferIndex.
Implemented in fesa::FieldTrackerDataManager.
virtual std::size_t fesa::FieldDataManager::getSharedFieldsSize |
( |
std::size_t |
numberOfFieldSlots, |
|
|
bool |
multiProcess |
|
) |
| const |
|
pure virtual |
Returns the size of the fields shared between the server and RT parts.
- Parameters
-
numberOfFieldSlots | total number of field slots to reserve memory for. |
multiProcess | true if multiple process will access the shared fields, false otherwise |
Implemented in fesa::FieldTrackerDataManager.
virtual void fesa::FieldDataManager::mapSharedFields |
( |
char * |
memory, |
|
|
std::size_t |
numberOfFieldSlots, |
|
|
bool |
multiProcess, |
|
|
bool |
first |
|
) |
| |
|
pure virtual |
Maps the shared fields, starting at the address pointed to by memory.
- Parameters
-
memory | address where the mapping starts |
numberOfFieldSlots | number of field slots for which memory was reserved |
multiProcess | true if multiple process will access the shared fields, false otherwise |
first | true if shared fields must be initialized (typically when fields are mapped for the first time), false otherwise. |
Implemented in fesa::FieldTrackerDataManager.
virtual uint32_t fesa::FieldDataManager::registerField |
( |
AbstractField & |
field | ) |
|
|
pure virtual |
virtual uint32_t fesa::FieldDataManager::registerModifiedFields |
( |
const std::set< ModifiedField > & |
fields | ) |
|
|
pure virtual |
Registers a field as modified. To be called after field slots have been modified, so that they will be synchronized.
Implemented in fesa::FieldTrackerDataManager.
The documentation for this class was generated from the following file: