F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ConsoleTextLoggerImpl.hpp
Go to the documentation of this file.
1 #ifndef SVC_TEXT_LOGGER_IMPL_HPP
2 #define SVC_TEXT_LOGGER_IMPL_HPP
3 
6 #include <config/PassiveTextLoggerCfg.hpp>
7 
8 namespace Svc {
9 
11  public:
12  // Only called by derived class
13  ConsoleTextLoggerImpl(const char* compName);
15 
17  void configure(const FwEventIdType* filteredIds, FwSizeType count);
18 
22  void setSeverityFilter(Fw::LogSeverity severity, bool enabled);
23 
24  private:
25  // downcalls for input ports
26  void TextLogger_handler(FwIndexType portNum,
27  FwEventIdType id,
28  Fw::Time& timeTag,
29  const Fw::LogSeverity& severity,
30  Fw::TextLogString& text);
31 
32  // Event ID filters
33  FwSizeType m_numFilteredIDs;
35 
36  // Severity filter
37  EventSeverityFilter m_severityFilter;
38 };
39 
40 } // namespace Svc
41 
42 #endif
PlatformSizeType FwSizeType
Auto-generated base for PassiveTextLogger component.
FwIdType FwEventIdType
The type of an event identifier.
void configure(const FwEventIdType *filteredIds, FwSizeType count)
Configure component with event ID filters.
Enum representing event severity.
Common severity-based event filtering utility.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.
void setSeverityFilter(Fw::LogSeverity severity, bool enabled)