2020-09-15 16:58:38 +02:00
|
|
|
#ifndef FSFW_IPC_MESSAGEQUEUESENDERIF_H_
|
|
|
|
#define FSFW_IPC_MESSAGEQUEUESENDERIF_H_
|
2018-07-12 16:29:32 +02:00
|
|
|
|
2020-09-15 16:47:01 +02:00
|
|
|
#include "../ipc/MessageQueueIF.h"
|
|
|
|
#include "../ipc/MessageQueueMessageIF.h"
|
2020-08-13 20:53:35 +02:00
|
|
|
#include "../objectmanager/ObjectManagerIF.h"
|
2018-07-12 16:29:32 +02:00
|
|
|
|
|
|
|
class MessageQueueSenderIF {
|
|
|
|
public:
|
|
|
|
|
|
|
|
virtual ~MessageQueueSenderIF() {}
|
|
|
|
|
|
|
|
/**
|
2020-09-15 16:47:01 +02:00
|
|
|
* Allows sending messages without actually "owning" a message queue.
|
2018-07-12 16:29:32 +02:00
|
|
|
* Not sure whether this is actually a good idea.
|
|
|
|
*/
|
|
|
|
static ReturnValue_t sendMessage(MessageQueueId_t sendTo,
|
2020-09-22 15:52:26 +02:00
|
|
|
MessageQueueMessageIF* message,
|
2020-09-15 16:47:01 +02:00
|
|
|
MessageQueueId_t sentFrom = MessageQueueIF::NO_QUEUE,
|
|
|
|
bool ignoreFault = false);
|
2018-07-12 16:29:32 +02:00
|
|
|
private:
|
|
|
|
MessageQueueSenderIF() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-09-15 16:58:38 +02:00
|
|
|
#endif /* FSFW_IPC_MESSAGEQUEUESENDERIF_H_ */
|