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.
1 #include <FpConfig.hpp>
3 #include <Fw/Types/Assert.hpp>
4 #include <cstdio>
5 
6 namespace Fw {
7 
9  PortBase(),
10  m_comp(nullptr),
11  m_portNum(-1) {
12  }
13 
15 
16  }
17 
20 
21  }
22 
24  FW_ASSERT(portNum >= 0,portNum);
25  this->m_portNum = portNum;
26  }
27 
28 #if FW_OBJECT_TO_STRING == 1
29  const char* InputPortBase::getToStringFormatString() {
30  return "Input Port: %s %s->(%s)";
31  }
32 #endif
33 
34 
35 }
36 
virtual ~InputPortBase()
FwIndexType m_portNum
PlatformIndexType FwIndexType
Definition: FpConfig.h:25
virtual void init()
Definition: PortBase.cpp:37
void setPortNum(FwIndexType portNum)
C++-compatible configuration header for fprime configuration.
void init() override
#define FW_ASSERT(...)
Definition: Assert.hpp:14