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
>
2
#include <
Fw/Port/InputPortBase.hpp
>
3
#include <
Fw/Types/Assert.hpp
>
4
#include <cstdio>
5
6
namespace
Fw
{
7
8
InputPortBase::InputPortBase
() :
9
PortBase
(),
10
m_comp(nullptr),
11
m_portNum(-1) {
12
}
13
14
InputPortBase::~InputPortBase
() {
15
16
}
17
18
void
InputPortBase::init
() {
19
PortBase::init
();
20
21
}
22
23
void
InputPortBase::setPortNum
(
FwIndexType
portNum) {
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
Fw::InputPortBase::~InputPortBase
virtual ~InputPortBase()
Definition:
InputPortBase.cpp:14
Fw::InputPortBase::m_portNum
FwIndexType m_portNum
Definition:
InputPortBase.hpp:27
InputPortBase.hpp
FwIndexType
PlatformIndexType FwIndexType
Definition:
FpConfig.h:25
Fw::PortBase::init
virtual void init()
Definition:
PortBase.cpp:37
Fw::InputPortBase::InputPortBase
InputPortBase()
Definition:
InputPortBase.cpp:8
Assert.hpp
Fw::InputPortBase::setPortNum
void setPortNum(FwIndexType portNum)
Definition:
InputPortBase.cpp:23
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
Fw::InputPortBase::init
void init() override
Definition:
InputPortBase.cpp:18
Fw::PortBase
Definition:
PortBase.hpp:16
Fw
Definition:
FppConstantsAc.hpp:121
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:14
Fw
Port
InputPortBase.cpp
Generated by
1.8.14