32 lines
1.3 KiB
C++
32 lines
1.3 KiB
C++
#ifndef MISSION_CFDP_CFDPFAULTHANDLER_H_
|
|
#define MISSION_CFDP_CFDPFAULTHANDLER_H_
|
|
|
|
#include "fsfw/cfdp.h"
|
|
|
|
namespace cfdp {
|
|
|
|
class EiveFaultHandler : public cfdp::FaultHandlerBase {
|
|
public:
|
|
void noticeOfSuspensionCb(cfdp::TransactionId& id, cfdp::ConditionCode code) override {
|
|
sif::warning << "Notice of suspension detected for transaction " << id
|
|
<< " with condition code: " << cfdp::getConditionCodeString(code) << std::endl;
|
|
}
|
|
void noticeOfCancellationCb(cfdp::TransactionId& id, cfdp::ConditionCode code) override {
|
|
sif::warning << "Notice of suspension detected for transaction " << id
|
|
<< " with condition code: " << cfdp::getConditionCodeString(code) << std::endl;
|
|
}
|
|
void abandonCb(cfdp::TransactionId& id, cfdp::ConditionCode code) override {
|
|
sif::warning << "Transaction " << id
|
|
<< " was abandoned, condition code : " << cfdp::getConditionCodeString(code)
|
|
<< std::endl;
|
|
}
|
|
void ignoreCb(cfdp::TransactionId& id, cfdp::ConditionCode code) override {
|
|
sif::warning << "Fault ignored for transaction " << id
|
|
<< ", condition code: " << cfdp::getConditionCodeString(code) << std::endl;
|
|
}
|
|
};
|
|
|
|
} // namespace cfdp
|
|
|
|
#endif /* MISSION_CFDP_CFDPFAULTHANDLER_H_ */
|