fsfw/ipc/MessageQueueSenderIF.h

27 lines
668 B
C
Raw Normal View History

2020-09-15 16:58:38 +02:00
#ifndef FSFW_IPC_MESSAGEQUEUESENDERIF_H_
#define FSFW_IPC_MESSAGEQUEUESENDERIF_H_
2020-09-26 14:36:56 +02:00
#include "MessageQueueIF.h"
#include "MessageQueueMessageIF.h"
2020-08-13 20:53:35 +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,
2020-09-26 14:36:56 +02:00
MessageQueueMessageIF* message,
MessageQueueId_t sentFrom = MessageQueueIF::NO_QUEUE,
bool ignoreFault = false);
private:
MessageQueueSenderIF() {}
};
2020-09-15 16:58:38 +02:00
#endif /* FSFW_IPC_MESSAGEQUEUESENDERIF_H_ */