![]() |
F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
|
#include <Fw/Comp/QueuedComponentBase.hpp>
Public Types | |
| enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
Public Member Functions | |
| void | deinit () override |
| Allows de-initialization on teardown. More... | |
Public Member Functions inherited from Fw::PassiveComponentBase | |
| void | setIdBase (const FwIdType) |
| Set the ID base. More... | |
| FwIdType | getIdBase () const |
Protected Member Functions | |
| QueuedComponentBase (const char *name) | |
| Constructor. More... | |
| virtual | ~QueuedComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| initialization function More... | |
| Os::Queue::Status | createQueue (FwSizeType depth, FwSizeType msgSize) |
| virtual MsgDispatchStatus | doDispatch ()=0 |
| method to dispatch a single message in the queue. More... | |
| MsgDispatchStatus | dispatchAvailableMessages () |
| dispatches all messages currently in the queue, returning status of the dispatch More... | |
| FwSizeType | getNumMsgsDropped () |
| return number of messages dropped More... | |
| void | incNumMsgDropped () |
| increment the number of messages dropped More... | |
Protected Member Functions inherited from Fw::PassiveComponentBase | |
| PassiveComponentBase (const char *name) | |
| Named constructor. More... | |
| virtual | ~PassiveComponentBase () |
| Destructor. More... | |
| void | init (FwEnumStoreType instance) |
| Initialization function. More... | |
| FwEnumStoreType | getInstance () const |
Protected Member Functions inherited from Fw::ObjBase | |
| ObjBase (const char *name) | |
| ObjBase constructor. More... | |
| virtual | ~ObjBase () |
| Destructor. More... | |
| void | init () |
| Object initializer. More... | |
Protected Attributes | |
| Os::Queue | m_queue |
| queue object for active component More... | |
Definition at line 20 of file QueuedComponentBase.hpp.
Definition at line 23 of file QueuedComponentBase.hpp.
|
protected |
Constructor.
Definition at line 10 of file QueuedComponentBase.cpp.
|
protectedvirtual |
Destructor.
Definition at line 12 of file QueuedComponentBase.cpp.
|
protected |
Definition at line 28 of file QueuedComponentBase.cpp.
|
overridevirtual |
Allows de-initialization on teardown.
Reimplemented from Fw::PassiveComponentBase.
Reimplemented in Svc::FileDownlink.
Definition at line 18 of file QueuedComponentBase.cpp.
|
protected |
dispatches all messages currently in the queue, returning status of the dispatch
This method will dispatch once for each of the messages in the queue at the time of the call. It will continue to dispatch until all messages have been dispatched or a dispatch returns a status other than MSG_DISPATCH_OK.
Definition at line 46 of file QueuedComponentBase.cpp.
|
protectedpure virtual |
method to dispatch a single message in the queue.
Implemented in Svc::HealthComponentBase.
|
protected |
return number of messages dropped
Definition at line 38 of file QueuedComponentBase.cpp.
|
protected |
increment the number of messages dropped
Definition at line 42 of file QueuedComponentBase.cpp.
|
protected |
initialization function
Definition at line 14 of file QueuedComponentBase.cpp.
|
protected |
queue object for active component
Definition at line 35 of file QueuedComponentBase.hpp.