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);
|
||
|
}
|