5 #ifndef OS_STUB_QUEUE_HPP
6 #define OS_STUB_QUEUE_HPP
uint8_t U8
8-bit unsigned integer
PlatformSizeType FwSizeType
PlatformQueuePriorityType FwQueuePriorityType
QueueHandle parent class.
Status
status returned from the queue send function
stub queue implementation with injectable statuses
QueueHandle * getHandle() override
return the underlying queue handle (implementation specific)
Status receive(U8 *destination, FwSizeType capacity, BlockingType blockType, FwSizeType &actualSize, FwQueuePriorityType &priority) override
receive a message from the queue
FwSizeType getMessagesAvailable() const override
get number of messages available
Status send(const U8 *buffer, FwSizeType size, FwQueuePriorityType priority, BlockingType blockType) override
send a message into the queue
StubQueue & operator=(const QueueInterface &other) override=delete
assignment operator is forbidden
StubQueue(const QueueInterface *other)=delete
copy constructor is forbidden
Status create(const Fw::StringBase &name, FwSizeType depth, FwSizeType messageSize) override
create queue storage
virtual ~StubQueue()=default
default queue destructor
StubQueue(const QueueInterface &other)=delete
copy constructor is forbidden
FwSizeType getMessageHighWaterMark() const override
get maximum messages stored at any given time
StubQueue()=default
default queue interface constructor