42 lines
1.0 KiB
C++
42 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <fsfw/action/Action.h>
|
|
#include <fsfw/introspection/Enum.h>
|
|
#include <fsfw/introspection/HasTmTcParametersIF.h>
|
|
#include <fsfw/introspection/ParameterIF.h>
|
|
#include <fsfw/serialize/SerializeIF.h>
|
|
|
|
#include <cstdint>
|
|
|
|
class HousekeepingHelper;
|
|
class GeneratesHousekeepingIF;
|
|
|
|
using HousekeepingSetId_t = uint32_t;
|
|
|
|
class HousekeepingSet : public HasTmTcParametersIF, public SerializeIF {
|
|
friend class ParameterIF;
|
|
|
|
public:
|
|
#ifdef FSFW_INTROSPECTION
|
|
HousekeepingSet(GeneratesHousekeepingIF* owner);
|
|
void setEnum(EnumIF* theEnum);
|
|
#else
|
|
HousekeepingSet(GeneratesHousekeepingIF* owner, HousekeepingSetId_t id);
|
|
#endif
|
|
|
|
HousekeepingSetId_t getId() const { return id; }
|
|
|
|
void report(const Action* action = nullptr);
|
|
|
|
std::vector<ParameterIF*> const* getParameters() override;
|
|
|
|
protected:
|
|
HousekeepingHelper* helper;
|
|
HousekeepingSetId_t id;
|
|
#ifdef FSFW_INTROSPECTION
|
|
const char* description;
|
|
#endif
|
|
std::vector<ParameterIF*> parameterList;
|
|
|
|
void registerParameter(ParameterIF* parameter) override;
|
|
}; |