7 #ifndef Svc_ActiveLoggerComponentAc_HPP
8 #define Svc_ActiveLoggerComponentAc_HPP
21 #if FW_ENABLE_TEXT_LOGGING == 1
169 #if FW_ENABLE_TEXT_LOGGING == 1
172 void set_LogText_OutputPort(
209 #if FW_PORT_SERIALIZATION
220 Fw::InputSerializePort* port
226 Fw::InputSerializePort* port
232 Fw::InputSerializePort* port
235 #if FW_ENABLE_TEXT_LOGGING == 1
238 void set_LogText_OutputPort(
240 Fw::InputSerializePort* port
248 Fw::InputSerializePort* port
253 #if FW_PORT_SERIALIZATION
264 Fw::InputSerializePort* port
270 Fw::InputSerializePort* port
276 Fw::InputSerializePort* port
300 const char* compName =
""
354 #if FW_ENABLE_TEXT_LOGGING == 1
416 #if FW_ENABLE_TEXT_LOGGING == 1
421 bool isConnected_LogText_OutputPort(
747 static void m_p_CmdDisp_in(
762 static void m_p_LogRecv_in(
772 static void m_p_pingIn_in(
814 #if FW_ENABLE_TEXT_LOGGING == 1
PlatformSizeType FwSizeType
PlatformIndexType FwIndexType
C++-compatible configuration header for fprime configuration.
Enum representing a command response.
Enum representing event severity.
void init()
Object initializer.
Enabled and disabled state.
Auto-generated base for ActiveLogger component.
virtual void LogRecv_handler(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)=0
Handler for input port LogRecv.
@ NUM_CMDDISP_INPUT_PORTS
bool isConnected_pingOut_OutputPort(FwIndexType portNum)
FwIndexType getNum_CmdStatus_OutputPorts() const
void regCommands()
Register commands with the Command Dispatcher.
void FatalAnnounce_out(FwIndexType portNum, FwEventIdType Id)
Invoke output port FatalAnnounce.
FwIndexType getNum_CmdReg_OutputPorts() const
FwIndexType getNum_pingIn_InputPorts() const
void set_CmdReg_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to CmdReg[portNum].
bool isConnected_CmdReg_OutputPort(FwIndexType portNum)
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
@ NUM_FATALANNOUNCE_OUTPUT_PORTS
@ NUM_PKTSEND_OUTPUT_PORTS
@ NUM_PINGOUT_OUTPUT_PORTS
@ EVENTID_ID_FILTER_ENABLED
Indicate ID is filtered.
@ EVENTID_ID_FILTER_REMOVED
Removed an ID from the filter.
@ EVENTID_ID_FILTER_NOT_FOUND
ID not in filter.
@ EVENTID_ID_FILTER_LIST_FULL
Attempted to add ID to full ID filter ID.
@ EVENTID_SEVERITY_FILTER_STATE
Dump severity filter state.
void set_FatalAnnounce_OutputPort(FwIndexType portNum, Svc::InputFatalEventPort *port)
Connect port to FatalAnnounce[portNum].
void set_PktSend_OutputPort(FwIndexType portNum, Fw::InputComPort *port)
Connect port to PktSend[portNum].
bool isConnected_FatalAnnounce_OutputPort(FwIndexType portNum)
void DUMP_FILTER_STATE_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
@ NUM_LOGRECV_INPUT_PORTS
void log_WARNING_LO_ID_FILTER_NOT_FOUND(U32 ID)
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
virtual void loqQueue_internalInterfaceHandler(FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity &severity, const Fw::LogBuffer &args)=0
Internal interface handler for loqQueue.
void log_ACTIVITY_HI_ID_FILTER_ENABLED(U32 ID)
friend class ActiveLoggerComponentBaseFriend
Friend class for white-box testing.
Fw::InputCmdPort * get_CmdDisp_InputPort(FwIndexType portNum)
ActiveLoggerComponentBase(const char *compName="")
Construct ActiveLoggerComponentBase object.
bool isConnected_CmdStatus_OutputPort(FwIndexType portNum)
virtual void SET_ID_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, U32 ID, Svc::ActiveLogger_Enabled idFilterEnabled)=0
FwIndexType getNum_pingOut_OutputPorts() const
virtual ~ActiveLoggerComponentBase()
Destroy ActiveLoggerComponentBase object.
@ NUM_CMDREG_OUTPUT_PORTS
@ NUM_LOGTEXT_OUTPUT_PORTS
@ NUM_CMDSTATUS_OUTPUT_PORTS
void LogRecv_handlerBase(FwIndexType portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Handler base-class function for input port LogRecv.
void SET_ID_FILTER_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void SET_EVENT_FILTER_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
void set_CmdStatus_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to CmdStatus[portNum].
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
@ OPCODE_SET_EVENT_FILTER
Set filter for reporting events. Events are not stored in component.
@ OPCODE_DUMP_FILTER_STATE
Dump the filter states via events.
@ OPCODE_SET_ID_FILTER
Filter a particular ID.
void log_ACTIVITY_HI_ID_FILTER_REMOVED(U32 ID)
virtual void DUMP_FILTER_STATE_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command DUMP_FILTER_STATE.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
FwIndexType getNum_FatalAnnounce_OutputPorts() const
bool isConnected_Time_OutputPort(FwIndexType portNum)
void log_ACTIVITY_LO_SEVERITY_FILTER_STATE(Svc::ActiveLogger_FilterSeverity severity, bool enabled)
virtual void SET_EVENT_FILTER_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Svc::ActiveLogger_FilterSeverity filterLevel, Svc::ActiveLogger_Enabled filterEnabled)=0
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
void pingOut_out(FwIndexType portNum, U32 key)
Invoke output port pingOut.
virtual void SET_ID_FILTER_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command SET_ID_FILTER.
void PktSend_out(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Invoke output port PktSend.
FwIndexType getNum_LogRecv_InputPorts() const
bool isConnected_PktSend_OutputPort(FwIndexType portNum)
FwIndexType getNum_PktSend_OutputPorts() const
bool isConnected_Log_OutputPort(FwIndexType portNum)
void loqQueue_internalInterfaceInvoke(FwEventIdType id, const Fw::Time &timeTag, const Fw::LogSeverity &severity, const Fw::LogBuffer &args)
Internal interface base-class function for loqQueue.
virtual void DUMP_FILTER_STATE_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
FwIndexType getNum_Log_OutputPorts() const
void log_WARNING_LO_ID_FILTER_LIST_FULL(U32 ID)
FwIndexType getNum_CmdDisp_InputPorts() const
FwIndexType getNum_Time_OutputPorts() const
Fw::InputLogPort * get_LogRecv_InputPort(FwIndexType portNum)
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.