2023-07-11 14:57:17 +02:00
|
|
|
#include "HousekeepingSet.h"
|
|
|
|
|
|
|
|
#include "GeneratesHousekeepingIF.h"
|
|
|
|
|
|
|
|
#ifdef FSFW_INTROSPECTION
|
|
|
|
HousekeepingSet::HousekeepingSet(GeneratesHousekeepingIF* owner, HousekeepingSetId_t id) {
|
|
|
|
owner->getHelper()->registerSet(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
void HousekeepingSet::setEnum(EnumIF* theEnum) {
|
|
|
|
id = theEnum->getValue();
|
|
|
|
description = theEnum->getDescription();
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
HousekeepingSet::HousekeepingSet(GeneratesHousekeepingIF* owner, HousekeepingSetId_t id) : id(id) {
|
|
|
|
owner->getHelper()->registerSet(this);
|
|
|
|
}
|
|
|
|
#endif
|
2023-07-12 12:52:07 +02:00
|
|
|
|
|
|
|
void HousekeepingSet::registerParameter(ParameterIF* parameter) {
|
|
|
|
parameterList.push_back(parameter);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
std::vector<ParameterIF*> const* HousekeepingSet::getParameters() { return ¶meterList; }
|