2018-04-09 22:30:23 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "table_object.h"
|
|
|
|
|
|
|
|
class AssociationTableObject: public TableObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AssociationTableObject(uint8_t* memoryReference);
|
2018-04-13 22:08:10 +02:00
|
|
|
#pragma GCC diagnostic push
|
|
|
|
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
|
2018-04-11 22:52:15 +02:00
|
|
|
void readProperty(PropertyID id, uint32_t start, uint32_t& count, uint8_t* data);
|
2018-04-13 22:08:10 +02:00
|
|
|
#pragma GCC diagnostic pop
|
2018-04-09 22:30:23 +02:00
|
|
|
uint16_t entryCount();
|
|
|
|
uint16_t operator[](uint16_t idx);
|
|
|
|
uint8_t* save(uint8_t* buffer);
|
|
|
|
uint8_t* restore(uint8_t* buffer);
|
|
|
|
|
|
|
|
int32_t translateAsap(uint16_t asap);
|
|
|
|
protected:
|
|
|
|
void beforeStateChange(LoadState& newState);
|
2018-04-13 22:08:10 +02:00
|
|
|
uint8_t propertyCount();
|
|
|
|
PropertyDescription* propertyDescriptions();
|
2018-04-09 22:30:23 +02:00
|
|
|
private:
|
|
|
|
uint16_t* _tableData;
|
|
|
|
};
|