9 #if FW_ENABLE_TEXT_LOGGING 32 this->m_allPacketsReturnIn_InputPort[port].
init();
33 this->m_allPacketsReturnIn_InputPort[port].
addCallComp(
35 m_p_allPacketsReturnIn_in
37 this->m_allPacketsReturnIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_allPacketsReturnIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_dataIn_InputPort[port].
init();
61 this->m_dataIn_InputPort[port].
setPortNum(port);
63 #if FW_OBJECT_NAMES == 1 67 this->m_objName.toChar(),
70 this->m_dataIn_InputPort[port].setObjName(portName.
toChar());
80 this->m_logOut_OutputPort[port].
init();
82 #if FW_OBJECT_NAMES == 1 86 this->m_objName.toChar(),
89 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
93 #if FW_ENABLE_TEXT_LOGGING == 1 97 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
100 this->m_logTextOut_OutputPort[port].
init();
102 #if FW_OBJECT_NAMES == 1 106 this->m_objName.toChar(),
109 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
120 this->m_timeCaller_OutputPort[port].
init();
122 #if FW_OBJECT_NAMES == 1 126 this->m_objName.toChar(),
129 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
139 this->m_allPacketsOut_OutputPort[port].
init();
141 #if FW_OBJECT_NAMES == 1 145 this->m_objName.toChar(),
148 this->m_allPacketsOut_OutputPort[port].setObjName(portName.
toChar());
158 this->m_dataReturnOut_OutputPort[port].
init();
160 #if FW_OBJECT_NAMES == 1 164 this->m_objName.toChar(),
167 this->m_dataReturnOut_OutputPort[port].setObjName(portName.
toChar());
181 static_cast<FwAssertArgType>(portNum)
184 return &this->m_allPacketsReturnIn_InputPort[portNum];
192 static_cast<FwAssertArgType>(portNum)
195 return &this->m_dataIn_InputPort[portNum];
210 static_cast<FwAssertArgType>(portNum)
213 this->m_logOut_OutputPort[portNum].
addCallPort(port);
216 #if FW_ENABLE_TEXT_LOGGING == 1 218 void PassThroughRouterComponentBase ::
219 set_logTextOut_OutputPort(
225 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
226 static_cast<FwAssertArgType>(portNum)
229 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
242 static_cast<FwAssertArgType>(portNum)
245 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
260 static_cast<FwAssertArgType>(portNum)
263 this->m_allPacketsOut_OutputPort[portNum].
addCallPort(port);
274 static_cast<FwAssertArgType>(portNum)
277 this->m_dataReturnOut_OutputPort[portNum].
addCallPort(port);
280 #if FW_PORT_SERIALIZATION 289 Fw::InputSerializePort* port
294 static_cast<FwAssertArgType>(portNum)
297 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
300 #if FW_ENABLE_TEXT_LOGGING == 1 302 void PassThroughRouterComponentBase ::
303 set_logTextOut_OutputPort(
305 Fw::InputSerializePort* port
309 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
310 static_cast<FwAssertArgType>(portNum)
313 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
321 Fw::InputSerializePort* port
326 static_cast<FwAssertArgType>(portNum)
329 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
334 #if FW_PORT_SERIALIZATION 343 Fw::InputSerializePort* port
348 static_cast<FwAssertArgType>(portNum)
351 this->m_allPacketsOut_OutputPort[portNum].registerSerialPort(port);
357 Fw::InputSerializePort* port
362 static_cast<FwAssertArgType>(portNum)
365 this->m_dataReturnOut_OutputPort[portNum].registerSerialPort(port);
376 Fw::PassiveComponentBase(compName)
396 static_cast<FwAssertArgType>(portNum)
399 return this->m_logOut_OutputPort[portNum].
isConnected();
402 #if FW_ENABLE_TEXT_LOGGING == 1 404 bool PassThroughRouterComponentBase ::
405 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
408 (0 <= portNum) && (portNum < this->getNum_logTextOut_OutputPorts()),
409 static_cast<FwAssertArgType>(portNum)
412 return this->m_logTextOut_OutputPort[portNum].isConnected();
422 static_cast<FwAssertArgType>(portNum)
425 return this->m_timeCaller_OutputPort[portNum].
isConnected();
437 static_cast<FwAssertArgType>(portNum)
440 return this->m_allPacketsOut_OutputPort[portNum].
isConnected();
448 static_cast<FwAssertArgType>(portNum)
451 return this->m_dataReturnOut_OutputPort[portNum].
isConnected();
469 static_cast<FwAssertArgType>(portNum)
489 static_cast<FwAssertArgType>(portNum)
512 static_cast<FwAssertArgType>(portNum)
516 this->m_allPacketsOut_OutputPort[portNum].isConnected(),
517 static_cast<FwAssertArgType>(portNum)
519 this->m_allPacketsOut_OutputPort[portNum].
invoke(
533 static_cast<FwAssertArgType>(portNum)
537 this->m_dataReturnOut_OutputPort[portNum].isConnected(),
538 static_cast<FwAssertArgType>(portNum)
540 this->m_dataReturnOut_OutputPort[portNum].
invoke(
553 if (this->m_timeCaller_OutputPort[0].isConnected()) {
555 this->m_timeCaller_OutputPort[0].
invoke(_time);
567 void PassThroughRouterComponentBase ::
568 m_p_allPacketsReturnIn_in(
582 void PassThroughRouterComponentBase ::
592 compPtr->dataIn_handlerBase(
static constexpr FwIndexType getNum_dataReturnOut_OutputPorts()
void addCallPort(InputTimePort *callPort)
Register an input port.
bool isConnected_allPacketsOut_OutputPort(FwIndexType portNum)
Svc::InputComDataWithContextPort * get_dataIn_InputPort(FwIndexType portNum)
void dataIn_handlerBase(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Handler base-class function for input port dataIn.
No time base has been established (Required)
void addCallPort(InputComDataWithContextPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_allPacketsReturnIn_InputPorts()
void init()
Object initializer.
static constexpr FwIndexType getNum_allPacketsOut_OutputPorts()
void allPacketsOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port allPacketsOut.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void set_dataReturnOut_OutputPort(FwIndexType portNum, Svc::InputComDataWithContextPort *port)
Connect port to dataReturnOut[portNum].
void init()
Initialization function.
void addCallComp(Fw::PassiveComponentBase *callComp, CompFuncPtr funcPtr)
Register a component.
Fw::InputBufferSendPort * get_allPacketsReturnIn_InputPort(FwIndexType portNum)
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void invoke(Fw::Time &time) const
Invoke a port interface.
const char * toChar() const
Convert to a C-style char*.
bool isConnected_dataReturnOut_OutputPort(FwIndexType portNum)
void invoke(Fw::Buffer &data, const ComCfg::FrameContext &context) const
Invoke a port interface.
void init()
Initialization function.
void set_allPacketsOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to allPacketsOut[portNum].
void dataReturnOut_out(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)
Invoke output port dataReturnOut.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
void init()
Initialization function.
void init()
Initialization function.
virtual void allPacketsReturnIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port allPacketsReturnIn.
virtual void dataIn_handler(FwIndexType portNum, Fw::Buffer &data, const ComCfg::FrameContext &context)=0
Handler for input port dataIn.
PassThroughRouterComponentBase(const char *compName="")
Construct PassThroughRouterComponentBase object.
PlatformIndexType FwIndexType
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
bool isConnected_logOut_OutputPort(FwIndexType portNum)
void addCallPort(InputLogPort *callPort)
Register an input port.
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
virtual ~PassThroughRouterComponentBase()
Destroy PassThroughRouterComponentBase object.
static constexpr FwIndexType getNum_timeCaller_OutputPorts()
Auto-generated base for PassThroughRouter component.
Implementation of malloc based allocator.
void allPacketsReturnIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port allPacketsReturnIn.
static constexpr FwIndexType getNum_dataIn_InputPorts()
static constexpr FwIndexType getNum_logOut_OutputPorts()