F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
b
d
e
f
g
h
i
l
m
n
p
q
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
Functions
f
i
m
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
f
m
p
r
s
t
Macros
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
QueuedComponentBase.hpp
Go to the documentation of this file.
1
/*
2
* ActiveComponentBase.hpp
3
*
4
* Created on: Aug 14, 2012
5
* Author: tcanham
6
*/
7
8
/*
9
* Description:
10
*/
11
#ifndef FW_QUEUED_COMPONENT_BASE_HPP
12
#define FW_QUEUED_COMPONENT_BASE_HPP
13
14
#include <
Fw/Comp/PassiveComponentBase.hpp
>
15
#include <
Os/Queue.hpp
>
16
#include <
Os/Task.hpp
>
17
#include <
FpConfig.hpp
>
18
19
20
namespace
Fw
{
21
class
QueuedComponentBase
:
public
PassiveComponentBase
{
22
public
:
23
24
// Note: Had to make MsgDispatchStatus public for LLVM.
25
typedef
enum
{
26
MSG_DISPATCH_OK
,
27
MSG_DISPATCH_EMPTY
,
28
MSG_DISPATCH_ERROR
,
29
MSG_DISPATCH_EXIT
30
}
MsgDispatchStatus
;
31
32
PROTECTED:
33
QueuedComponentBase
(
const
char
* name);
34
virtual
~QueuedComponentBase
();
35
void
init
(
NATIVE_INT_TYPE
instance);
36
Os::Queue
m_queue
;
37
Os::Queue::QueueStatus
createQueue
(
NATIVE_INT_TYPE
depth,
NATIVE_INT_TYPE
msgSize);
38
virtual
MsgDispatchStatus
doDispatch
(
void
)=0;
39
#if FW_OBJECT_TO_STRING == 1
40
virtual
void
toString(
char
* str,
NATIVE_INT_TYPE
size);
41
#endif
42
NATIVE_INT_TYPE
getNumMsgsDropped
(
void
);
43
void
incNumMsgDropped
(
void
);
44
PRIVATE:
45
NATIVE_INT_TYPE
m_msgsDropped;
46
};
47
48
}
49
#endif
PassiveComponentBase.hpp
Fw::QueuedComponentBase::~QueuedComponentBase
virtual ~QueuedComponentBase()
Destructor.
Definition:
QueuedComponentBase.cpp:14
Fw::QueuedComponentBase::incNumMsgDropped
void incNumMsgDropped(void)
increment the number of messages dropped
Definition:
QueuedComponentBase.cpp:46
Fw::QueuedComponentBase::doDispatch
virtual MsgDispatchStatus doDispatch(void)=0
method to dispatch a single message in the queue.
Fw::QueuedComponentBase::QueuedComponentBase
QueuedComponentBase(const char *name)
Constructor.
Definition:
QueuedComponentBase.cpp:10
Os::Queue::QueueStatus
QueueStatus
Definition:
Queue.hpp:27
Fw::QueuedComponentBase::m_queue
Os::Queue m_queue
queue object for active component
Definition:
QueuedComponentBase.hpp:36
Task.hpp
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::ObjBase::init
void init(void)
Object initializer.
Definition:
ObjBase.cpp:26
Fw::QueuedComponentBase::MSG_DISPATCH_OK
@ MSG_DISPATCH_OK
Dispatch was normal.
Definition:
QueuedComponentBase.hpp:26
Fw::QueuedComponentBase::getNumMsgsDropped
NATIVE_INT_TYPE getNumMsgsDropped(void)
return number of messages dropped
Definition:
QueuedComponentBase.cpp:42
Fw::QueuedComponentBase::MsgDispatchStatus
MsgDispatchStatus
Definition:
QueuedComponentBase.hpp:25
Fw::QueuedComponentBase::MSG_DISPATCH_ERROR
@ MSG_DISPATCH_ERROR
Errors dispatching messages.
Definition:
QueuedComponentBase.hpp:28
Fw::QueuedComponentBase
Definition:
QueuedComponentBase.hpp:21
FpConfig.hpp
ISF configuration file.
Fw::QueuedComponentBase::MSG_DISPATCH_EXIT
@ MSG_DISPATCH_EXIT
A message was sent requesting an exit of the loop.
Definition:
QueuedComponentBase.hpp:29
Fw::QueuedComponentBase::MSG_DISPATCH_EMPTY
@ MSG_DISPATCH_EMPTY
No more messages in the queue.
Definition:
QueuedComponentBase.hpp:27
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Os::Queue
Definition:
Queue.hpp:24
Fw::QueuedComponentBase::createQueue
Os::Queue::QueueStatus createQueue(NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize)
Definition:
QueuedComponentBase.cpp:29
Fw
Definition:
Buffer.cpp:21
Queue.hpp
Fw
Comp
QueuedComponentBase.hpp
Generated by
1.8.17