11#if FW_ENABLE_TEXT_LOGGING
21 void GenericHubComponentBase ::
30 port < static_cast<PlatformIntType>(this->getNum_LogRecv_InputPorts());
33 this->m_LogRecv_InputPort[port].init();
34 this->m_LogRecv_InputPort[port].addCallComp(
38 this->m_LogRecv_InputPort[port].setPortNum(port);
40#if FW_OBJECT_NAMES == 1
49 this->m_LogRecv_InputPort[port].setObjName(portName);
56 port < static_cast<PlatformIntType>(this->getNum_TlmRecv_InputPorts());
59 this->m_TlmRecv_InputPort[port].init();
60 this->m_TlmRecv_InputPort[port].addCallComp(
64 this->m_TlmRecv_InputPort[port].setPortNum(port);
66#if FW_OBJECT_NAMES == 1
75 this->m_TlmRecv_InputPort[port].setObjName(portName);
82 port < static_cast<PlatformIntType>(this->getNum_buffersIn_InputPorts());
85 this->m_buffersIn_InputPort[port].init();
86 this->m_buffersIn_InputPort[port].addCallComp(
90 this->m_buffersIn_InputPort[port].setPortNum(port);
92#if FW_OBJECT_NAMES == 1
101 this->m_buffersIn_InputPort[port].setObjName(portName);
108 port < static_cast<PlatformIntType>(this->getNum_dataIn_InputPorts());
111 this->m_dataIn_InputPort[port].init();
112 this->m_dataIn_InputPort[port].addCallComp(
116 this->m_dataIn_InputPort[port].setPortNum(port);
118#if FW_OBJECT_NAMES == 1
127 this->m_dataIn_InputPort[port].setObjName(portName);
134 port < static_cast<PlatformIntType>(this->getNum_portIn_InputPorts());
137 this->m_portIn_InputPort[port].init();
138 this->m_portIn_InputPort[port].addCallComp(
142 this->m_portIn_InputPort[port].setPortNum(port);
144#if FW_OBJECT_NAMES == 1
153 this->m_portIn_InputPort[port].setObjName(portName);
160 port < static_cast<PlatformIntType>(this->getNum_LogSend_OutputPorts());
163 this->m_LogSend_OutputPort[port].init();
165#if FW_OBJECT_NAMES == 1
174 this->m_LogSend_OutputPort[port].setObjName(portName);
181 port < static_cast<PlatformIntType>(this->getNum_TlmSend_OutputPorts());
184 this->m_TlmSend_OutputPort[port].init();
186#if FW_OBJECT_NAMES == 1
195 this->m_TlmSend_OutputPort[port].setObjName(portName);
202 port < static_cast<PlatformIntType>(this->getNum_bufferDeallocate_OutputPorts());
205 this->m_bufferDeallocate_OutputPort[port].init();
207#if FW_OBJECT_NAMES == 1
216 this->m_bufferDeallocate_OutputPort[port].setObjName(portName);
223 port < static_cast<PlatformIntType>(this->getNum_buffersOut_OutputPorts());
226 this->m_buffersOut_OutputPort[port].init();
228#if FW_OBJECT_NAMES == 1
237 this->m_buffersOut_OutputPort[port].setObjName(portName);
244 port < static_cast<PlatformIntType>(this->getNum_dataInDeallocate_OutputPorts());
247 this->m_dataInDeallocate_OutputPort[port].init();
249#if FW_OBJECT_NAMES == 1
258 this->m_dataInDeallocate_OutputPort[port].setObjName(portName);
265 port < static_cast<PlatformIntType>(this->getNum_dataOut_OutputPorts());
268 this->m_dataOut_OutputPort[port].init();
270#if FW_OBJECT_NAMES == 1
279 this->m_dataOut_OutputPort[port].setObjName(portName);
286 port < static_cast<PlatformIntType>(this->getNum_dataOutAllocate_OutputPorts());
289 this->m_dataOutAllocate_OutputPort[port].init();
291#if FW_OBJECT_NAMES == 1
300 this->m_dataOutAllocate_OutputPort[port].setObjName(portName);
307 port < static_cast<PlatformIntType>(this->getNum_portOut_OutputPorts());
310 this->m_portOut_OutputPort[port].init();
312#if FW_OBJECT_NAMES == 1
321 this->m_portOut_OutputPort[port].setObjName(portName);
21 void GenericHubComponentBase :: {
…}
334 portNum < this->getNum_LogRecv_InputPorts(),
338 return &this->m_LogRecv_InputPort[portNum];
345 portNum < this->getNum_TlmRecv_InputPorts(),
349 return &this->m_TlmRecv_InputPort[portNum];
356 portNum < this->getNum_buffersIn_InputPorts(),
360 return &this->m_buffersIn_InputPort[portNum];
367 portNum < this->getNum_dataIn_InputPorts(),
371 return &this->m_dataIn_InputPort[portNum];
378 Fw::InputSerializePort* GenericHubComponentBase ::
382 portNum < this->getNum_portIn_InputPorts(),
386 return &this->m_portIn_InputPort[portNum];
378 Fw::InputSerializePort* GenericHubComponentBase :: {
…}
393 void GenericHubComponentBase ::
394 set_LogSend_OutputPort(
400 portNum < this->getNum_LogSend_OutputPorts(),
404 this->m_LogSend_OutputPort[portNum].addCallPort(port);
393 void GenericHubComponentBase :: {
…}
407 void GenericHubComponentBase ::
408 set_TlmSend_OutputPort(
414 portNum < this->getNum_TlmSend_OutputPorts(),
418 this->m_TlmSend_OutputPort[portNum].addCallPort(port);
407 void GenericHubComponentBase :: {
…}
421 void GenericHubComponentBase ::
422 set_bufferDeallocate_OutputPort(
428 portNum < this->getNum_bufferDeallocate_OutputPorts(),
432 this->m_bufferDeallocate_OutputPort[portNum].addCallPort(port);
421 void GenericHubComponentBase :: {
…}
435 void GenericHubComponentBase ::
436 set_buffersOut_OutputPort(
442 portNum < this->getNum_buffersOut_OutputPorts(),
446 this->m_buffersOut_OutputPort[portNum].addCallPort(port);
435 void GenericHubComponentBase :: {
…}
449 void GenericHubComponentBase ::
450 set_dataInDeallocate_OutputPort(
456 portNum < this->getNum_dataInDeallocate_OutputPorts(),
460 this->m_dataInDeallocate_OutputPort[portNum].addCallPort(port);
449 void GenericHubComponentBase :: {
…}
463 void GenericHubComponentBase ::
464 set_dataOut_OutputPort(
470 portNum < this->getNum_dataOut_OutputPorts(),
474 this->m_dataOut_OutputPort[portNum].addCallPort(port);
463 void GenericHubComponentBase :: {
…}
477 void GenericHubComponentBase ::
478 set_dataOutAllocate_OutputPort(
484 portNum < this->getNum_dataOutAllocate_OutputPorts(),
488 this->m_dataOutAllocate_OutputPort[portNum].addCallPort(port);
477 void GenericHubComponentBase :: {
…}
491#if FW_PORT_SERIALIZATION
497 void GenericHubComponentBase ::
498 set_LogSend_OutputPort(
500 Fw::InputSerializePort* port
504 portNum < this->getNum_LogSend_OutputPorts(),
508 this->m_LogSend_OutputPort[portNum].registerSerialPort(port);
511 void GenericHubComponentBase ::
512 set_TlmSend_OutputPort(
514 Fw::InputSerializePort* port
518 portNum < this->getNum_TlmSend_OutputPorts(),
522 this->m_TlmSend_OutputPort[portNum].registerSerialPort(port);
525 void GenericHubComponentBase ::
526 set_bufferDeallocate_OutputPort(
528 Fw::InputSerializePort* port
532 portNum < this->getNum_bufferDeallocate_OutputPorts(),
536 this->m_bufferDeallocate_OutputPort[portNum].registerSerialPort(port);
539 void GenericHubComponentBase ::
540 set_buffersOut_OutputPort(
542 Fw::InputSerializePort* port
546 portNum < this->getNum_buffersOut_OutputPorts(),
550 this->m_buffersOut_OutputPort[portNum].registerSerialPort(port);
553 void GenericHubComponentBase ::
554 set_dataInDeallocate_OutputPort(
556 Fw::InputSerializePort* port
560 portNum < this->getNum_dataInDeallocate_OutputPorts(),
564 this->m_dataInDeallocate_OutputPort[portNum].registerSerialPort(port);
567 void GenericHubComponentBase ::
568 set_dataOut_OutputPort(
570 Fw::InputSerializePort* port
574 portNum < this->getNum_dataOut_OutputPorts(),
578 this->m_dataOut_OutputPort[portNum].registerSerialPort(port);
583#if FW_PORT_SERIALIZATION
589 void GenericHubComponentBase ::
590 set_portOut_OutputPort(
596 portNum < this->getNum_portOut_OutputPorts(),
600 this->m_portOut_OutputPort[portNum].registerSerialPort(port);
609 GenericHubComponentBase ::
610 GenericHubComponentBase(
const char* compName) :
611 Fw::PassiveComponentBase(compName)
609 GenericHubComponentBase :: {
…}
616 GenericHubComponentBase ::
617 ~GenericHubComponentBase()
616 GenericHubComponentBase :: {
…}
627 getNum_LogRecv_InputPorts()
const
633 getNum_TlmRecv_InputPorts()
const
639 getNum_buffersIn_InputPorts()
const
645 getNum_dataIn_InputPorts()
const
655 getNum_portIn_InputPorts()
const
665 getNum_LogSend_OutputPorts()
const
671 getNum_TlmSend_OutputPorts()
const
677 getNum_bufferDeallocate_OutputPorts()
const
683 getNum_buffersOut_OutputPorts()
const
689 getNum_dataInDeallocate_OutputPorts()
const
695 getNum_dataOut_OutputPorts()
const
701 getNum_dataOutAllocate_OutputPorts()
const
711 getNum_portOut_OutputPorts()
const
720 bool GenericHubComponentBase ::
724 portNum < this->getNum_LogSend_OutputPorts(),
728 return this->m_LogSend_OutputPort[portNum].isConnected();
720 bool GenericHubComponentBase :: {
…}
731 bool GenericHubComponentBase ::
735 portNum < this->getNum_TlmSend_OutputPorts(),
739 return this->m_TlmSend_OutputPort[portNum].isConnected();
731 bool GenericHubComponentBase :: {
…}
742 bool GenericHubComponentBase ::
746 portNum < this->getNum_bufferDeallocate_OutputPorts(),
750 return this->m_bufferDeallocate_OutputPort[portNum].isConnected();
742 bool GenericHubComponentBase :: {
…}
753 bool GenericHubComponentBase ::
757 portNum < this->getNum_buffersOut_OutputPorts(),
761 return this->m_buffersOut_OutputPort[portNum].isConnected();
753 bool GenericHubComponentBase :: {
…}
764 bool GenericHubComponentBase ::
768 portNum < this->getNum_dataInDeallocate_OutputPorts(),
772 return this->m_dataInDeallocate_OutputPort[portNum].isConnected();
764 bool GenericHubComponentBase :: {
…}
775 bool GenericHubComponentBase ::
779 portNum < this->getNum_dataOut_OutputPorts(),
783 return this->m_dataOut_OutputPort[portNum].isConnected();
775 bool GenericHubComponentBase :: {
…}
786 bool GenericHubComponentBase ::
790 portNum < this->getNum_dataOutAllocate_OutputPorts(),
794 return this->m_dataOutAllocate_OutputPort[portNum].isConnected();
786 bool GenericHubComponentBase :: {
…}
801 bool GenericHubComponentBase ::
805 portNum < this->getNum_portOut_OutputPorts(),
809 return this->m_portOut_OutputPort[portNum].isConnected();
801 bool GenericHubComponentBase :: {
…}
818 void GenericHubComponentBase ::
829 portNum < this->getNum_LogRecv_InputPorts(),
834 this->LogRecv_handler(
818 void GenericHubComponentBase :: {
…}
843 void GenericHubComponentBase ::
853 portNum < this->getNum_TlmRecv_InputPorts(),
858 this->TlmRecv_handler(
843 void GenericHubComponentBase :: {
…}
866 void GenericHubComponentBase ::
867 buffersIn_handlerBase(
874 portNum < this->getNum_buffersIn_InputPorts(),
879 this->buffersIn_handler(
866 void GenericHubComponentBase :: {
…}
885 void GenericHubComponentBase ::
893 portNum < this->getNum_dataIn_InputPorts(),
898 this->dataIn_handler(
885 void GenericHubComponentBase :: {
…}
910 void GenericHubComponentBase ::
918 portNum < this->getNum_portIn_InputPorts(),
923 this->portIn_handler(
910 void GenericHubComponentBase :: {
…}
933 void GenericHubComponentBase ::
943 portNum < this->getNum_LogSend_OutputPorts(),
946 this->m_LogSend_OutputPort[portNum].invoke(
933 void GenericHubComponentBase :: {
…}
954 void GenericHubComponentBase ::
963 portNum < this->getNum_TlmSend_OutputPorts(),
966 this->m_TlmSend_OutputPort[portNum].invoke(
954 void GenericHubComponentBase :: {
…}
973 void GenericHubComponentBase ::
974 bufferDeallocate_out(
980 portNum < this->getNum_bufferDeallocate_OutputPorts(),
983 this->m_bufferDeallocate_OutputPort[portNum].invoke(
973 void GenericHubComponentBase :: {
…}
988 void GenericHubComponentBase ::
995 portNum < this->getNum_buffersOut_OutputPorts(),
998 this->m_buffersOut_OutputPort[portNum].invoke(
988 void GenericHubComponentBase :: {
…}
1003 void GenericHubComponentBase ::
1004 dataInDeallocate_out(
1010 portNum < this->getNum_dataInDeallocate_OutputPorts(),
1013 this->m_dataInDeallocate_OutputPort[portNum].invoke(
1003 void GenericHubComponentBase :: {
…}
1018 void GenericHubComponentBase ::
1025 portNum < this->getNum_dataOut_OutputPorts(),
1028 this->m_dataOut_OutputPort[portNum].invoke(
1018 void GenericHubComponentBase :: {
…}
1034 dataOutAllocate_out(
1040 portNum < this->getNum_dataOutAllocate_OutputPorts(),
1043 return this->m_dataOutAllocate_OutputPort[portNum].invoke(
1059 portNum < this->getNum_portOut_OutputPorts(),
1062 return this->m_portOut_OutputPort[portNum].invokeSerial(
1071 void GenericHubComponentBase ::
1092 void GenericHubComponentBase ::
1102 GenericHubComponentBase* compPtr =
static_cast<GenericHubComponentBase*
>(callComp);
1111 void GenericHubComponentBase ::
1119 GenericHubComponentBase* compPtr =
static_cast<GenericHubComponentBase*
>(callComp);
1120 compPtr->buffersIn_handlerBase(
1126 void GenericHubComponentBase ::
1134 GenericHubComponentBase* compPtr =
static_cast<GenericHubComponentBase*
>(callComp);
1135 compPtr->dataIn_handlerBase(
1145#if FW_PORT_SERIALIZATION
1147 void GenericHubComponentBase ::
1155 GenericHubComponentBase* compPtr =
static_cast<GenericHubComponentBase*
>(callComp);
1156 compPtr->portIn_handlerBase(
PlatformIntType NATIVE_INT_TYPE
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
#define PRI_PlatformIntType
PlatformAssertArgType FwAssertArgType
Enum representing event severity.
void init()
Object initializer.
Auto-generated base for GenericHub component.
void TlmRecv_handlerBase(NATIVE_INT_TYPE portNum, FwChanIdType id, Fw::Time &timeTag, Fw::TlmBuffer &val)
Handler base-class function for input port TlmRecv.
void LogRecv_handlerBase(NATIVE_INT_TYPE portNum, FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args)
Handler base-class function for input port LogRecv.
SerializeStatus
forward declaration for string