fprime/Fw/Port/InputPortBase.cpp
M Starch 2dcd21902d
Testing with configured fixed-size types (#3409)
* Testing with configured fixed-size types

* Linux fixes

* Final settings

* Removing FwNativeIntType
2025-03-28 11:11:13 -07:00

37 lines
709 B
C++

#include <FpConfig.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
}