11#if FW_ENABLE_TEXT_LOGGING
21 void StreamCrossoverComponentBase ::
30 port < static_cast<PlatformIntType>(this->getNum_streamIn_InputPorts());
33 this->m_streamIn_InputPort[port].init();
34 this->m_streamIn_InputPort[port].addCallComp(
38 this->m_streamIn_InputPort[port].setPortNum(port);
40#if FW_OBJECT_NAMES == 1
47 char portName[2*FW_OBJ_NAME_MAX_SIZE];
55 this->m_streamIn_InputPort[port].setObjName(portName);
62 port < static_cast<PlatformIntType>(this->getNum_logOut_OutputPorts());
65 this->m_logOut_OutputPort[port].init();
67#if FW_OBJECT_NAMES == 1
74 char portName[2*FW_OBJ_NAME_MAX_SIZE];
82 this->m_logOut_OutputPort[port].setObjName(portName);
86#if FW_ENABLE_TEXT_LOGGING == 1
90 port < static_cast<PlatformIntType>(this->getNum_logTextOut_OutputPorts());
93 this->m_logTextOut_OutputPort[port].init();
95#if FW_OBJECT_NAMES == 1
102 char portName[2*FW_OBJ_NAME_MAX_SIZE];
110 this->m_logTextOut_OutputPort[port].setObjName(portName);
118 port < static_cast<PlatformIntType>(this->getNum_timeCaller_OutputPorts());
121 this->m_timeCaller_OutputPort[port].init();
123#if FW_OBJECT_NAMES == 1
130 char portName[2*FW_OBJ_NAME_MAX_SIZE];
138 this->m_timeCaller_OutputPort[port].setObjName(portName);
145 port < static_cast<PlatformIntType>(this->getNum_errorDeallocate_OutputPorts());
148 this->m_errorDeallocate_OutputPort[port].init();
150#if FW_OBJECT_NAMES == 1
157 char portName[2*FW_OBJ_NAME_MAX_SIZE];
165 this->m_errorDeallocate_OutputPort[port].setObjName(portName);
172 port < static_cast<PlatformIntType>(this->getNum_streamOut_OutputPorts());
175 this->m_streamOut_OutputPort[port].init();
177#if FW_OBJECT_NAMES == 1
184 char portName[2*FW_OBJ_NAME_MAX_SIZE];
192 this->m_streamOut_OutputPort[port].setObjName(portName);
21 void StreamCrossoverComponentBase :: {
…}
205 portNum < this->getNum_streamIn_InputPorts(),
209 return &this->m_streamIn_InputPort[portNum];
216 void StreamCrossoverComponentBase ::
217 set_logOut_OutputPort(
223 portNum < this->getNum_logOut_OutputPorts(),
227 this->m_logOut_OutputPort[portNum].addCallPort(port);
216 void StreamCrossoverComponentBase :: {
…}
230#if FW_ENABLE_TEXT_LOGGING == 1
232 void StreamCrossoverComponentBase ::
233 set_logTextOut_OutputPort(
239 portNum < this->getNum_logTextOut_OutputPorts(),
243 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
248 void StreamCrossoverComponentBase ::
249 set_timeCaller_OutputPort(
255 portNum < this->getNum_timeCaller_OutputPorts(),
259 this->m_timeCaller_OutputPort[portNum].addCallPort(port);
248 void StreamCrossoverComponentBase :: {
…}
266 void StreamCrossoverComponentBase ::
267 set_errorDeallocate_OutputPort(
273 portNum < this->getNum_errorDeallocate_OutputPorts(),
277 this->m_errorDeallocate_OutputPort[portNum].addCallPort(port);
266 void StreamCrossoverComponentBase :: {
…}
280 void StreamCrossoverComponentBase ::
281 set_streamOut_OutputPort(
287 portNum < this->getNum_streamOut_OutputPorts(),
291 this->m_streamOut_OutputPort[portNum].addCallPort(port);
280 void StreamCrossoverComponentBase :: {
…}
294#if FW_PORT_SERIALIZATION
300 void StreamCrossoverComponentBase ::
301 set_logOut_OutputPort(
303 Fw::InputSerializePort* port
307 portNum < this->getNum_logOut_OutputPorts(),
311 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
314#if FW_ENABLE_TEXT_LOGGING == 1
316 void StreamCrossoverComponentBase ::
317 set_logTextOut_OutputPort(
319 Fw::InputSerializePort* port
323 portNum < this->getNum_logTextOut_OutputPorts(),
327 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
332 void StreamCrossoverComponentBase ::
333 set_timeCaller_OutputPort(
335 Fw::InputSerializePort* port
339 portNum < this->getNum_timeCaller_OutputPorts(),
343 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
348#if FW_PORT_SERIALIZATION
354 void StreamCrossoverComponentBase ::
355 set_errorDeallocate_OutputPort(
357 Fw::InputSerializePort* port
361 portNum < this->getNum_errorDeallocate_OutputPorts(),
365 this->m_errorDeallocate_OutputPort[portNum].registerSerialPort(port);
374 StreamCrossoverComponentBase ::
375 StreamCrossoverComponentBase(
const char* compName) :
376 Fw::PassiveComponentBase(compName)
374 StreamCrossoverComponentBase :: {
…}
381 StreamCrossoverComponentBase ::
382 ~StreamCrossoverComponentBase()
381 StreamCrossoverComponentBase :: {
…}
392 getNum_streamIn_InputPorts()
const
402 getNum_logOut_OutputPorts()
const
407#if FW_ENABLE_TEXT_LOGGING == 1
410 getNum_logTextOut_OutputPorts()
const
418 getNum_timeCaller_OutputPorts()
const
428 getNum_errorDeallocate_OutputPorts()
const
434 getNum_streamOut_OutputPorts()
const
443 bool StreamCrossoverComponentBase ::
447 portNum < this->getNum_logOut_OutputPorts(),
451 return this->m_logOut_OutputPort[portNum].isConnected();
443 bool StreamCrossoverComponentBase :: {
…}
454#if FW_ENABLE_TEXT_LOGGING == 1
456 bool StreamCrossoverComponentBase ::
460 portNum < this->getNum_logTextOut_OutputPorts(),
464 return this->m_logTextOut_OutputPort[portNum].isConnected();
469 bool StreamCrossoverComponentBase ::
473 portNum < this->getNum_timeCaller_OutputPorts(),
477 return this->m_timeCaller_OutputPort[portNum].isConnected();
469 bool StreamCrossoverComponentBase :: {
…}
484 bool StreamCrossoverComponentBase ::
488 portNum < this->getNum_errorDeallocate_OutputPorts(),
492 return this->m_errorDeallocate_OutputPort[portNum].isConnected();
484 bool StreamCrossoverComponentBase :: {
…}
495 bool StreamCrossoverComponentBase ::
499 portNum < this->getNum_streamOut_OutputPorts(),
503 return this->m_streamOut_OutputPort[portNum].isConnected();
495 bool StreamCrossoverComponentBase :: {
…}
512 void StreamCrossoverComponentBase ::
513 streamIn_handlerBase(
521 portNum < this->getNum_streamIn_InputPorts(),
526 this->streamIn_handler(
512 void StreamCrossoverComponentBase :: {
…}
537 void StreamCrossoverComponentBase ::
544 portNum < this->getNum_errorDeallocate_OutputPorts(),
547 this->m_errorDeallocate_OutputPort[portNum].invoke(
537 void StreamCrossoverComponentBase :: {
…}
559 portNum < this->getNum_streamOut_OutputPorts(),
562 return this->m_streamOut_OutputPort[portNum].invoke(
571 void StreamCrossoverComponentBase ::
576 if (this->m_timeCaller_OutputPort[0].isConnected()) {
577 this->m_timeCaller_OutputPort[0].invoke(_logTime);
582 _id = this->getIdBase() + EVENTID_STREAMOUTERROR;
585 if (this->m_logOut_OutputPort[0].isConnected()) {
589#if FW_AMPCS_COMPATIBLE
598#if FW_AMPCS_COMPATIBLE
608 _status = _logBuff.
serialize(sendStatus);
614 this->m_logOut_OutputPort[0].invoke(
623#if FW_ENABLE_TEXT_LOGGING
624 if (this->m_logTextOut_OutputPort[0].isConnected()) {
625#if FW_OBJECT_NAMES == 1
626 const char* _formatString =
627 "(%s) %s: StreamCrossover StreamOut Error: %s";
629 const char* _formatString =
630 "%s: StreamCrossover StreamOut Error: %s";
636 sendStatus.toString(sendStatusStr);
652 this->m_logTextOut_OutputPort[0].invoke(
571 void StreamCrossoverComponentBase :: {
…}
669 if (this->m_timeCaller_OutputPort[0].isConnected()) {
671 this->m_timeCaller_OutputPort[0].invoke(_time);
683 void StreamCrossoverComponentBase ::
PlatformIntType NATIVE_INT_TYPE
uint8_t U8
8-bit unsigned integer
#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
@ TB_NONE
No time base has been established.
PlatformAssertArgType FwAssertArgType
#define FW_LOG_TEXT_BUFFER_SIZE
Max size of string for text log message.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects)
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(NATIVE_INT_TYPE 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.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
const char * toChar() const
gets char buffer
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.