GCC Code Coverage Report


Directory: ./
File: OutputPortBase.cpp
Date: 2026-09-03 22:13:03
Exec Total Coverage
Lines: 0 17 0.0%
Functions: 0 6 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #include <Fw/FPrimeBasicTypes.hpp>
2 #include <Fw/Port/OutputPortBase.hpp>
3 #include <Fw/Types/Assert.hpp>
4 #include <Os/Console.hpp>
5 #include <cstdio>
6
7 namespace Fw {
8
9 OutputPortBase::OutputPortBase()
10 : PortBase()
11 #if FW_PORT_SERIALIZATION == 1
12 ,
13 m_serPort(nullptr)
14 #endif
15 {
16 }
17
18 OutputPortBase::~OutputPortBase() {}
19
20 void OutputPortBase::init() {
21 PortBase::init();
22 }
23 #if FW_PORT_SERIALIZATION == 1
24 void OutputPortBase::registerSerialPort(InputPortBase* port) {
25 FW_ASSERT(port != nullptr);
26 this->m_connObj = port;
27 this->m_serPort = port;
28 }
29
30 SerializeStatus OutputPortBase::invokeSerial(LinearBufferBase& buffer) {
31 FW_ASSERT(this->m_serPort != nullptr);
32 return this->m_serPort->invokeSerial(buffer);
33 }
34 #endif
35
36 #if FW_OBJECT_TO_STRING == 1
37 const char* OutputPortBase::getToStringFormatString() {
38 return "Output Port: %s %s->(%s)";
39 }
40 #endif
41
42 } // namespace Fw
43