7 #ifndef Svc_FileDispatcherComponentAc_HPP 8 #define Svc_FileDispatcherComponentAc_HPP 21 #if !FW_DIRECT_PORT_CALLS 24 #if !FW_DIRECT_PORT_CALLS 115 #if !FW_DIRECT_PORT_CALLS 132 #if !FW_DIRECT_PORT_CALLS 156 #if !FW_DIRECT_PORT_CALLS 182 #if FW_ENABLE_TEXT_LOGGING == 1 185 void set_logTextOut_OutputPort(
200 #if !FW_DIRECT_PORT_CALLS 222 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 233 Fw::InputSerializePort* port
239 Fw::InputSerializePort* port
245 Fw::InputSerializePort* port
248 #if FW_ENABLE_TEXT_LOGGING == 1 251 void set_logTextOut_OutputPort(
253 Fw::InputSerializePort* port
261 Fw::InputSerializePort* port
266 #if !FW_DIRECT_PORT_CALLS && FW_PORT_SERIALIZATION 277 Fw::InputSerializePort* port
283 Fw::InputSerializePort* port
307 const char* compName =
"" 373 #if FW_ENABLE_TEXT_LOGGING == 1 378 static constexpr
FwIndexType getNum_logTextOut_OutputPorts() {
438 #if FW_ENABLE_TEXT_LOGGING == 1 443 bool isConnected_logTextOut_OutputPort(
476 #if FW_DIRECT_PORT_CALLS 514 #if FW_DIRECT_PORT_CALLS 696 static void m_p_cmdIn_in(
711 static void m_p_fileAnnounceRecv_in(
718 static void m_p_pingIn_in(
737 void cmdResponseOut_out(
753 #if FW_ENABLE_TEXT_LOGGING 772 #if !FW_DIRECT_PORT_CALLS 785 #if !FW_DIRECT_PORT_CALLS 801 #if !FW_DIRECT_PORT_CALLS 818 #if FW_ENABLE_TEXT_LOGGING == 1 830 #if !FW_DIRECT_PORT_CALLS 853 std::atomic<FwIndexType> m_FileDispatchPortNotConnectedThrottle;
void set_pingOut_OutputPort(FwIndexType portNum, Svc::InputPingPort *port)
Connect port to pingOut[portNum].
bool isConnected_pingOut_OutputPort(FwIndexType portNum) const
Throttle reset count for FileDispatchPortNotConnected.
static constexpr FwIndexType getNum_cmdResponseOut_OutputPorts()
virtual void pingIn_handler(FwIndexType portNum, U32 key)=0
Handler for input port pingIn.
FwIdType FwOpcodeType
The type of a command opcode.
static constexpr FwIndexType getNum_cmdRegOut_OutputPorts()
bool isConnected_fileDispatch_OutputPort(FwIndexType portNum) const
PlatformSizeType FwSizeType
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
friend class FileDispatcherTester
Friend class tester implementation to support white-box testing.
void fileAnnounceRecv_handlerBase(FwIndexType portNum, Fw::StringBase &file_name)
Handler base-class function for input port fileAnnounceRecv.
FileDispatcherComponentBase(const char *compName="")
Construct FileDispatcherComponentBase object.
Enum representing a command response.
void pingIn_handlerBase(FwIndexType portNum, U32 key)
Handler base-class function for input port pingIn.
Fw::InputCmdPort * get_cmdIn_InputPort(FwIndexType portNum)
void cmdIn_handlerBase(FwIndexType portNum, FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Handler base-class function for input port cmdIn.
virtual void fileAnnounceRecv_handler(FwIndexType portNum, Fw::StringBase &file_name)=0
Handler for input port fileAnnounceRecv.
void set_cmdResponseOut_OutputPort(FwIndexType portNum, Fw::InputCmdResponsePort *port)
Connect port to cmdResponseOut[portNum].
virtual void ENABLE_DISPATCH_preMsgHook(FwOpcodeType opCode, U32 cmdSeq)
Pre-message hook for command ENABLE_DISPATCH.
void init()
Object initializer.
void regCommands()
Register commands with the Command Dispatcher.
bool isConnected_cmdRegOut_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_fileDispatch_OutputPorts()
FwIdType FwEventIdType
The type of an event identifier.
virtual void pingIn_preMsgHook(FwIndexType portNum, U32 key)
Pre-message hook for async input port pingIn.
static constexpr FwIndexType getNum_logOut_OutputPorts()
void log_WARNING_LO_FileDispatchPortNotConnected(const Fw::StringBase &file_name, const Svc::FileDispatcherCfg::FileDispatchPort &file_type)
Log event FileDispatchPortNotConnected.
void log_ACTIVITY_HI_FileDispatchState(const Svc::FileDispatcherCfg::FileDispatchPort &file_type, const Fw::Enabled &enabled) const
Log event FileDispatchState.
static constexpr FwIndexType getNum_pingIn_InputPorts()
bool isConnected_timeCaller_OutputPort(FwIndexType portNum) const
static constexpr FwIndexType getNum_cmdIn_InputPorts()
friend class FileDispatcherTesterBase
Friend class tester to support autocoded test harness.
void ENABLE_DISPATCH_cmdHandlerBase(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdArgBuffer &args)
Base-class handler function for command ENABLE_DISPATCH.
void pingOut_out(FwIndexType portNum, U32 key) const
Invoke output port pingOut.
Enum representing event severity.
virtual void fileAnnounceRecv_preMsgHook(FwIndexType portNum, Fw::StringBase &file_name)
Pre-message hook for async input port fileAnnounceRecv.
bool isConnected_logOut_OutputPort(FwIndexType portNum) const
Enabled and disabled states.
bool isConnected_cmdResponseOut_OutputPort(FwIndexType portNum) const
void log_ACTIVITY_HI_FileDispatched(const Fw::StringBase &file_name, const Svc::FileDispatcherCfg::FileDispatchPort &file_type) const
Log event FileDispatched.
void set_fileDispatch_OutputPort(FwIndexType portNum, Svc::InputFileDispatchPort *port)
Connect port to fileDispatch[portNum].
void cmdResponse_out(FwOpcodeType opCode, U32 cmdSeq, Fw::CmdResponse response)
Emit command response.
Svc::InputFileAnnouncePort * get_fileAnnounceRecv_InputPort(FwIndexType portNum)
void log_WARNING_LO_FileDispatchPortNotConnected_ThrottleClear()
Reset throttle value for FileDispatchPortNotConnected.
virtual ~FileDispatcherComponentBase()
Destroy FileDispatcherComponentBase object.
PlatformIndexType FwIndexType
Auto-generated base for FileDispatcher component.
RateGroupDivider component implementation.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
void set_cmdRegOut_OutputPort(FwIndexType portNum, Fw::InputCmdRegPort *port)
Connect port to cmdRegOut[portNum].
virtual void ENABLE_DISPATCH_cmdHandler(FwOpcodeType opCode, U32 cmdSeq, const Svc::FileDispatcherCfg::FileDispatchPort &file_type, const Fw::Enabled &enable)=0
Handler for command ENABLE_DISPATCH.
static constexpr FwIndexType getNum_pingOut_OutputPorts()
void fileDispatch_out(FwIndexType portNum, Fw::StringBase &file_name) const
Invoke output port fileDispatch.
static constexpr FwIndexType getNum_fileAnnounceRecv_InputPorts()
Svc::InputPingPort * get_pingIn_InputPort(FwIndexType portNum)