F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
11 #ifndef FW_QUEUED_COMPONENT_BASE_HPP
12 #define FW_QUEUED_COMPONENT_BASE_HPP
39 #if FW_OBJECT_TO_STRING == 1
virtual ~QueuedComponentBase()
Destructor.
#define PRIVATE
overridable private for unit testing
void incNumMsgDropped(void)
increment the number of messages dropped
virtual MsgDispatchStatus doDispatch(void)=0
method to dispatch a single message in the queue.
Os::Queue m_queue
queue object for active component
#define PROTECTED
overridable protected for unit testing
void init(void)
Object initializer.
@ MSG_DISPATCH_OK
Dispatch was normal.
NATIVE_INT_TYPE getNumMsgsDropped(void)
return number of messages dropped
@ MSG_DISPATCH_ERROR
Errors dispatching messages.
@ MSG_DISPATCH_EXIT
A message was sent requesting an exit of the loop.
@ MSG_DISPATCH_EMPTY
No more messages in the queue.
int NATIVE_INT_TYPE
native integer type declaration
Os::Queue::QueueStatus createQueue(NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize)