29 lines
881 B
C++
29 lines
881 B
C++
#ifndef FRAMEWORK_HEALTH_HEALTHTABLEIF_H_
|
|
#define FRAMEWORK_HEALTH_HEALTHTABLEIF_H_
|
|
|
|
#include "../health/ManagesHealthIF.h"
|
|
#include "../objectmanager/ObjectManagerIF.h"
|
|
#include "../returnvalues/HasReturnvaluesIF.h"
|
|
#include <map>
|
|
|
|
|
|
class HealthTableIF: public ManagesHealthIF {
|
|
// TODO: This is in the mission folder and not in the framework folder.
|
|
// delete it?
|
|
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;
|
|
virtual void printAll(uint8_t *pointer, size_t maxSize) = 0;
|
|
|
|
protected:
|
|
virtual ReturnValue_t iterate(std::pair<object_id_t,HasHealthIF::HealthState> *value, bool reset = false) = 0;
|
|
};
|
|
|
|
#endif /* FRAMEWORK_HEALTH_HEALTHTABLEIF_H_ */
|