F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
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 
11 #include "Fw/FPrimeBasicTypes.hpp"
15 
16 namespace Svc {
17 
24  {
25 
26  // ----------------------------------------------------------------------
27  // Friend classes
28  // ----------------------------------------------------------------------
29 
31  friend class FatalHandlerTesterBase;
33  friend class FatalHandlerTester;
34 
35  protected:
36 
37  // ----------------------------------------------------------------------
38  // Constants
39  // ----------------------------------------------------------------------
40 
42  enum {
44  };
45 
46  public:
47 
48  // ----------------------------------------------------------------------
49  // Component initialization
50  // ----------------------------------------------------------------------
51 
53  void init(
54  FwEnumStoreType instance = 0
55  );
56 
57  public:
58 
59  // ----------------------------------------------------------------------
60  // Getters for typed input ports
61  // ----------------------------------------------------------------------
62 
67  FwIndexType portNum
68  );
69 
70  protected:
71 
72  // ----------------------------------------------------------------------
73  // Component construction and destruction
74  // ----------------------------------------------------------------------
75 
78  const char* compName = ""
79  );
80 
83 
84  protected:
85 
86  // ----------------------------------------------------------------------
87  // Getters for numbers of typed input ports
88  // ----------------------------------------------------------------------
89 
95  }
96 
97  protected:
98 
99  // ----------------------------------------------------------------------
100  // Handlers to implement for typed input ports
101  // ----------------------------------------------------------------------
102 
104  virtual void FatalReceive_handler(
105  FwIndexType portNum,
106  FwEventIdType Id
107  ) = 0;
108 
109  protected:
110 
111  // ----------------------------------------------------------------------
112  // Port handler base-class functions for typed input ports
113  //
114  // Call these functions directly to bypass the corresponding ports
115  // ----------------------------------------------------------------------
116 
119  FwIndexType portNum,
120  FwEventIdType Id
121  );
122 
123  private:
124 
125  // ----------------------------------------------------------------------
126  // Calls for messages received on typed input ports
127  // ----------------------------------------------------------------------
128 
130  static void m_p_FatalReceive_in(
131  Fw::PassiveComponentBase* callComp,
132  FwIndexType portNum,
133  FwEventIdType Id
134  );
135 
136  private:
137 
138  // ----------------------------------------------------------------------
139  // Typed input ports
140  // ----------------------------------------------------------------------
141 
143  Svc::InputFatalEventPort m_FatalReceive_InputPort[NUM_FATALRECEIVE_INPUT_PORTS];
144 
145  };
146 
147 }
148 
149 #endif
virtual ~FatalHandlerComponentBase()
Destroy FatalHandlerComponentBase object.
Svc::InputFatalEventPort * get_FatalReceive_InputPort(FwIndexType portNum)
I32 FwEnumStoreType
static constexpr FwIndexType getNum_FatalReceive_InputPorts()
void init()
Object initializer.
Definition: ObjBase.cpp:24
FwIdType FwEventIdType
The type of an event identifier.
Auto-generated base for FatalHandler component.
friend class FatalHandlerTester
Friend class tester implementation to support white-box testing.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
virtual void FatalReceive_handler(FwIndexType portNum, FwEventIdType Id)=0
Handler for input port FatalReceive.
FatalHandlerComponentBase(const char *compName="")
Construct FatalHandlerComponentBase object.
void FatalReceive_handlerBase(FwIndexType portNum, FwEventIdType Id)
Handler base-class function for input port FatalReceive.
friend class FatalHandlerTesterBase
Friend class tester to support autocoded test harness.