F´ Flight Software - C/C++ Documentation
NASA-v2.1.0
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
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
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
Functions
f
i
m
p
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
f
m
p
r
s
t
Macros
_
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
InputPortBase.cpp
Go to the documentation of this file.
1
#include <
FpConfig.hpp
>
2
3
#include <
Fw/Port/InputPortBase.hpp
>
4
#include <
Fw/Types/Assert.hpp
>
5
#include <
Fw/Types/BasicTypes.hpp
>
6
#include <stdio.h>
7
8
namespace
Fw
{
9
10
InputPortBase::InputPortBase
() :
11
PortBase
(),
12
m_comp(0),
13
m_portNum(-1) {
14
}
15
16
InputPortBase::~InputPortBase
(
void
) {
17
18
}
19
20
void
InputPortBase::init
(
void
) {
21
PortBase::init
();
22
23
}
24
25
void
InputPortBase::setPortNum
(
NATIVE_INT_TYPE
portNum) {
26
FW_ASSERT
(portNum >= 0,portNum);
27
this->
m_portNum
= portNum;
28
}
29
30
#if FW_OBJECT_TO_STRING == 1
31
void
InputPortBase::toString(
char
* buffer,
NATIVE_INT_TYPE
size) {
32
#if FW_OBJECT_NAMES == 1
33
FW_ASSERT
(size > 0);
34
if
(snprintf(buffer, size,
"InputPort: %s->%s"
, this->m_objName,
35
this->
isConnected
() ? this->
m_connObj
->getObjName() :
"None"
) < 0) {
36
buffer[0] = 0;
37
}
38
#else
39
(void)snprintf(buffer,size,
"%s"
,
"Unnamed Input port"
);
40
#endif
41
}
42
#endif
43
44
45
}
46
InputPortBase.hpp
Fw::InputPortBase::m_portNum
NATIVE_INT_TYPE m_portNum
Definition:
InputPortBase.hpp:29
Fw::PortBase::init
virtual void init(void)
Definition:
PortBase.cpp:36
Fw::PortBase::isConnected
bool isConnected(void)
Definition:
PortBase.cpp:41
Fw::InputPortBase::~InputPortBase
virtual ~InputPortBase()
Definition:
InputPortBase.cpp:16
Assert.hpp
Fw::InputPortBase::InputPortBase
InputPortBase()
Definition:
InputPortBase.cpp:10
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
FpConfig.hpp
ISF configuration file.
Fw::InputPortBase::setPortNum
void setPortNum(NATIVE_INT_TYPE portNum)
Definition:
InputPortBase.cpp:25
Fw::PortBase
Definition:
PortBase.hpp:16
Fw::InputPortBase::init
virtual void init(void)
Definition:
InputPortBase.cpp:20
BasicTypes.hpp
Declares ISF basic types.
Fw::PortBase::m_connObj
Fw::ObjBase * m_connObj
Definition:
PortBase.hpp:33
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Fw
Definition:
Buffer.cpp:21
Fw
Port
InputPortBase.cpp
Generated by
1.8.17