9 #if FW_ENABLE_TEXT_LOGGING 32 this->m_portIn_InputPort[port].
init();
37 this->m_portIn_InputPort[port].
setPortNum(port);
39 #if FW_OBJECT_NAMES == 1 43 this->m_objName.toChar(),
46 this->m_portIn_InputPort[port].setObjName(portName.
toChar());
56 this->m_Log_OutputPort[port].
init();
58 #if FW_OBJECT_NAMES == 1 62 this->m_objName.toChar(),
65 this->m_Log_OutputPort[port].setObjName(portName.
toChar());
69 #if FW_ENABLE_TEXT_LOGGING == 1 73 port < static_cast<FwIndexType>(this->getNum_LogText_OutputPorts());
76 this->m_LogText_OutputPort[port].
init();
78 #if FW_OBJECT_NAMES == 1 82 this->m_objName.toChar(),
85 this->m_LogText_OutputPort[port].setObjName(portName.
toChar());
96 this->m_Time_OutputPort[port].
init();
98 #if FW_OBJECT_NAMES == 1 102 this->m_objName.toChar(),
105 this->m_Time_OutputPort[port].setObjName(portName.
toChar());
115 this->m_allocate_OutputPort[port].
init();
117 #if FW_OBJECT_NAMES == 1 121 this->m_objName.toChar(),
124 this->m_allocate_OutputPort[port].setObjName(portName.
toChar());
134 this->m_deallocate_OutputPort[port].
init();
136 #if FW_OBJECT_NAMES == 1 140 this->m_objName.toChar(),
143 this->m_deallocate_OutputPort[port].setObjName(portName.
toChar());
153 this->m_portOut_OutputPort[port].
init();
155 #if FW_OBJECT_NAMES == 1 159 this->m_objName.toChar(),
162 this->m_portOut_OutputPort[port].setObjName(portName.
toChar());
176 static_cast<FwAssertArgType>(portNum)
179 return &this->m_portIn_InputPort[portNum];
194 static_cast<FwAssertArgType>(portNum)
200 #if FW_ENABLE_TEXT_LOGGING == 1 202 void BufferRepeaterComponentBase ::
203 set_LogText_OutputPort(
209 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
210 static_cast<FwAssertArgType>(portNum)
213 this->m_LogText_OutputPort[portNum].addCallPort(port);
226 static_cast<FwAssertArgType>(portNum)
229 this->m_Time_OutputPort[portNum].
addCallPort(port);
244 static_cast<FwAssertArgType>(portNum)
247 this->m_allocate_OutputPort[portNum].
addCallPort(port);
258 static_cast<FwAssertArgType>(portNum)
261 this->m_deallocate_OutputPort[portNum].
addCallPort(port);
272 static_cast<FwAssertArgType>(portNum)
275 this->m_portOut_OutputPort[portNum].
addCallPort(port);
278 #if FW_PORT_SERIALIZATION 287 Fw::InputSerializePort* port
292 static_cast<FwAssertArgType>(portNum)
295 this->m_Log_OutputPort[portNum].registerSerialPort(port);
298 #if FW_ENABLE_TEXT_LOGGING == 1 300 void BufferRepeaterComponentBase ::
301 set_LogText_OutputPort(
303 Fw::InputSerializePort* port
307 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
308 static_cast<FwAssertArgType>(portNum)
311 this->m_LogText_OutputPort[portNum].registerSerialPort(port);
319 Fw::InputSerializePort* port
324 static_cast<FwAssertArgType>(portNum)
327 this->m_Time_OutputPort[portNum].registerSerialPort(port);
332 #if FW_PORT_SERIALIZATION 341 Fw::InputSerializePort* port
346 static_cast<FwAssertArgType>(portNum)
349 this->m_deallocate_OutputPort[portNum].registerSerialPort(port);
355 Fw::InputSerializePort* port
360 static_cast<FwAssertArgType>(portNum)
363 this->m_portOut_OutputPort[portNum].registerSerialPort(port);
374 Fw::PassiveComponentBase(compName)
394 static_cast<FwAssertArgType>(portNum)
397 return this->m_Log_OutputPort[portNum].
isConnected();
400 #if FW_ENABLE_TEXT_LOGGING == 1 402 bool BufferRepeaterComponentBase ::
403 isConnected_LogText_OutputPort(
FwIndexType portNum)
406 (0 <= portNum) && (portNum < this->getNum_LogText_OutputPorts()),
407 static_cast<FwAssertArgType>(portNum)
410 return this->m_LogText_OutputPort[portNum].isConnected();
420 static_cast<FwAssertArgType>(portNum)
423 return this->m_Time_OutputPort[portNum].
isConnected();
435 static_cast<FwAssertArgType>(portNum)
438 return this->m_allocate_OutputPort[portNum].
isConnected();
446 static_cast<FwAssertArgType>(portNum)
449 return this->m_deallocate_OutputPort[portNum].
isConnected();
457 static_cast<FwAssertArgType>(portNum)
460 return this->m_portOut_OutputPort[portNum].
isConnected();
478 static_cast<FwAssertArgType>(portNum)
500 static_cast<FwAssertArgType>(portNum)
504 this->m_allocate_OutputPort[portNum].isConnected(),
505 static_cast<FwAssertArgType>(portNum)
507 return this->m_allocate_OutputPort[portNum].
invoke(
520 static_cast<FwAssertArgType>(portNum)
524 this->m_deallocate_OutputPort[portNum].isConnected(),
525 static_cast<FwAssertArgType>(portNum)
527 this->m_deallocate_OutputPort[portNum].
invoke(
540 static_cast<FwAssertArgType>(portNum)
544 this->m_portOut_OutputPort[portNum].isConnected(),
545 static_cast<FwAssertArgType>(portNum)
547 this->m_portOut_OutputPort[portNum].
invoke(
564 if (this->m_Time_OutputPort[0].isConnected()) {
565 this->m_Time_OutputPort[0].
invoke(_logTime);
573 if (this->m_Log_OutputPort[0].isConnected()) {
577 #if FW_AMPCS_COMPATIBLE 582 static_cast<FwAssertArgType>(_status)
586 #if FW_AMPCS_COMPATIBLE 589 static_cast<U8>(
sizeof(I32))
593 static_cast<FwAssertArgType>(_status)
599 static_cast<FwAssertArgType>(_status)
602 #if FW_AMPCS_COMPATIBLE 609 static_cast<FwAssertArgType>(_status)
615 static_cast<FwAssertArgType>(_status)
618 this->m_Log_OutputPort[0].
invoke(
627 #if FW_ENABLE_TEXT_LOGGING 628 if (this->m_LogText_OutputPort[0].isConnected()) {
629 #if FW_OBJECT_NAMES == 1 630 const char* _formatString =
631 "(%s) %s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu64
"";
633 const char* _formatString =
634 "%s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu64
"";
641 this->m_objName.toChar(),
643 "AllocationSoftFailure ",
648 this->m_LogText_OutputPort[0].invoke(
666 if (this->m_Time_OutputPort[0].isConnected()) {
667 this->m_Time_OutputPort[0].
invoke(_logTime);
675 if (this->m_Log_OutputPort[0].isConnected()) {
679 #if FW_AMPCS_COMPATIBLE 684 static_cast<FwAssertArgType>(_status)
691 static_cast<FwAssertArgType>(_status)
697 static_cast<FwAssertArgType>(_status)
701 #if FW_AMPCS_COMPATIBLE 704 static_cast<U8>(
sizeof(I32))
708 static_cast<FwAssertArgType>(_status)
714 static_cast<FwAssertArgType>(_status)
717 #if FW_AMPCS_COMPATIBLE 724 static_cast<FwAssertArgType>(_status)
730 static_cast<FwAssertArgType>(_status)
733 this->m_Log_OutputPort[0].
invoke(
742 #if FW_ENABLE_TEXT_LOGGING 743 if (this->m_LogText_OutputPort[0].isConnected()) {
744 #if FW_OBJECT_NAMES == 1 745 const char* _formatString =
746 "(%s) %s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu64
"";
748 const char* _formatString =
749 "%s: Failed to allocate %" PRIi32
" byte buffer for port %" PRIu64
"";
756 this->m_objName.toChar(),
758 "AllocationHardFailure ",
763 this->m_LogText_OutputPort[0].invoke(
780 if (this->m_Time_OutputPort[0].isConnected()) {
782 this->m_Time_OutputPort[0].
invoke(_time);
794 void BufferRepeaterComponentBase ::
Serialization/Deserialization operation was successful.
void addCallPort(InputTimePort *callPort)
Register an input port.
static constexpr FwIndexType getNum_portIn_InputPorts()
SerializeStatus serializeFrom(U8 val, Endianness mode=Endianness::BIG) override
Serialize an 8-bit unsigned integer value.
FwIdType getIdBase() const
PlatformSizeType FwSizeType
bool isConnected_deallocate_OutputPort(FwIndexType portNum)
Soft failure in allocation.
void set_Time_OutputPort(FwIndexType portNum, Fw::InputTimePort *port)
Connect port to Time[portNum].
void portOut_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port portOut.
void log_WARNING_HI_AllocationSoftFailure(I32 port, FwSizeType size) const
No time base has been established (Required)
static constexpr FwIndexType getNum_portOut_OutputPorts()
void init()
Object initializer.
bool isConnected_allocate_OutputPort(FwIndexType portNum)
SerializeStatus
forward declaration for string
void addCallPort(InputBufferGetPort *callPort)
Register an input port.
static constexpr FwIndexType getNum_allocate_OutputPorts()
FwIdType FwEventIdType
The type of an event identifier.
BufferRepeaterComponentBase(const char *compName="")
Construct BufferRepeaterComponentBase object.
virtual void portIn_handler(FwIndexType portNum, Fw::Buffer &fwBuffer)=0
Handler for input port portIn.
#define FW_OBJECT_NAMES
Indicates whether or not object names are stored (more memory, can be used for tracking objects) ...
void init()
Initialization function.
void invoke(Fw::Buffer &fwBuffer) const
Invoke a port interface.
void addCallPort(InputBufferSendPort *callPort)
Register an input port.
void set_portOut_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to portOut[portNum].
static constexpr FwIndexType getNum_Time_OutputPorts()
void invoke(Fw::Time &time) const
Invoke a port interface.
bool isConnected_Time_OutputPort(FwIndexType portNum)
const char * toChar() const
Convert to a C-style char*.
static constexpr FwIndexType getNum_deallocate_OutputPorts()
bool isConnected_Log_OutputPort(FwIndexType portNum)
A serious but recoverable event.
Fw::InputBufferSendPort * get_portIn_InputPort(FwIndexType portNum)
virtual ~BufferRepeaterComponentBase()
Destroy BufferRepeaterComponentBase object.
FormatStatus format(const CHAR *formatString,...)
write formatted string to buffer
void init()
Initialization function.
void set_Log_OutputPort(FwIndexType portNum, Fw::InputLogPort *port)
Connect port to Log[portNum].
void portIn_handlerBase(FwIndexType portNum, Fw::Buffer &fwBuffer)
Handler base-class function for input port portIn.
bool isConnected_portOut_OutputPort(FwIndexType portNum)
Fw::Buffer invoke(FwSizeType size) const
Invoke a port interface.
void init()
Initialization function.
void set_deallocate_OutputPort(FwIndexType portNum, Fw::InputBufferSendPort *port)
Connect port to deallocate[portNum].
void invoke(FwEventIdType id, Fw::Time &timeTag, const Fw::LogSeverity &severity, Fw::LogBuffer &args) const
Invoke a port interface.
void log_FATAL_AllocationHardFailure(I32 port, FwSizeType size) const
PlatformIndexType FwIndexType
A fatal non-recoverable event.
static constexpr FwIndexType getNum_Log_OutputPorts()
void addCallPort(InputLogPort *callPort)
Register an input port.
void init()
Initialization function.
RateGroupDivider component implementation.
Auto-generated base for BufferRepeater component.
Implementation of malloc based allocator.
void set_allocate_OutputPort(FwIndexType portNum, Fw::InputBufferGetPort *port)
Connect port to allocate[portNum].
Hard failure in allocation.
Fw::Buffer allocate_out(FwIndexType portNum, FwSizeType size)
Invoke output port allocate.
void deallocate_out(FwIndexType portNum, Fw::Buffer &fwBuffer)
Invoke output port deallocate.