10 #if FW_ENABLE_TEXT_LOGGING 32 this->m_streamIn_InputPort[port].
init();
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());
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());
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());
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());
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());
157 static_cast<FwAssertArgType>(portNum)
160 return &this->m_streamIn_InputPort[portNum];
175 static_cast<FwAssertArgType>(portNum)
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(),
191 static_cast<FwAssertArgType>(portNum)
194 this->m_logTextOut_OutputPort[portNum].addCallPort(port);
207 static_cast<FwAssertArgType>(portNum)
210 this->m_timeCaller_OutputPort[portNum].
addCallPort(port);
225 static_cast<FwAssertArgType>(portNum)
228 this->m_errorDeallocate_OutputPort[portNum].
addCallPort(port);
239 static_cast<FwAssertArgType>(portNum)
242 this->m_streamOut_OutputPort[portNum].
addCallPort(port);
245 #if FW_PORT_SERIALIZATION 254 Fw::InputSerializePort* port
259 static_cast<FwAssertArgType>(portNum)
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(),
275 static_cast<FwAssertArgType>(portNum)
278 this->m_logTextOut_OutputPort[portNum].registerSerialPort(port);
286 Fw::InputSerializePort* port
291 static_cast<FwAssertArgType>(portNum)
294 this->m_timeCaller_OutputPort[portNum].registerSerialPort(port);
299 #if FW_PORT_SERIALIZATION 308 Fw::InputSerializePort* port
313 static_cast<FwAssertArgType>(portNum)
316 this->m_errorDeallocate_OutputPort[portNum].registerSerialPort(port);
327 Fw::PassiveComponentBase(compName)
358 #if FW_ENABLE_TEXT_LOGGING == 1 361 getNum_logTextOut_OutputPorts()
const 399 static_cast<FwAssertArgType>(portNum)
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(),
412 static_cast<FwAssertArgType>(portNum)
415 return this->m_logTextOut_OutputPort[portNum].isConnected();
425 static_cast<FwAssertArgType>(portNum)
428 return this->m_timeCaller_OutputPort[portNum].
isConnected();
440 static_cast<FwAssertArgType>(portNum)
443 return this->m_errorDeallocate_OutputPort[portNum].
isConnected();
451 static_cast<FwAssertArgType>(portNum)
454 return this->m_streamOut_OutputPort[portNum].
isConnected();
473 static_cast<FwAssertArgType>(portNum)
496 static_cast<FwAssertArgType>(portNum)
498 this->m_errorDeallocate_OutputPort[portNum].
invoke(
511 static_cast<FwAssertArgType>(portNum)
513 return this->m_streamOut_OutputPort[portNum].
invoke(
527 if (this->m_timeCaller_OutputPort[0].isConnected()) {
528 this->m_timeCaller_OutputPort[0].
invoke(_logTime);
536 if (this->m_logOut_OutputPort[0].isConnected()) {
540 #if FW_AMPCS_COMPATIBLE 542 _status = _logBuff.
serialize(static_cast<U8>(1));
545 static_cast<FwAssertArgType>(_status)
549 #if FW_AMPCS_COMPATIBLE 556 static_cast<FwAssertArgType>(_status)
559 _status = _logBuff.
serialize(sendStatus);
562 static_cast<FwAssertArgType>(_status)
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 ::
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
The size of the serial representation.
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
Status associated with the received data.
void errorDeallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port errorDeallocate.
const char * toChar() const
bool isConnected_errorDeallocate_OutputPort(FwIndexType portNum)
FwIndexType getNum_logOut_OutputPorts() const
FwIndexType getNum_errorDeallocate_OutputPorts() const
PlatformIndexType FwIndexType
void log_WARNING_HI_StreamOutError(Drv::SendStatus sendStatus) const
FwIndexType getNum_streamIn_InputPorts() const
void init()
Object initializer.
SerializeStatus
forward declaration for string
virtual ~StreamCrossoverComponentBase()
Destroy StreamCrossoverComponentBase object.
virtual void streamIn_handler(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)=0
Handler for input port streamIn.
void init()
Initialization function.
void set_logOut_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to logOut[portNum].
void set_streamOut_OutputPort(FwIndexType portNum, Drv::InputByteStreamSendPort *port)
Connect port to streamOut[portNum].
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
Auto-generated base for StreamCrossover component.
void invoke(Fw::Time &time) const
Invoke a port interface.
void streamIn_handlerBase(FwIndexType portNum, Fw::Buffer &recvBuffer, const Drv::RecvStatus &recvStatus)
Handler base-class function for input port streamIn.
Drv::InputByteStreamRecvPort * get_streamIn_InputPort(FwIndexType portNum)
const char * toChar() const
No time base has been established.
StreamCrossoverComponentBase(const char *compName="")
Construct StreamCrossoverComponentBase object.
A serious but recoverable event.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
void set_errorDeallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to errorDeallocate[portNum].
#define PRI_PlatformIntType
Status returned by the send call.
bool isConnected_streamOut_OutputPort(FwIndexType portNum)
void init()
Initialization function.
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
bool isConnected_logOut_OutputPort(FwIndexType portNum)
void init()
Initialization function.
#define FW_NUM_ARRAY_ELEMENTS(a)
number of elements in an array
void addCallPort(InputLogPort *callPort)
Register an input port.
bool isConnected_timeCaller_OutputPort(FwIndexType portNum)
void addCallPort(InputByteStreamSendPort *callPort)
Register an input port.
void set_timeCaller_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to timeCaller[portNum].
FwIndexType getNum_timeCaller_OutputPorts() const
FwIndexType getNum_streamOut_OutputPorts() const
Indicates buffer failed to send to streamOut.
Drv::SendStatus invoke(Fw::Buffer &sendBuffer) const
Invoke a port interface.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
Drv::SendStatus streamOut_out(FwIndexType portNum, Fw::Buffer &sendBuffer)
Invoke output port streamOut.