| 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 | 27379 | OutputPortBase::OutputPortBase() | |
| 10 | : PortBase() | ||
| 11 | #if FW_PORT_SERIALIZATION == 1 | ||
| 12 | , | ||
| 13 | 27379 | m_serPort(nullptr) | |
| 14 | #endif | ||
| 15 | { | ||
| 16 | 27379 | } | |
| 17 | |||
| 18 | 54758 | OutputPortBase::~OutputPortBase() {} | |
| 19 | |||
| 20 | 27355 | void OutputPortBase::init() { | |
| 21 | 27355 | PortBase::init(); | |
| 22 | 27355 | } | |
| 23 | #if FW_PORT_SERIALIZATION == 1 | ||
| 24 | 1348 | void OutputPortBase::registerSerialPort(InputPortBase* port) { | |
| 25 | 1348 | FW_ASSERT(port != nullptr); | |
| 26 | 1348 | this->m_connObj = port; | |
| 27 | 1348 | this->m_serPort = port; | |
| 28 | 1348 | } | |
| 29 | |||
| 30 | 10062 | SerializeStatus OutputPortBase::invokeSerial(LinearBufferBase& buffer) { | |
| 31 | 10062 | FW_ASSERT(this->m_serPort != nullptr); | |
| 32 | 10062 | 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 |