2016-06-15 23:48:41 +02:00
|
|
|
#ifndef HEALTHTABLEIF_H_
|
|
|
|
#define HEALTHTABLEIF_H_
|
|
|
|
|
2020-08-13 20:53:35 +02:00
|
|
|
#include "ManagesHealthIF.h"
|
|
|
|
#include "../objectmanager/ObjectManagerIF.h"
|
|
|
|
#include "../returnvalues/HasReturnvaluesIF.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
|
|
class HealthTableIF: public ManagesHealthIF {
|
|
|
|
friend class HealthCommandingService;
|
|
|
|
public:
|
|
|
|
virtual ~HealthTableIF() {
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual ReturnValue_t registerObject(object_id_t object,
|
|
|
|
HasHealthIF::HealthState initilialState = HasHealthIF::HEALTHY) = 0;
|
|
|
|
|
|
|
|
virtual uint32_t getPrintSize() = 0;
|
2020-07-13 02:12:11 +02:00
|
|
|
virtual void printAll(uint8_t *pointer, size_t maxSize) = 0;
|
2016-06-15 23:48:41 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual ReturnValue_t iterate(std::pair<object_id_t,HasHealthIF::HealthState> *value, bool reset = false) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* HEALTHTABLEIF_H_ */
|