fsfw/health/HealthTableIF.h

25 lines
705 B
C
Raw Normal View History

2020-09-23 17:44:22 +02:00
#ifndef FSFW_HEALTH_HEALTHTABLEIF_H_
#define FSFW_HEALTH_HEALTHTABLEIF_H_
2020-08-28 18:33:29 +02:00
2020-09-23 17:44:22 +02:00
#include "ManagesHealthIF.h"
2020-08-28 18:33:29 +02:00
#include "../objectmanager/ObjectManagerIF.h"
#include "../returnvalues/HasReturnvaluesIF.h"
class HealthTableIF: public ManagesHealthIF {
public:
2020-09-23 17:44:22 +02:00
virtual ~HealthTableIF() {}
2020-08-28 18:33:29 +02:00
virtual ReturnValue_t registerObject(object_id_t object,
HasHealthIF::HealthState initilialState = HasHealthIF::HEALTHY) = 0;
2020-09-23 17:44:22 +02:00
virtual size_t getPrintSize() = 0;
2020-08-28 18:33:29 +02:00
virtual void printAll(uint8_t *pointer, size_t maxSize) = 0;
protected:
2020-09-23 17:44:22 +02:00
virtual ReturnValue_t iterate(
std::pair<object_id_t,HasHealthIF::HealthState> *value,
bool reset = false) = 0;
2020-08-28 18:33:29 +02:00
};
#endif /* FRAMEWORK_HEALTH_HEALTHTABLEIF_H_ */