fsfw/src/fsfw/ipc/MessageQueueSenderIF.h
Robin Mueller d8b6cb39ac
Some checks failed
fsfw/fsfw/pipeline/head There was a failure building this commit
various bugfixes and improvements
2022-07-21 11:34:11 +02:00

22 lines
742 B
C++

#ifndef FSFW_IPC_MESSAGEQUEUESENDERIF_H_
#define FSFW_IPC_MESSAGEQUEUESENDERIF_H_
#include "MessageQueueIF.h"
#include "MessageQueueMessageIF.h"
#include "fsfw/objectmanager/ObjectManagerIF.h"
class MessageQueueSenderIF {
public:
virtual ~MessageQueueSenderIF() = default;
MessageQueueSenderIF() = delete;
/**
* 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);
};
#endif /* FSFW_IPC_MESSAGEQUEUESENDERIF_H_ */