fsfw/src/fsfw/ipc/MessageQueueSenderIF.h

25 lines
737 B
C
Raw Normal View History

2020-09-15 16:58:38 +02:00
#ifndef FSFW_IPC_MESSAGEQUEUESENDERIF_H_
#define FSFW_IPC_MESSAGEQUEUESENDERIF_H_
2022-02-02 10:29:30 +01:00
#include "../objectmanager/ObjectManagerIF.h"
2020-09-26 14:36:56 +02:00
#include "MessageQueueIF.h"
#include "MessageQueueMessageIF.h"
class MessageQueueSenderIF {
2022-02-02 10:29:30 +01:00
public:
virtual ~MessageQueueSenderIF() {}
2022-02-02 10:29:30 +01:00
/**
* 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,
MessageQueueId_t sentFrom = MessageQueueIF::NO_QUEUE,
bool ignoreFault = false);
2022-02-02 10:29:30 +01:00
private:
MessageQueueSenderIF() {}
};
2020-09-15 16:58:38 +02:00
#endif /* FSFW_IPC_MESSAGEQUEUESENDERIF_H_ */