10#if FW_ENABLE_TEXT_LOGGING
20 void StreamCrossoverComponentBase ::
29 port < static_cast<FwIndexType>(this->getNum_streamIn_InputPorts());
32 this->m_streamIn_InputPort[port].init();
33 this->m_streamIn_InputPort[port].addCallComp(
37 this->m_streamIn_InputPort[port].setPortNum(port);
39#if FW_OBJECT_NAMES == 1
43 this->m_objName.toChar(),
46 this->m_streamIn_InputPort[port].setObjName(portName.
toChar());
53 port < static_cast<FwIndexType>(this->getNum_logOut_OutputPorts());
56 this->m_logOut_OutputPort[port].init();
58#if FW_OBJECT_NAMES == 1
62 this->m_objName.toChar(),
65 this->m_logOut_OutputPort[port].setObjName(portName.
toChar());
69#if FW_ENABLE_TEXT_LOGGING == 1
73 port < static_cast<FwIndexType>(this->getNum_logTextOut_OutputPorts());
76 this->m_logTextOut_OutputPort[port].init();
78#if FW_OBJECT_NAMES == 1
82 this->m_objName.toChar(),
85 this->m_logTextOut_OutputPort[port].setObjName(portName.
toChar());
93 port < static_cast<FwIndexType>(this->getNum_timeCaller_OutputPorts());
96 this->m_timeCaller_OutputPort[port].init();
98#if FW_OBJECT_NAMES == 1
102 this->m_objName.toChar(),
105 this->m_timeCaller_OutputPort[port].setObjName(portName.
toChar());
112 port < static_cast<FwIndexType>(this->getNum_errorDeallocate_OutputPorts());
115 this->m_errorDeallocate_OutputPort[port].init();
117#if FW_OBJECT_NAMES == 1
121 this->m_objName.toChar(),
124 this->m_errorDeallocate_OutputPort[port].setObjName(portName.
toChar());
131 port < static_cast<FwIndexType>(this->getNum_streamOut_OutputPorts());
134 this->m_streamOut_OutputPort[port].init();
136#if FW_OBJECT_NAMES == 1
140 this->m_objName.toChar(),
143 this->m_streamOut_OutputPort[port].setObjName(portName.
toChar());
156 portNum < this->getNum_streamIn_InputPorts(),
160 return &this->m_streamIn_InputPort[portNum];
167 void StreamCrossoverComponentBase ::
168 set_logOut_OutputPort(
174 portNum < this->getNum_logOut_OutputPorts(),
178 this->m_logOut_OutputPort[portNum].addCallPort(port);
181#if FW_ENABLE_TEXT_LOGGING == 1
183 void StreamCrossoverComponentBase ::
184 set_logTextOut_OutputPort(
190 portNum < this->getNum_logTextOut_OutputPorts(),
194 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
199 void StreamCrossoverComponentBase ::
200 set_timeCaller_OutputPort(
206 portNum < this->getNum_timeCaller_OutputPorts(),
210 this->m_timeCaller_OutputPort[portNum].addCallPort(port);
217 void StreamCrossoverComponentBase ::
218 set_errorDeallocate_OutputPort(
224 portNum < this->getNum_errorDeallocate_OutputPorts(),
228 this->m_errorDeallocate_OutputPort[portNum].addCallPort(port);
231 void StreamCrossoverComponentBase ::
232 set_streamOut_OutputPort(
238 portNum < this->getNum_streamOut_OutputPorts(),
242 this->m_streamOut_OutputPort[portNum].addCallPort(port);
245#if FW_PORT_SERIALIZATION
251 void StreamCrossoverComponentBase ::
252 set_logOut_OutputPort(
254 Fw::InputSerializePort* port
258 portNum < this->getNum_logOut_OutputPorts(),
262 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
265#if FW_ENABLE_TEXT_LOGGING == 1
267 void StreamCrossoverComponentBase ::
268 set_logTextOut_OutputPort(
270 Fw::InputSerializePort* port
274 portNum < this->getNum_logTextOut_OutputPorts(),
278 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
283 void StreamCrossoverComponentBase ::
284 set_timeCaller_OutputPort(
286 Fw::InputSerializePort* port
290 portNum < this->getNum_timeCaller_OutputPorts(),
294 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
299#if FW_PORT_SERIALIZATION
305 void StreamCrossoverComponentBase ::
306 set_errorDeallocate_OutputPort(
308 Fw::InputSerializePort* port
312 portNum < this->getNum_errorDeallocate_OutputPorts(),
316 this->m_errorDeallocate_OutputPort[portNum].registerSerialPort(port);
325 StreamCrossoverComponentBase ::
326 StreamCrossoverComponentBase(
const char* compName) :
327 Fw::PassiveComponentBase(compName)
332 StreamCrossoverComponentBase ::
333 ~StreamCrossoverComponentBase()
343 getNum_streamIn_InputPorts()
const
353 getNum_logOut_OutputPorts()
const
358#if FW_ENABLE_TEXT_LOGGING == 1
361 getNum_logTextOut_OutputPorts()
const
369 getNum_timeCaller_OutputPorts()
const
379 getNum_errorDeallocate_OutputPorts()
const
385 getNum_streamOut_OutputPorts()
const
394 bool StreamCrossoverComponentBase ::
398 portNum < this->getNum_logOut_OutputPorts(),
402 return this->m_logOut_OutputPort[portNum].isConnected();
405#if FW_ENABLE_TEXT_LOGGING == 1
407 bool StreamCrossoverComponentBase ::
408 isConnected_logTextOut_OutputPort(
FwIndexType portNum)
411 portNum < this->getNum_logTextOut_OutputPorts(),
415 return this->m_logTextOut_OutputPort[portNum].isConnected();
420 bool StreamCrossoverComponentBase ::
421 isConnected_timeCaller_OutputPort(
FwIndexType portNum)
424 portNum < this->getNum_timeCaller_OutputPorts(),
428 return this->m_timeCaller_OutputPort[portNum].isConnected();
435 bool StreamCrossoverComponentBase ::
436 isConnected_errorDeallocate_OutputPort(
FwIndexType portNum)
439 portNum < this->getNum_errorDeallocate_OutputPorts(),
443 return this->m_errorDeallocate_OutputPort[portNum].isConnected();
446 bool StreamCrossoverComponentBase ::
447 isConnected_streamOut_OutputPort(
FwIndexType portNum)
450 portNum < this->getNum_streamOut_OutputPorts(),
454 return this->m_streamOut_OutputPort[portNum].isConnected();
463 void StreamCrossoverComponentBase ::
464 streamIn_handlerBase(
472 portNum < this->getNum_streamIn_InputPorts(),
477 this->streamIn_handler(
488 void StreamCrossoverComponentBase ::
495 portNum < this->getNum_errorDeallocate_OutputPorts(),
498 this->m_errorDeallocate_OutputPort[portNum].invoke(
510 portNum < this->getNum_streamOut_OutputPorts(),
513 return this->m_streamOut_OutputPort[portNum].invoke(
522 void StreamCrossoverComponentBase ::
527 if (this->m_timeCaller_OutputPort[0].isConnected()) {
528 this->m_timeCaller_OutputPort[0].invoke(_logTime);
533 _id = this->getIdBase() + EVENTID_STREAMOUTERROR;
536 if (this->m_logOut_OutputPort[0].isConnected()) {
540#if FW_AMPCS_COMPATIBLE
549#if FW_AMPCS_COMPATIBLE
559 _status = _logBuff.
serialize(sendStatus);
565 this->m_logOut_OutputPort[0].invoke(
574#if FW_ENABLE_TEXT_LOGGING
575 if (this->m_logTextOut_OutputPort[0].isConnected()) {
576#if FW_OBJECT_NAMES == 1
577 const char* _formatString =
578 "(%s) %s: StreamCrossover StreamOut Error: %s";
580 const char* _formatString =
581 "%s: StreamCrossover StreamOut Error: %s";
585 sendStatus.toString(sendStatusStr);
591 this->m_objName.toChar(),
597 this->m_logTextOut_OutputPort[0].invoke(
614 if (this->m_timeCaller_OutputPort[0].isConnected()) {
616 this->m_timeCaller_OutputPort[0].invoke(_time);
628 void StreamCrossoverComponentBase ::
uint8_t U8
8-bit unsigned integer
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
#define PRI_PlatformIntType
@ TB_NONE
No time base has been established.
PlatformAssertArgType FwAssertArgType
PlatformIndexType FwIndexType
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects)/*#en...
Status associated with the received data.
Status returned by the send call.
@ SERIALIZED_SIZE
The size of the serial representation.
Auto-generated base for StreamCrossover component.
void streamIn_handlerBase(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Handler base-class function for input port streamIn.
@ WARNING_HI
A serious but recoverable event.
void init()
Object initializer.
const char * toChar() const
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
void format(const CHAR *formatString,...)
write formatted string to buffer
const char * toChar() const
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.