31 lines
846 B
C++
31 lines
846 B
C++
#include "HousekeepingSet.h"
|
|
|
|
#include "GeneratesHousekeepingIF.h"
|
|
|
|
#ifdef FSFW_INTROSPECTION
|
|
HousekeepingSet::HousekeepingSet(GeneratesHousekeepingIF* owner, HousekeepingSetId_t id) {
|
|
helper = owner->getHelper();
|
|
helper->registerSet(this);
|
|
}
|
|
|
|
void HousekeepingSet::setEnum(EnumIF* theEnum) {
|
|
id = theEnum->getValue();
|
|
description = theEnum->getDescription();
|
|
}
|
|
#else
|
|
HousekeepingSet::HousekeepingSet(GeneratesHousekeepingIF* owner, HousekeepingSetId_t id) : id(id) {
|
|
helper = owner->getHelper();
|
|
helper->registerSet(this);
|
|
}
|
|
#endif
|
|
|
|
void HousekeepingSet::report(const Action* action) {
|
|
helper->reportHousekeeping(this, action);
|
|
}
|
|
|
|
void HousekeepingSet::registerParameter(ParameterIF* parameter) {
|
|
parameterList.push_back(parameter);
|
|
}
|
|
|
|
std::vector<ParameterIF*> const* HousekeepingSet::getParameters() { return ¶meterList; }
|