knx
ETS configurable knx-stack
group_object_table_object.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "table_object.h"
4 #include "group_object.h"
5 
7 {
8  friend class GroupObject;
9 
10  public:
12  virtual ~GroupObjectTableObject();
13  uint16_t entryCount();
14  GroupObject& get(uint16_t asap);
15  GroupObject& nextUpdatedObject(bool& valid);
16  void groupObjects(GroupObject* objs, uint16_t size);
17 
18  const uint8_t* restore(const uint8_t* buffer) override;
19 
20  protected:
21  void beforeStateChange(LoadState& newState) override;
22 
23  private:
24  void freeGroupObjects();
25  bool initGroupObjects();
26  uint16_t* _tableData = 0;
27  GroupObject* _groupObjects = 0;
28  uint16_t _groupObjectCount = 0;
29 };
This class represents a single group object.
Definition: group_object.h:42
uint16_t asap()
returns the Application Service Access Point of the group object.
void groupObjects(GroupObject *objs, uint16_t size)
void beforeStateChange(LoadState &newState) override
This method is called before the interface object enters a new LoadState.
GroupObject & nextUpdatedObject(bool &valid)
const uint8_t * restore(const uint8_t *buffer) override
This method is called when the object should restore its state from the buffer.
GroupObject & get(uint16_t asap)
Definition: memory.h:37
This class provides common functionality for interface objects that are configured by ETS with MemorW...
Definition: table_object.h:13
LoadState
Definition: property.h:196