2020-09-15 17:02:31 +02:00
|
|
|
#ifndef FSFW_IPC_MESSAGEQUEUESENDERIF_H_
|
2020-09-15 17:15:22 +02:00
|
|
|
#define FSFW_IPC_MESSAGEQUEUESENDERIF_H_
|
2020-08-28 18:33:29 +02:00
|
|
|
|
2020-12-13 21:54:46 +01:00
|
|
|
#include "MessageQueueIF.h"
|
|
|
|
#include "MessageQueueMessageIF.h"
|
2020-08-28 18:33:29 +02:00
|
|
|
#include "../objectmanager/ObjectManagerIF.h"
|
|
|
|
|
|
|
|
class MessageQueueSenderIF {
|
|
|
|
public:
|
|
|
|
|
|
|
|
virtual ~MessageQueueSenderIF() {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Allows sending messages without actually "owning" a message queue.
|
|
|
|
* Not sure whether this is actually a good idea.
|
|
|
|
*/
|
|
|
|
static ReturnValue_t sendMessage(MessageQueueId_t sendTo,
|
|
|
|
MessageQueueMessageIF* message,
|
2020-09-15 16:42:17 +02:00
|
|
|
MessageQueueId_t sentFrom = MessageQueueIF::NO_QUEUE,
|
2020-08-28 18:33:29 +02:00
|
|
|
bool ignoreFault = false);
|
|
|
|
private:
|
|
|
|
MessageQueueSenderIF() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-09-15 17:02:31 +02:00
|
|
|
#endif /* FSFW_IPC_MESSAGEQUEUESENDERIF_H_ */
|