F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
AssertFatalAdapterComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title AssertFatalAdapterComponentAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for AssertFatalAdapter component base class
5 // ======================================================================
6 
7 #ifndef Svc_AssertFatalAdapterComponentAc_HPP
8 #define Svc_AssertFatalAdapterComponentAc_HPP
9 
10 #include "FpConfig.hpp"
12 #include "Fw/Log/LogPortAc.hpp"
13 #include "Fw/Log/LogString.hpp"
14 #if FW_ENABLE_TEXT_LOGGING == 1
15 #include "Fw/Log/LogTextPortAc.hpp"
16 #endif
19 #include "Fw/Time/TimePortAc.hpp"
20 
21 namespace Svc {
22 
29  {
30 
31  // ----------------------------------------------------------------------
32  // Friend classes
33  // ----------------------------------------------------------------------
34 
37 
38  PROTECTED:
39 
40  // ----------------------------------------------------------------------
41  // Constants
42  // ----------------------------------------------------------------------
43 
45  enum {
49  };
50 
52  enum {
61  };
62 
63  public:
64 
65  // ----------------------------------------------------------------------
66  // Component initialization
67  // ----------------------------------------------------------------------
68 
70  void init(
71  FwEnumStoreType instance = 0
72  );
73 
74  public:
75 
76  // ----------------------------------------------------------------------
77  // Connect input ports to special output ports
78  // ----------------------------------------------------------------------
79 
81  void set_Log_OutputPort(
82  FwIndexType portNum,
83  Fw::InputLogPort* port
84  );
85 
86 #if FW_ENABLE_TEXT_LOGGING == 1
87 
89  void set_LogText_OutputPort(
90  FwIndexType portNum,
92  );
93 
94 #endif
95 
98  FwIndexType portNum,
99  Fw::InputTimePort* port
100  );
101 
102 #if FW_PORT_SERIALIZATION
103 
104  public:
105 
106  // ----------------------------------------------------------------------
107  // Connect serial input ports to special output ports
108  // ----------------------------------------------------------------------
109 
111  void set_Log_OutputPort(
112  FwIndexType portNum,
113  Fw::InputSerializePort* port
114  );
115 
116 #if FW_ENABLE_TEXT_LOGGING == 1
117 
119  void set_LogText_OutputPort(
120  FwIndexType portNum,
121  Fw::InputSerializePort* port
122  );
123 
124 #endif
125 
127  void set_Time_OutputPort(
128  FwIndexType portNum,
129  Fw::InputSerializePort* port
130  );
131 
132 #endif
133 
134  PROTECTED:
135 
136  // ----------------------------------------------------------------------
137  // Component construction and destruction
138  // ----------------------------------------------------------------------
139 
142  const char* compName = ""
143  );
144 
147 
148  PROTECTED:
149 
150  // ----------------------------------------------------------------------
151  // Getters for numbers of special output ports
152  // ----------------------------------------------------------------------
153 
158 
159 #if FW_ENABLE_TEXT_LOGGING == 1
160 
164  FwIndexType getNum_LogText_OutputPorts() const;
165 
166 #endif
167 
172 
173  PROTECTED:
174 
175  // ----------------------------------------------------------------------
176  // Connection status queries for special output ports
177  // ----------------------------------------------------------------------
178 
183  FwIndexType portNum
184  );
185 
186 #if FW_ENABLE_TEXT_LOGGING == 1
187 
191  bool isConnected_LogText_OutputPort(
192  FwIndexType portNum
193  );
194 
195 #endif
196 
201  FwIndexType portNum
202  );
203 
204  PROTECTED:
205 
206  // ----------------------------------------------------------------------
207  // Event logging functions
208  // ----------------------------------------------------------------------
209 
214  const Fw::StringBase& file,
215  U32 line
216  );
217 
222  const Fw::StringBase& file,
223  U32 line,
224  U32 arg1
225  );
226 
231  const Fw::StringBase& file,
232  U32 line,
233  U32 arg1,
234  U32 arg2
235  );
236 
241  const Fw::StringBase& file,
242  U32 line,
243  U32 arg1,
244  U32 arg2,
245  U32 arg3
246  );
247 
252  const Fw::StringBase& file,
253  U32 line,
254  U32 arg1,
255  U32 arg2,
256  U32 arg3,
257  U32 arg4
258  );
259 
264  const Fw::StringBase& file,
265  U32 line,
266  U32 arg1,
267  U32 arg2,
268  U32 arg3,
269  U32 arg4,
270  U32 arg5
271  );
272 
277  const Fw::StringBase& file,
278  U32 line,
279  U32 arg1,
280  U32 arg2,
281  U32 arg3,
282  U32 arg4,
283  U32 arg5,
284  U32 arg6
285  );
286 
291  const Fw::StringBase& file,
292  U32 line,
293  U32 numArgs
294  );
295 
296  PROTECTED:
297 
298  // ----------------------------------------------------------------------
299  // Time
300  // ----------------------------------------------------------------------
301 
305  Fw::Time getTime();
306 
307  PRIVATE:
308 
309  // ----------------------------------------------------------------------
310  // Special output ports
311  // ----------------------------------------------------------------------
312 
314  Fw::OutputLogPort m_Log_OutputPort[NUM_LOG_OUTPUT_PORTS];
315 
316 #if FW_ENABLE_TEXT_LOGGING == 1
317 
319  Fw::OutputLogTextPort m_LogText_OutputPort[NUM_LOGTEXT_OUTPUT_PORTS];
320 
321 #endif
322 
324  Fw::OutputTimePort m_Time_OutputPort[NUM_TIME_OUTPUT_PORTS];
325 
326  };
327 
328 }
329 
330 #endif
I32 FwEnumStoreType
Definition: FpConfig.h:64
PlatformIndexType FwIndexType
Definition: FpConfig.h:25
C++-compatible configuration header for fprime configuration.
void init()
Object initializer.
Definition: ObjBase.cpp:27
Definition: Time.hpp:9
Auto-generated base for AssertFatalAdapter component.
void log_FATAL_AF_ASSERT_2(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2)
AssertFatalAdapterComponentBase(const char *compName="")
Construct AssertFatalAdapterComponentBase object.
void log_FATAL_AF_ASSERT_1(const Fw::StringBase &file, U32 line, U32 arg1)
virtual ~AssertFatalAdapterComponentBase()
Destroy AssertFatalAdapterComponentBase object.
void log_FATAL_AF_ASSERT_3(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3)
void log_FATAL_AF_ASSERT_0(const Fw::StringBase &file, U32 line)
void log_FATAL_AF_UNEXPECTED_ASSERT(const Fw::StringBase &file, U32 line, U32 numArgs)
friend class AssertFatalAdapterComponentBaseFriend
Friend class for white-box testing.
@ EVENTID_AF_UNEXPECTED_ASSERT
An unexpected assert happened.
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
void log_FATAL_AF_ASSERT_5(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5)
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void log_FATAL_AF_ASSERT_6(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4, U32 arg5, U32 arg6)
void log_FATAL_AF_ASSERT_4(const Fw::StringBase &file, U32 line, U32 arg1, U32 arg2, U32 arg3, U32 arg4)