7 #ifndef Svc_ComLoggerComponentAc_HPP 8 #define Svc_ComLoggerComponentAc_HPP 21 #if FW_ENABLE_TEXT_LOGGING == 1 24 #if !FW_DIRECT_PORT_CALLS 27 #if !FW_DIRECT_PORT_CALLS 115 #if !FW_DIRECT_PORT_CALLS 132 #if !FW_DIRECT_PORT_CALLS 156 #if !FW_DIRECT_PORT_CALLS 164 #if FW_ENABLE_TEXT_LOGGING == 1 167 void set_LogText_OutputPort(
200 #if !FW_DIRECT_PORT_CALLS 216 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 224 #if FW_ENABLE_TEXT_LOGGING == 1 227 void set_LogText_OutputPort(
229 Fw::InputSerializePort* port
237 Fw::InputSerializePort* port
243 Fw::InputSerializePort* port
249 Fw::InputSerializePort* port
255 Fw::InputSerializePort* port
260 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 271 Fw::InputSerializePort* port
295 const char* compName =
"" 340 #if FW_ENABLE_TEXT_LOGGING == 1 345 static constexpr
FwIndexType getNum_LogText_OutputPorts() {
398 #if FW_ENABLE_TEXT_LOGGING == 1 403 bool isConnected_LogText_OutputPort(
450 #if FW_DIRECT_PORT_CALLS 489 #if FW_DIRECT_PORT_CALLS 688 static void m_p_cmdIn_in(
703 static void m_p_comIn_in(
711 static void m_p_pingIn_in(
723 #if FW_ENABLE_TEXT_LOGGING 743 void cmdResponseOut_out(
765 #if !FW_DIRECT_PORT_CALLS 778 #if !FW_DIRECT_PORT_CALLS 794 #if !FW_DIRECT_PORT_CALLS 802 #if FW_ENABLE_TEXT_LOGGING == 1 823 #if !FW_DIRECT_PORT_CALLS 843 std::atomic<FwIndexType> m_FileNotInitializedThrottle;
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
ComLoggerComponentBase(const char *compName="")
Construct ComLoggerComponentBase object.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
FwIdType FwOpcodeType
The type of a command opcode.
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
virtual void comIn_preMsgHook(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Pre-message hook for async input port comIn.
PlatformSizeType FwSizeType
void log_WARNING_LO_FileNotInitialized()
Log event FileNotInitialized.
void log_DIAGNOSTIC_FileClosed(const Fw::StringBase &file) const
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)
The ComLogger encountered an error writing the validation file.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
static constexpr FwIndexType getNum_pingIn_InputPorts()
Enum representing a command response.
void regCommands()
Register commands with the Command Dispatcher.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
void init()
Object initializer.
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
FwIdType FwEventIdType
The type of an event identifier.
The ComLogger successfully closed a file on command.
virtual void CloseFile_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command CloseFile.
void log_WARNING_HI_FileOpenError(U32 errornum, const Fw::StringBase &file) const
void log_WARNING_LO_FileNotInitialized_ThrottleClear()
Reset throttle value for FileNotInitialized.
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
void CloseFile_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
Fw::InputComPort * get_comIn_InputPort(FwIndexType portNum)
void log_WARNING_HI_FileWriteError(U32 errornum, U32 bytesWritten, U32 bytesToWrite, const Fw::StringBase &file) const
virtual ~ComLoggerComponentBase()
Destroy ComLoggerComponentBase object.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
Enum representing event severity.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
static constexpr FwIndexType getNum_logOut_OutputPorts()
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
Forces a close of the currently opened file.
friend class ComLoggerTester
Friend class tester implementation to support white-box testing.
void log_WARNING_LO_FileValidationError(const Fw::StringBase &validationFile, const Fw::StringBase &file, U32 status) const
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
static constexpr FwIndexType getNum_comIn_InputPorts()
PlatformIndexType FwIndexType
virtual void comIn_handler(FwIndexType portNum, Fw::ComBuffer &data, U32 context)=0
Handler for input port comIn.
friend class ComLoggerTesterBase
Friend class tester to support autocoded test harness.
void comIn_handlerBase(FwIndexType portNum, Fw::ComBuffer &data, U32 context)
Handler base-class function for input port comIn.
RateGroupDivider component implementation.
static constexpr FwIndexType getNum_pingOut_OutputPorts()
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
bool isConnected_pingOut_OutputPort(FwIndexType portNum) const
Throttle reset count for FileNotInitialized.
static constexpr FwIndexType getNum_cmdIn_InputPorts()
virtual void CloseFile_cmdHandler(FwOpcodeType opCode, U32 cmdSeq)=0
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
The ComLogger encountered an error writing to a file.
Auto-generated base for ComLogger component.
The ComLogger encountered an error opening a file.