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
49 this->m_streamIn_InputPort[port].setObjName(portName);
56 port < static_cast<PlatformIntType>(this->getNum_logOut_OutputPorts());
59 this->m_logOut_OutputPort[port].init();
61#if FW_OBJECT_NAMES == 1
70 this->m_logOut_OutputPort[port].setObjName(portName);
74#if FW_ENABLE_TEXT_LOGGING == 1
78 port < static_cast<PlatformIntType>(this->getNum_logTextOut_OutputPorts());
81 this->m_logTextOut_OutputPort[port].init();
83#if FW_OBJECT_NAMES == 1
92 this->m_logTextOut_OutputPort[port].setObjName(portName);
100 port < static_cast<PlatformIntType>(this->getNum_timeCaller_OutputPorts());
103 this->m_timeCaller_OutputPort[port].init();
105#if FW_OBJECT_NAMES == 1
114 this->m_timeCaller_OutputPort[port].setObjName(portName);
121 port < static_cast<PlatformIntType>(this->getNum_errorDeallocate_OutputPorts());
124 this->m_errorDeallocate_OutputPort[port].init();
126#if FW_OBJECT_NAMES == 1
135 this->m_errorDeallocate_OutputPort[port].setObjName(portName);
142 port < static_cast<PlatformIntType>(this->getNum_streamOut_OutputPorts());
145 this->m_streamOut_OutputPort[port].init();
147#if FW_OBJECT_NAMES == 1
156 this->m_streamOut_OutputPort[port].setObjName(portName);
21 void StreamCrossoverComponentBase :: {
…}
169 portNum < this->getNum_streamIn_InputPorts(),
173 return &this->m_streamIn_InputPort[portNum];
180 void StreamCrossoverComponentBase ::
181 set_logOut_OutputPort(
187 portNum < this->getNum_logOut_OutputPorts(),
191 this->m_logOut_OutputPort[portNum].addCallPort(port);
180 void StreamCrossoverComponentBase :: {
…}
194#if FW_ENABLE_TEXT_LOGGING == 1
196 void StreamCrossoverComponentBase ::
197 set_logTextOut_OutputPort(
203 portNum < this->getNum_logTextOut_OutputPorts(),
207 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
212 void StreamCrossoverComponentBase ::
213 set_timeCaller_OutputPort(
219 portNum < this->getNum_timeCaller_OutputPorts(),
223 this->m_timeCaller_OutputPort[portNum].addCallPort(port);
212 void StreamCrossoverComponentBase :: {
…}
230 void StreamCrossoverComponentBase ::
231 set_errorDeallocate_OutputPort(
237 portNum < this->getNum_errorDeallocate_OutputPorts(),
241 this->m_errorDeallocate_OutputPort[portNum].addCallPort(port);
230 void StreamCrossoverComponentBase :: {
…}
244 void StreamCrossoverComponentBase ::
245 set_streamOut_OutputPort(
251 portNum < this->getNum_streamOut_OutputPorts(),
255 this->m_streamOut_OutputPort[portNum].addCallPort(port);
244 void StreamCrossoverComponentBase :: {
…}
258#if FW_PORT_SERIALIZATION
264 void StreamCrossoverComponentBase ::
265 set_logOut_OutputPort(
267 Fw::InputSerializePort* port
271 portNum < this->getNum_logOut_OutputPorts(),
275 this->m_logOut_OutputPort[portNum].registerSerialPort(port);
278#if FW_ENABLE_TEXT_LOGGING == 1
280 void StreamCrossoverComponentBase ::
281 set_logTextOut_OutputPort(
283 Fw::InputSerializePort* port
287 portNum < this->getNum_logTextOut_OutputPorts(),
291 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
296 void StreamCrossoverComponentBase ::
297 set_timeCaller_OutputPort(
299 Fw::InputSerializePort* port
303 portNum < this->getNum_timeCaller_OutputPorts(),
307 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
312#if FW_PORT_SERIALIZATION
318 void StreamCrossoverComponentBase ::
319 set_errorDeallocate_OutputPort(
321 Fw::InputSerializePort* port
325 portNum < this->getNum_errorDeallocate_OutputPorts(),
329 this->m_errorDeallocate_OutputPort[portNum].registerSerialPort(port);
338 StreamCrossoverComponentBase ::
339 StreamCrossoverComponentBase(
const char* compName) :
340 Fw::PassiveComponentBase(compName)
338 StreamCrossoverComponentBase :: {
…}
345 StreamCrossoverComponentBase ::
346 ~StreamCrossoverComponentBase()
345 StreamCrossoverComponentBase :: {
…}
356 getNum_streamIn_InputPorts()
const
366 getNum_logOut_OutputPorts()
const
371#if FW_ENABLE_TEXT_LOGGING == 1
374 getNum_logTextOut_OutputPorts()
const
382 getNum_timeCaller_OutputPorts()
const
392 getNum_errorDeallocate_OutputPorts()
const
398 getNum_streamOut_OutputPorts()
const
407 bool StreamCrossoverComponentBase ::
411 portNum < this->getNum_logOut_OutputPorts(),
415 return this->m_logOut_OutputPort[portNum].isConnected();
407 bool StreamCrossoverComponentBase :: {
…}
418#if FW_ENABLE_TEXT_LOGGING == 1
420 bool StreamCrossoverComponentBase ::
424 portNum < this->getNum_logTextOut_OutputPorts(),
428 return this->m_logTextOut_OutputPort[portNum].isConnected();
433 bool StreamCrossoverComponentBase ::
437 portNum < this->getNum_timeCaller_OutputPorts(),
441 return this->m_timeCaller_OutputPort[portNum].isConnected();
433 bool StreamCrossoverComponentBase :: {
…}
448 bool StreamCrossoverComponentBase ::
452 portNum < this->getNum_errorDeallocate_OutputPorts(),
456 return this->m_errorDeallocate_OutputPort[portNum].isConnected();
448 bool StreamCrossoverComponentBase :: {
…}
459 bool StreamCrossoverComponentBase ::
463 portNum < this->getNum_streamOut_OutputPorts(),
467 return this->m_streamOut_OutputPort[portNum].isConnected();
459 bool StreamCrossoverComponentBase :: {
…}
476 void StreamCrossoverComponentBase ::
477 streamIn_handlerBase(
485 portNum < this->getNum_streamIn_InputPorts(),
490 this->streamIn_handler(
476 void StreamCrossoverComponentBase :: {
…}
501 void StreamCrossoverComponentBase ::
508 portNum < this->getNum_errorDeallocate_OutputPorts(),
511 this->m_errorDeallocate_OutputPort[portNum].invoke(
501 void StreamCrossoverComponentBase :: {
…}
523 portNum < this->getNum_streamOut_OutputPorts(),
526 return this->m_streamOut_OutputPort[portNum].invoke(
535 void StreamCrossoverComponentBase ::
540 if (this->m_timeCaller_OutputPort[0].isConnected()) {
541 this->m_timeCaller_OutputPort[0].invoke(_logTime);
546 _id = this->getIdBase() + EVENTID_STREAMOUTERROR;
549 if (this->m_logOut_OutputPort[0].isConnected()) {
553#if FW_AMPCS_COMPATIBLE
562#if FW_AMPCS_COMPATIBLE
572 _status = _logBuff.
serialize(sendStatus);
578 this->m_logOut_OutputPort[0].invoke(
587#if FW_ENABLE_TEXT_LOGGING
588 if (this->m_logTextOut_OutputPort[0].isConnected()) {
589#if FW_OBJECT_NAMES == 1
590 const char* _formatString =
591 "(%s) %s: StreamCrossover StreamOut Error: %s";
593 const char* _formatString =
594 "%s: StreamCrossover StreamOut Error: %s";
600 sendStatus.toString(sendStatusStr);
616 this->m_logTextOut_OutputPort[0].invoke(
535 void StreamCrossoverComponentBase :: {
…}
633 if (this->m_timeCaller_OutputPort[0].isConnected()) {
635 this->m_timeCaller_OutputPort[0].invoke(_time);
647 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.