Ulrich Mohr
d766469f1e
Some checks failed
fsfw/fsfw/pipeline/head There was a failure building this commit
17 lines
423 B
C++
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);
|
|
}
|