21 TableObject(
Memory& memory, uint32_t staticTableAdr = 0, uint32_t staticTableSize = 0);
31 uint8_t*
save(uint8_t* buffer)
override;
32 const uint8_t*
restore(
const uint8_t* buffer)
override;
63 uint32_t tableReference();
64 bool allocTable(uint32_t size,
bool doFill, uint8_t fillByte);
65 void allocTableStatic();
66 void initializeDynTableProperties(
size_t propertiesSize,
Property** properties);
67 void loadEvent(
const uint8_t*
data);
68 void loadEventUnloaded(
const uint8_t*
data);
69 void loadEventLoading(
const uint8_t*
data);
70 void loadEventLoaded(
const uint8_t*
data);
71 void loadEventError(
const uint8_t*
data);
72 void additionalLoadControls(
const uint8_t*
data);
84 static uint8_t _tableUnloadCount;
85 uint32_t _staticTableAdr;
86 uint32_t _staticTableSize;
This class represents and interface object.
This class provides common functionality for interface objects that are configured by ETS with MemorW...
void initializeProperties(size_t propertiesSize, Property **properties) override
Intializes the Property-array the the supplied values.
LoadState loadState()
This method returns the LoadState of the interface object.
virtual ~TableObject()
The destructor.
static BeforeTablesUnloadCallback _beforeTablesUnload
static BeforeTablesUnloadCallback beforeTablesUnloadCallback()
uint8_t * data()
returns the internal data of the interface object.
virtual void beforeStateChange(LoadState &newState)
This method is called before the interface object enters a new LoadState.
void errorCode(ErrorCode errorCode)
Set the reason for a state change failure.
const uint8_t * restore(const uint8_t *buffer) override
This method is called when the object should restore its state from the buffer.
uint16_t saveSize() override
TableObject(Memory &memory, uint32_t staticTableAdr=0, uint32_t staticTableSize=0)
The constuctor.
uint8_t * save(uint8_t *buffer) override
This method is called when the object should save its state to the buffer.
void(* BeforeTablesUnloadCallback)()