Robin Mueller
ff6de8e378
Some checks failed
fsfw/fsfw/pipeline/pr-development There was a failure building this commit
48 lines
1.7 KiB
C++
48 lines
1.7 KiB
C++
#ifndef FSFW_TMTCSERVICES_VERIFICATIONREPORTER_H_
|
|
#define FSFW_TMTCSERVICES_VERIFICATIONREPORTER_H_
|
|
|
|
#include "PusVerificationReport.h"
|
|
#include "VerificationReporterIF.h"
|
|
#include "fsfw/objectmanager/ObjectManagerIF.h"
|
|
#include "fsfw/objectmanager/SystemObject.h"
|
|
#include "fsfw/tmtcpacket/pus/tc/PusTcCreator.h"
|
|
#include "fsfw/tmtcservices/AcceptsVerifyMessageIF.h"
|
|
|
|
namespace Factory {
|
|
void setStaticFrameworkObjectIds();
|
|
}
|
|
|
|
/**
|
|
* @brief This helper object is used to forward verification messages
|
|
* which are generated by the Flight Software Framework.
|
|
* @details
|
|
* The messages can be relayed to an arbitrary object, for example a dedicated
|
|
* Verification Reporter. The destination is set by setting the static framework
|
|
* Id VerificationReporter::messageReceiver. The default verification reporter
|
|
* will be the PUS service 1, which sends verification messages according
|
|
* to the PUS standard.
|
|
*
|
|
*/
|
|
class VerificationReporter : public SystemObject, public VerificationReporterIF {
|
|
friend void Factory::setStaticFrameworkObjectIds();
|
|
|
|
public:
|
|
explicit VerificationReporter(object_id_t objectId = DEFAULT_REPORTER,
|
|
AcceptsVerifyMessageIF* receiver = nullptr);
|
|
~VerificationReporter() override;
|
|
|
|
void setReceiver(AcceptsVerifyMessageIF& receiver);
|
|
|
|
ReturnValue_t sendSuccessReport(VerifSuccessParams params) override;
|
|
ReturnValue_t sendFailureReport(VerifFailureParams params) override;
|
|
|
|
static object_id_t DEFAULT_REPORTER;
|
|
static object_id_t DEFAULT_RECEIVER;
|
|
ReturnValue_t initialize() override;
|
|
|
|
private:
|
|
MessageQueueId_t acknowledgeQueue = MessageQueueIF::NO_QUEUE;
|
|
};
|
|
|
|
#endif /* FSFW_TMTCSERVICES_VERIFICATIONREPORTER_H_ */
|