F´ Flight Software - C/C++ Documentation devel
A framework for building embedded system applications to NASA flight quality standards.
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 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 NATIVE_INT_TYPE instance = 0
53 );
54
55 public:
56
57 // ----------------------------------------------------------------------
58 // Getters for typed input ports
59 // ----------------------------------------------------------------------
60
65 NATIVE_INT_TYPE 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 NATIVE_INT_TYPE 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 NATIVE_INT_TYPE 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 NATIVE_INT_TYPE portNum,
129 FwEventIdType Id
130 );
131
132 PRIVATE:
133
134 // ----------------------------------------------------------------------
135 // Typed input ports
136 // ----------------------------------------------------------------------
137
140
141 };
142
143}
144
145#endif
PlatformIntType NATIVE_INT_TYPE
Definition BasicTypes.h:51
U32 FwEventIdType
Definition FpConfig.h:62
C++-compatible configuration header for fprime configuration.
void init()
Object initializer.
Definition ObjBase.cpp:27
Auto-generated base for FatalHandler component.
virtual void FatalReceive_handler(NATIVE_INT_TYPE portNum, FwEventIdType Id)=0
Handler for input port FatalReceive.
NATIVE_INT_TYPE getNum_FatalReceive_InputPorts() const
Svc::InputFatalEventPort * get_FatalReceive_InputPort(NATIVE_INT_TYPE portNum)
FatalHandlerComponentBase(const char *compName="")
Construct FatalHandlerComponentBase object.
virtual ~FatalHandlerComponentBase()
Destroy FatalHandlerComponentBase object.
friend class FatalHandlerComponentBaseFriend
Friend class for white-box testing.
void FatalReceive_handlerBase(NATIVE_INT_TYPE portNum, FwEventIdType Id)
Handler base-class function for input port FatalReceive.