F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
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
c
f
h
i
l
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
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
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
t
u
w
Enumerations
b
c
d
e
f
g
h
i
m
o
p
q
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
a
b
c
f
g
h
l
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
f
i
m
s
u
Variables
_
c
f
i
l
p
t
Typedefs
Enumerations
Enumerator
a
c
d
f
i
m
p
r
s
t
w
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
FatalHandlerComponentAc.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title FatalHandlerComponentAc.hpp
3
// \author Auto-generated
4
// \brief hpp file for FatalHandler component base class
5
//
6
// \copyright
7
// Copyright 2009-2015, by the California Institute of Technology.
8
// ALL RIGHTS RESERVED. United States Government Sponsorship
9
// acknowledged.
10
//
11
// ======================================================================
12
13
#ifndef FATALHANDLER_COMP_HPP_
14
#define FATALHANDLER_COMP_HPP_
15
16
#include <
FpConfig.hpp
>
17
#include <
Fw/Port/InputSerializePort.hpp
>
18
#include <
Fw/Port/OutputSerializePort.hpp
>
19
#include <
Fw/Comp/ActiveComponentBase.hpp
>
20
#include <
Svc/Fatal/FatalEventPortAc.hpp
>
21
22
namespace
Svc
{
23
27
class
FatalHandlerComponentBase
:
28
public
Fw::PassiveComponentBase
29
{
30
31
// ----------------------------------------------------------------------
32
// Friend classes
33
// ----------------------------------------------------------------------
34
37
friend
class
FatalHandlerComponentBaseFriend
;
38
39
public
:
40
41
// ----------------------------------------------------------------------
42
// Getters for typed input ports
43
// ----------------------------------------------------------------------
44
49
Svc::InputFatalEventPort
*
get_FatalReceive_InputPort
(
50
NATIVE_INT_TYPE
portNum
51
);
52
53
PROTECTED
:
54
55
// ----------------------------------------------------------------------
56
// Component construction, initialization, and destruction
57
// ----------------------------------------------------------------------
58
59
#if FW_OBJECT_NAMES == 1
60
FatalHandlerComponentBase
(
63
const
char
* compName
64
);
65
#else
66
FatalHandlerComponentBase
(
void
);
69
#endif
70
73
void
init
(
74
NATIVE_INT_TYPE
instance = 0
75
);
76
79
virtual
~FatalHandlerComponentBase
(
void
);
80
81
PROTECTED
:
82
83
// ----------------------------------------------------------------------
84
// Handlers to implement for typed input ports
85
// ----------------------------------------------------------------------
86
88
//
89
virtual
void
FatalReceive_handler(
90
NATIVE_INT_TYPE
portNum
,
91
FwEventIdType
Id
92
) = 0;
93
94
PROTECTED
:
95
96
// ----------------------------------------------------------------------
97
// Port handler base-class functions for typed input ports.
98
// ----------------------------------------------------------------------
99
// Call these functions directly to bypass the corresponding ports.
100
// ----------------------------------------------------------------------
101
104
void
FatalReceive_handlerBase(
105
NATIVE_INT_TYPE
portNum
,
106
FwEventIdType
Id
107
);
108
109
PROTECTED
:
110
111
// ----------------------------------------------------------------------
112
// Getters for numbers of input ports
113
// ----------------------------------------------------------------------
114
119
NATIVE_INT_TYPE
getNum_FatalReceive_InputPorts(
void
);
120
121
122
// ----------------------------------------------------------------------
123
// Enumerations for number of ports
124
// ----------------------------------------------------------------------
125
126
enum
{
127
NUM_FATALRECEIVE_INPUT_PORTS
= 1,
128
};
129
130
PROTECTED
:
131
132
// ----------------------------------------------------------------------
133
// Event logging functions
134
// ----------------------------------------------------------------------
135
136
137
PRIVATE
:
138
139
// ----------------------------------------------------------------------
140
// Typed input ports
141
// ----------------------------------------------------------------------
142
145
Svc::InputFatalEventPort
m_FatalReceive_InputPort[
NUM_FATALRECEIVE_INPUT_PORTS
];
146
147
PRIVATE
:
148
149
// ----------------------------------------------------------------------
150
// Calls for messages received on typed input ports
151
// ----------------------------------------------------------------------
152
155
static
void
m_p_FatalReceive_in(
156
Fw::PassiveComponentBase
* callComp,
157
NATIVE_INT_TYPE
portNum
,
158
FwEventIdType
Id
159
);
160
161
162
163
};
164
165
}
// end namespace Svc
166
#endif
PRIVATE
#define PRIVATE
overridable private for unit testing
Definition:
BasicTypes.hpp:118
Svc::FatalHandlerComponentBase::FatalHandlerComponentBaseFriend
friend class FatalHandlerComponentBaseFriend
Definition:
FatalHandlerComponentAc.hpp:37
PROTECTED
#define PROTECTED
overridable protected for unit testing
Definition:
BasicTypes.hpp:114
InputSerializePort.hpp
Svc::FatalHandlerComponentBase
Auto-generated base for FatalHandler component.
Definition:
FatalHandlerComponentAc.hpp:29
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::ObjBase::init
void init(void)
Object initializer.
Definition:
ObjBase.cpp:26
Svc::FatalHandlerComponentBase::portNum
PRIVATE NATIVE_INT_TYPE portNum
Definition:
FatalHandlerComponentAc.hpp:157
ActiveComponentBase.hpp
Svc::FatalHandlerComponentBase::Id
PROTECTED FwEventIdType Id
Definition:
FatalHandlerComponentAc.hpp:92
Svc::FatalHandlerComponentBase::get_FatalReceive_InputPort
Svc::InputFatalEventPort * get_FatalReceive_InputPort(NATIVE_INT_TYPE portNum)
Definition:
FatalHandlerComponentAc.cpp:29
FatalEventPortAc.hpp
FpConfig.hpp
ISF configuration file.
Svc
Definition:
ActiveLoggerComponentAc.cpp:22
Svc::InputFatalEventPort
Definition:
FatalEventPortAc.hpp:27
Svc::FatalHandlerComponentBase::~FatalHandlerComponentBase
virtual ~FatalHandlerComponentBase(void)
Definition:
FatalHandlerComponentAc.cpp:93
FwEventIdType
#define FwEventIdType
Type representation for a event id.
Definition:
FpConfig.hpp:70
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Svc::FatalHandlerComponentBase::NUM_FATALRECEIVE_INPUT_PORTS
@ NUM_FATALRECEIVE_INPUT_PORTS
Definition:
FatalHandlerComponentAc.hpp:127
OutputSerializePort.hpp
build-fprime-automatic-native
F-Prime
Svc
FatalHandler
FatalHandlerComponentAc.hpp
Generated by
1.8.19