fprime/Fw/Port/InputPortBase.cpp
Thomas Boyer-Chammard ab58cf18fb
Format Fw and add to CI (#3976)
* Format Fw and add to CI

* Fix include of HPP file instead of H in extern C

* Fix format strings
2025-08-04 12:56:02 -07:00

28 lines
615 B
C++

#include <Fw/FPrimeBasicTypes.hpp>
#include <Fw/Port/InputPortBase.hpp>
#include <Fw/Types/Assert.hpp>
#include <cstdio>
namespace Fw {
InputPortBase::InputPortBase() : PortBase(), m_comp(nullptr), m_portNum(-1) {}
InputPortBase::~InputPortBase() {}
void InputPortBase::init() {
PortBase::init();
}
void InputPortBase::setPortNum(FwIndexType portNum) {
FW_ASSERT(portNum >= 0, static_cast<FwAssertArgType>(portNum));
this->m_portNum = portNum;
}
#if FW_OBJECT_TO_STRING == 1
const char* InputPortBase::getToStringFormatString() {
return "Input Port: %s %s->(%s)";
}
#endif
} // namespace Fw