2021-12-03 15:37:49 +01:00
|
|
|
#ifndef FSFW_TCDISTRIBUTION_CFDPDISTRIBUTORIF_H_
|
|
|
|
#define FSFW_TCDISTRIBUTION_CFDPDISTRIBUTORIF_H_
|
|
|
|
|
|
|
|
#include "../ipc/MessageQueueSenderIF.h"
|
2022-02-02 10:29:30 +01:00
|
|
|
#include "../tmtcservices/AcceptsTelecommandsIF.h"
|
2021-12-03 15:37:49 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This interface allows CFDP Services to register themselves at a CFDP Distributor.
|
|
|
|
* @ingroup tc_distribution
|
|
|
|
*/
|
|
|
|
class CFDPDistributorIF {
|
2022-02-02 10:29:30 +01:00
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* The empty virtual destructor.
|
|
|
|
*/
|
2022-07-19 18:13:25 +02:00
|
|
|
virtual ~CFDPDistributorIF() = default;
|
2022-02-02 10:29:30 +01:00
|
|
|
/**
|
|
|
|
* With this method, Handlers can register themselves at the CFDP Distributor.
|
|
|
|
* @param handler A pointer to the registering Handler.
|
|
|
|
* @return - @c RETURN_OK on success,
|
|
|
|
* - @c RETURN_FAILED on failure.
|
|
|
|
*/
|
|
|
|
virtual ReturnValue_t registerHandler(AcceptsTelecommandsIF* handler) = 0;
|
2021-12-03 15:37:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FSFW_TCDISTRIBUTION_CFDPDISTRIBUTORIF_H_ */
|