7 #ifndef Svc_BufferLoggerComponentAc_HPP 8 #define Svc_BufferLoggerComponentAc_HPP 23 #if !FW_DIRECT_PORT_CALLS 26 #if !FW_DIRECT_PORT_CALLS 125 #if !FW_DIRECT_PORT_CALLS 142 #if !FW_DIRECT_PORT_CALLS 180 #if !FW_DIRECT_PORT_CALLS 206 #if FW_ENABLE_TEXT_LOGGING == 1 209 void set_eventOutText_OutputPort(
230 #if !FW_DIRECT_PORT_CALLS 252 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 263 Fw::InputSerializePort* port
269 Fw::InputSerializePort* port
275 Fw::InputSerializePort* port
278 #if FW_ENABLE_TEXT_LOGGING == 1 281 void set_eventOutText_OutputPort(
283 Fw::InputSerializePort* port
291 Fw::InputSerializePort* port
297 Fw::InputSerializePort* port
302 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 313 Fw::InputSerializePort* port
319 Fw::InputSerializePort* port
343 const char* compName =
"" 423 #if FW_ENABLE_TEXT_LOGGING == 1 428 static constexpr
FwIndexType getNum_eventOutText_OutputPorts() {
495 #if FW_ENABLE_TEXT_LOGGING == 1 500 bool isConnected_eventOutText_OutputPort(
540 #if FW_DIRECT_PORT_CALLS 591 #if FW_DIRECT_PORT_CALLS 923 static void m_p_cmdIn_in(
938 static void m_p_bufferSendIn_in(
945 static void m_p_comIn_in(
953 static void m_p_pingIn_in(
960 static void m_p_schedIn_in(
979 void cmdResponseOut_out(
995 #if FW_ENABLE_TEXT_LOGGING 998 void eventOutText_out(
1009 void timeCaller_out(
1022 #if !FW_DIRECT_PORT_CALLS 1035 #if !FW_DIRECT_PORT_CALLS 1057 #if !FW_DIRECT_PORT_CALLS 1074 #if FW_ENABLE_TEXT_LOGGING == 1 1089 #if !FW_DIRECT_PORT_CALLS Close the currently open log file, if any.
void BL_SetLogging_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
Buffer logger was activated.
void regCommands()
Register commands with the Command Dispatcher.
virtual void bufferSendIn_preMsgHook(FwIndexType portNum, Fw::Buffer &fwBuffer)
Pre-message hook for async input port bufferSendIn.
FwIdType FwOpcodeType
The type of a command opcode.
Flushes the current open log file to disk; a no-op with fprime's unbuffered file I/O, so always returns success.
Svc::InputSchedPort * get_schedIn_InputPort(FwIndexType portNum)
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
PlatformSizeType FwSizeType
virtual void schedIn_preMsgHook(FwIndexType portNum, U32 context)
Pre-message hook for async input port schedIn.
static constexpr FwIndexType getNum_pingIn_InputPorts()
void set_tlmOut_OutputPort(FwIndexType portNum, Fw::InputTlmPort *port)
Connect port to tlmOut[portNum].
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
virtual void BL_SetLogging_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command BL_SetLogging.
virtual void BL_CloseFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command BL_CloseFile.
The Buffer Logger encountered an error opening a log file.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
virtual void BL_SetLogging_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, Svc::BufferLogger_LogState state)=0
virtual void BL_OpenFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command BL_OpenFile.
virtual void BL_FlushFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command BL_FlushFile.
virtual void bufferSendIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port bufferSendIn.
void BL_OpenFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_DIAGNOSTIC_BL_LogFileClosed(const Fw::StringBase &file) const
Enum representing a command response.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void bufferSendIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port bufferSendIn.
void init()
Object initializer.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
virtual void comIn_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port comIn.
void log_WARNING_HI_BL_LogFileOpenError(U32 errornum, const Fw::StringBase &file) const
void log_ACTIVITY_LO_BL_Activated() const
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
FwIdType FwEventIdType
The type of an event identifier.
virtual void comIn_preMsgHook(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Pre-message hook for async input port comIn.
static constexpr FwIndexType getNum_schedIn_InputPorts()
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
void set_bufferSendOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to bufferSendOut[portNum].
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
Auto-generated base for BufferLogger component.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
void tlmWrite_BufferLogger_NumLoggedBuffers(U32 arg, Fw::Time _tlmTime=Fw::Time()) const
virtual void BL_FlushFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
bool isConnected_tlmOut_OutputPort(FwIndexType portNum) const
FwIdType FwChanIdType
The type of a telemetry channel identifier.
bool isConnected_bufferSendOut_OutputPort(FwIndexType portNum) const
void BL_CloseFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void log_WARNING_HI_BL_LogFileWriteError(U32 errornum, U32 bytesWritten, U32 bytesToWrite, const Fw::StringBase &file) const
BufferLoggerComponentBase(const char *compName="")
Construct BufferLoggerComponentBase object.
virtual void schedIn_handler(FwIndexType portNum, U32 context)=0
Handler for input port schedIn.
The Buffer Logger encountered an error writing a validation file.
friend class BufferLoggerTesterBase
Friend class tester to support autocoded test harness.
bool isConnected_pingOut_OutputPort(FwIndexType portNum) const
Enum representing event severity.
Fw::InputBufferSendPort * get_bufferSendIn_InputPort(FwIndexType portNum)
Channel ID for BufferLogger_NumLoggedBuffers.
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
void bufferSendOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer) const
Invoke output port bufferSendOut.
static constexpr FwIndexType getNum_eventOut_OutputPorts()
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
No log file open command was received by BufferLogger.
Buffer logger was deactivated.
void tlmWrite(FwChanIdType id, Fw::TlmBuffer &_tlmBuff, Fw::Time _tlmTime=Fw::Time()) const
bool isConnected_eventOut_OutputPort(FwIndexType portNum) const
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
void log_ACTIVITY_LO_BL_Deactivated() const
Fw::InputComPort * get_comIn_InputPort(FwIndexType portNum)
void comIn_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port comIn.
The Buffer Logger closed a log file.
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
The Buffer Logger encountered an error writing to a log file.
static constexpr FwIndexType getNum_bufferSendOut_OutputPorts()
Sets the volatile logging state.
virtual ~BufferLoggerComponentBase()
Destroy BufferLoggerComponentBase object.
PlatformIndexType FwIndexType
static constexpr FwIndexType getNum_pingOut_OutputPorts()
static constexpr FwIndexType getNum_tlmOut_OutputPorts()
RateGroupDivider component implementation.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
void BL_FlushFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void set_eventOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to eventOut[portNum].
friend class BufferLoggerTester
Friend class tester implementation to support white-box testing.
static constexpr FwIndexType getNum_bufferSendIn_InputPorts()
void log_WARNING_HI_BL_NoLogFileOpenInitError() const
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
static constexpr FwIndexType getNum_comIn_InputPorts()
Open a new log file with specified name; also resets unique file counter to 0.
void schedIn_handlerBase(FwIndexType portNum, U32 context)
Handler base-class function for input port schedIn.
virtual void BL_CloseFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
virtual void BL_OpenFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Fw::CmdStringArg &file)=0
void log_WARNING_HI_BL_LogFileValidationError(const Fw::StringBase &validationFile, U32 status) const
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].