mirror of
https://github.com/nasa/fprime.git
synced 2025-12-11 04:35:25 -06:00
* Format Fw and add to CI * Fix include of HPP file instead of H in extern C * Fix format strings
28 lines
615 B
C++
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
|