1
0
forked from fsfw/fsfw

health update

This commit is contained in:
2020-10-10 17:49:50 +02:00
parent 837a18135e
commit bc0402faf7
3 changed files with 31 additions and 25 deletions

View File

@ -6,8 +6,6 @@
#include "../ipc/MutexIF.h"
#include <map>
typedef std::map<object_id_t, HasHealthIF::HealthState> HealthMap;
using HealthEntry = std::pair<object_id_t, HasHealthIF::HealthState>;
class HealthTable: public HealthTableIF, public SystemObject {
public:
@ -28,6 +26,9 @@ public:
virtual HasHealthIF::HealthState getHealth(object_id_t) override;
protected:
using HealthMap = std::map<object_id_t, HasHealthIF::HealthState>;
using HealthEntry = std::pair<object_id_t, HasHealthIF::HealthState>;
MutexIF* mutex;
HealthMap healthMap;