2016-06-15 23:48:41 +02:00
|
|
|
#ifndef PUSDISTRIBUTORIF_H_
|
|
|
|
#define PUSDISTRIBUTORIF_H_
|
|
|
|
|
2020-08-13 20:53:35 +02:00
|
|
|
#include "../tmtcservices/AcceptsTelecommandsIF.h"
|
|
|
|
#include "../ipc/MessageQueueSenderIF.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
/**
|
|
|
|
* This interface allows PUS Services to register themselves at a PUS Distributor.
|
|
|
|
* \ingroup tc_distribution
|
|
|
|
*/
|
|
|
|
class PUSDistributorIF {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* The empty virtual destructor.
|
|
|
|
*/
|
|
|
|
virtual ~PUSDistributorIF() {
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* With this method, Services can register themselves at the PUS Distributor.
|
|
|
|
* @param service A pointer to the registering Service.
|
|
|
|
* @return - \c RETURN_OK on success,
|
|
|
|
* - \c RETURN_FAILED on failure.
|
|
|
|
*/
|
|
|
|
virtual ReturnValue_t registerService( AcceptsTelecommandsIF* service ) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PUSDISTRIBUTORIF_H_ */
|