F´ Flight Software - C/C++ Documentation
devel
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 } |
Protected Member Functions | |
QueuedComponentBase (const char *name) | |
Constructor. More... | |
virtual | ~QueuedComponentBase () |
Destructor. More... | |
void | init (NATIVE_INT_TYPE 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... | |
NATIVE_INT_TYPE | 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 (NATIVE_INT_TYPE instance) |
Initialization function. More... | |
NATIVE_INT_TYPE | 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... | |
Additional Inherited Members | |
Public Member Functions inherited from Fw::PassiveComponentBase | |
void | setIdBase (const U32) |
Set the ID base. More... | |
U32 | getIdBase () const |
Definition at line 21 of file QueuedComponentBase.hpp.
Definition at line 25 of file QueuedComponentBase.hpp.
|
protected |
Constructor.
Definition at line 10 of file QueuedComponentBase.cpp.
|
protectedvirtual |
Destructor.
Definition at line 14 of file QueuedComponentBase.cpp.
|
protected |
Definition at line 33 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 46 of file QueuedComponentBase.cpp.
|
protected |
increment the number of messages dropped
Definition at line 50 of file QueuedComponentBase.cpp.
|
protected |
initialization function
Definition at line 18 of file QueuedComponentBase.cpp.
|
protected |
queue object for active component
Definition at line 36 of file QueuedComponentBase.hpp.