F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
l
o
p
r
s
t
u
w
Enumerations
Enumerator
a
b
c
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Typedefs
c
e
s
t
u
w
Enumerations
b
c
d
g
h
m
o
q
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Related Symbols
a
b
c
d
f
g
h
l
p
r
s
t
u
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
c
i
m
p
s
u
Variables
_
b
c
f
i
l
p
r
s
Typedefs
b
c
f
i
n
p
s
u
Enumerations
Enumerator
a
b
c
d
f
g
h
p
r
s
t
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
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
}
8
InputPortBase::InputPortBase
() : {
…
}
13
14
InputPortBase::~InputPortBase
() {
15
16
}
14
InputPortBase::~InputPortBase
() {
…
}
17
18
void
InputPortBase::init
() {
19
PortBase::init
();
20
21
}
18
void
InputPortBase::init
() {
…
}
22
23
void
InputPortBase::setPortNum
(
NATIVE_INT_TYPE
portNum) {
24
FW_ASSERT
(portNum >= 0,portNum);
25
this->
m_portNum
= portNum;
26
}
23
void
InputPortBase::setPortNum
(
NATIVE_INT_TYPE
portNum) {
…
}
27
28
#if FW_OBJECT_TO_STRING == 1
29
void
InputPortBase::toString(
char
* buffer,
NATIVE_INT_TYPE
size) {
30
#if FW_OBJECT_NAMES == 1
31
FW_ASSERT
(size > 0);
32
if
(snprintf(buffer, size,
"InputPort: %s->%s"
, this->m_objName,
33
this->
isConnected
() ? this->
m_connObj
->getObjName() :
"None"
) < 0) {
34
buffer[0] = 0;
35
}
36
#else
37
(void)snprintf(buffer,size,
"%s"
,
"Unnamed Input port"
);
38
#endif
39
}
40
#endif
41
42
43
}
44
Assert.hpp
FW_ASSERT
#define FW_ASSERT(...)
Definition
Assert.hpp:14
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
InputPortBase.hpp
Fw::InputPortBase::~InputPortBase
virtual ~InputPortBase()
Definition
InputPortBase.cpp:14
Fw::InputPortBase::m_portNum
NATIVE_INT_TYPE m_portNum
Definition
InputPortBase.hpp:27
Fw::InputPortBase::init
virtual void init()
Definition
InputPortBase.cpp:18
Fw::InputPortBase::setPortNum
void setPortNum(NATIVE_INT_TYPE portNum)
Definition
InputPortBase.cpp:23
Fw::InputPortBase::InputPortBase
InputPortBase()
Definition
InputPortBase.cpp:8
Fw::PortBase
Definition
PortBase.hpp:16
Fw::PortBase::init
virtual void init()
Definition
PortBase.cpp:36
Fw::PortBase::isConnected
bool isConnected()
Definition
PortBase.cpp:41
Fw::PortBase::m_connObj
Fw::ObjBase * m_connObj
Definition
PortBase.hpp:33
Fw
Definition
FppConstantsAc.hpp:98
Fw
Port
InputPortBase.cpp
Generated by
1.10.0