F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
InputPortBase.cpp
Go to the documentation of this file.
3 #include <Fw/Types/Assert.hpp>
4 #include <cstdio>
5 
6 namespace Fw {
7 
8 InputPortBase::InputPortBase() : PortBase(), m_comp(nullptr), m_portNum(-1) {}
9 
11 
14 }
15 
17  FW_ASSERT(portNum >= 0, static_cast<FwAssertArgType>(portNum));
18  this->m_portNum = portNum;
19 }
20 
21 #if FW_OBJECT_TO_STRING == 1
22 const char* InputPortBase::getToStringFormatString() {
23  return "Input Port: %s %s->(%s)";
24 }
25 #endif
26 
27 } // namespace Fw
virtual ~InputPortBase()
FwIndexType m_portNum
virtual void init()
Definition: PortBase.cpp:34
void setPortNum(FwIndexType portNum)
PlatformIndexType FwIndexType
void init() override
#define FW_ASSERT(...)
Definition: Assert.hpp:14