F´ Flight Software - C/C++ Documentation  NASA-v1.5.0
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 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>
21 
22 namespace Svc {
23 
29  {
30 
31  // ----------------------------------------------------------------------
32  // Friend classes
33  // ----------------------------------------------------------------------
34 
38 
39  public:
40 
41  // ----------------------------------------------------------------------
42  // Getters for typed input ports
43  // ----------------------------------------------------------------------
44 
51  );
52 
54 
55  // ----------------------------------------------------------------------
56  // Component construction, initialization, and destruction
57  // ----------------------------------------------------------------------
58 
59 #if FW_OBJECT_NAMES == 1
63  const char* compName
64  );
65 #else
69 #endif
70 
73  void init(
74  NATIVE_INT_TYPE instance = 0
75  );
76 
79  virtual ~FatalHandlerComponentBase(void);
80 
82 
83  // ----------------------------------------------------------------------
84  // Handlers to implement for typed input ports
85  // ----------------------------------------------------------------------
86 
88  //
89  virtual void FatalReceive_handler(
92  ) = 0;
93 
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(
107  );
108 
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 {
128  };
129 
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 
148 
149  // ----------------------------------------------------------------------
150  // Calls for messages received on typed input ports
151  // ----------------------------------------------------------------------
152 
155  static void m_p_FatalReceive_in(
156  Fw::PassiveComponentBase* callComp,
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