F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
PassiveTextLoggerComponentAc.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title PassiveTextLoggerComponentAc.hpp
3 // \author Generated by fpp-to-cpp
4 // \brief hpp file for PassiveTextLogger component base class
5 // ======================================================================
6 
7 #ifndef Svc_PassiveTextLoggerComponentAc_HPP
8 #define Svc_PassiveTextLoggerComponentAc_HPP
9 
11 #include "Fw/FPrimeBasicTypes.hpp"
12 #if FW_ENABLE_TEXT_LOGGING == 1
13 #include "Fw/Log/LogTextPortAc.hpp"
14 #endif
17 
18 namespace Svc {
19 
26  {
27 
28  // ----------------------------------------------------------------------
29  // Friend classes
30  // ----------------------------------------------------------------------
31 
36 
37  PROTECTED:
38 
39  // ----------------------------------------------------------------------
40  // Constants
41  // ----------------------------------------------------------------------
42 
44  enum {
46  };
47 
48  public:
49 
50  // ----------------------------------------------------------------------
51  // Component initialization
52  // ----------------------------------------------------------------------
53 
55  void init(
56  FwEnumStoreType instance = 0
57  );
58 
59  public:
60 
61  // ----------------------------------------------------------------------
62  // Getters for typed input ports
63  // ----------------------------------------------------------------------
64 
69  FwIndexType portNum
70  );
71 
72  PROTECTED:
73 
74  // ----------------------------------------------------------------------
75  // Component construction and destruction
76  // ----------------------------------------------------------------------
77 
80  const char* compName = ""
81  );
82 
85 
86  PROTECTED:
87 
88  // ----------------------------------------------------------------------
89  // Getters for numbers of typed input ports
90  // ----------------------------------------------------------------------
91 
96 
97  PROTECTED:
98 
99  // ----------------------------------------------------------------------
100  // Handlers to implement for typed input ports
101  // ----------------------------------------------------------------------
102 
104  virtual void TextLogger_handler(
105  FwIndexType portNum,
106  FwEventIdType id,
107  Fw::Time& timeTag,
108  const Fw::LogSeverity& severity,
109  Fw::TextLogString& text
110  ) = 0;
111 
112  PROTECTED:
113 
114  // ----------------------------------------------------------------------
115  // Port handler base-class functions for typed input ports
116  //
117  // Call these functions directly to bypass the corresponding ports
118  // ----------------------------------------------------------------------
119 
122  FwIndexType portNum,
123  FwEventIdType id,
124  Fw::Time& timeTag,
125  const Fw::LogSeverity& severity,
126  Fw::TextLogString& text
127  );
128 
129  PRIVATE:
130 
131  // ----------------------------------------------------------------------
132  // Calls for messages received on typed input ports
133  // ----------------------------------------------------------------------
134 
136  static void m_p_TextLogger_in(
137  Fw::PassiveComponentBase* callComp,
138  FwIndexType portNum,
139  FwEventIdType id,
140  Fw::Time& timeTag,
141  const Fw::LogSeverity& severity,
142  Fw::TextLogString& text
143  );
144 
145  PRIVATE:
146 
147  // ----------------------------------------------------------------------
148  // Typed input ports
149  // ----------------------------------------------------------------------
150 
152  Fw::InputLogTextPort m_TextLogger_InputPort[NUM_TEXTLOGGER_INPUT_PORTS];
153 
154  };
155 
156 }
157 
158 #endif
virtual void TextLogger_handler(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text)=0
Handler for input port TextLogger.
Definition: Time.hpp:9
I32 FwEnumStoreType
Auto-generated base for PassiveTextLogger component.
void init()
Object initializer.
Definition: ObjBase.cpp:26
U32 FwEventIdType
The type of an event identifier.
friend class PassiveTextLoggerTesterBase
Friend class tester to support autocoded test harness.
PassiveTextLoggerComponentBase(const char *compName="")
Construct PassiveTextLoggerComponentBase object.
Enum representing event severity.
Fw::InputLogTextPort * get_TextLogger_InputPort(FwIndexType portNum)
PlatformIndexType FwIndexType
virtual ~PassiveTextLoggerComponentBase()
Destroy PassiveTextLoggerComponentBase object.
RateGroupDivider component implementation.
friend class PassiveTextLoggerTester
Friend class tester implementation to support white-box testing.
void TextLogger_handlerBase(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::TextLogString &text)
Handler base-class function for input port TextLogger.