fsfw/src/fsfw/housekeeping/HousekeepingHelper.cpp
Ulrich Mohr d766469f1e
Some checks failed
fsfw/fsfw/pipeline/head There was a failure building this commit
working on HK and Dataset TM
2023-07-11 14:57:17 +02:00

17 lines
423 B
C++

#include "HousekeepingHelper.h"
HousekeepingHelper::HousekeepingHelper() {}
const HousekeepingSet* HousekeepingHelper::getHousekeepingSet(HousekeepingSetId_t id) {
auto iter = housekeepingSets.find(id);
if (iter == housekeepingSets.end()) {
return nullptr;
}
return iter->second;
}
void HousekeepingHelper::registerSet(HousekeepingSet* set) {
auto id = set->getId();
housekeepingSets.emplace(id, set);
}