F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
Loading...
Searching...
No Matches
FatalHandlerComponentAc.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title FatalHandlerComponentAc.hpp
3// \author Generated by fpp-to-cpp
4// \brief hpp file for FatalHandler component base class
5// ======================================================================
6
7#ifndef Svc_FatalHandlerComponentAc_HPP
8#define Svc_FatalHandlerComponentAc_HPP
9
10#include "FpConfig.hpp"
15
16namespace Svc {
17
24 {
25
26 // ----------------------------------------------------------------------
27 // Friend classes
28 // ----------------------------------------------------------------------
29
32
33 PROTECTED:
34
35 // ----------------------------------------------------------------------
36 // Constants
37 // ----------------------------------------------------------------------
38
40 enum {
42 };
43
44 public:
45
46 // ----------------------------------------------------------------------
47 // Component initialization
48 // ----------------------------------------------------------------------
49
51 void init(
52 FwEnumStoreType instance = 0
53 );
54
55 public:
56
57 // ----------------------------------------------------------------------
58 // Getters for typed input ports
59 // ----------------------------------------------------------------------
60
65 FwIndexType portNum
66 );
67
68 PROTECTED:
69
70 // ----------------------------------------------------------------------
71 // Component construction and destruction
72 // ----------------------------------------------------------------------
73
76 const char* compName = ""
77 );
78
81
82 PROTECTED:
83
84 // ----------------------------------------------------------------------
85 // Getters for numbers of typed input ports
86 // ----------------------------------------------------------------------
87
92
93 PROTECTED:
94
95 // ----------------------------------------------------------------------
96 // Handlers to implement for typed input ports
97 // ----------------------------------------------------------------------
98
101 FwIndexType portNum,
102 FwEventIdType Id
103 ) = 0;
104
105 PROTECTED:
106
107 // ----------------------------------------------------------------------
108 // Port handler base-class functions for typed input ports
109 //
110 // Call these functions directly to bypass the corresponding ports
111 // ----------------------------------------------------------------------
112
115 FwIndexType portNum,
116 FwEventIdType Id
117 );
118
119 PRIVATE:
120
121 // ----------------------------------------------------------------------
122 // Calls for messages received on typed input ports
123 // ----------------------------------------------------------------------
124
126 static void m_p_FatalReceive_in(
127 Fw::PassiveComponentBase* callComp,
128 FwIndexType portNum,
129 FwEventIdType Id
130 );
131
132 PRIVATE:
133
134 // ----------------------------------------------------------------------
135 // Typed input ports
136 // ----------------------------------------------------------------------
137
140
141 };
142
143}
144
145#endif
I32 FwEnumStoreType
Definition FpConfig.h:64
U32 FwEventIdType
Definition FpConfig.h:103
PlatformIndexType FwIndexType
Definition FpConfig.h:25
C++-compatible configuration header for fprime configuration.
void init()
Object initializer.
Definition ObjBase.cpp:27
Auto-generated base for FatalHandler component.
Svc::InputFatalEventPort * get_FatalReceive_InputPort(FwIndexType portNum)
void FatalReceive_handlerBase(FwIndexType portNum, FwEventIdType Id)
Handler base-class function for input port FatalReceive.
virtual void FatalReceive_handler(FwIndexType portNum, FwEventIdType Id)=0
Handler for input port FatalReceive.
virtual ~FatalHandlerComponentBase()
Destroy FatalHandlerComponentBase object.
friend class FatalHandlerComponentBaseFriend
Friend class for white-box testing.