F´ Flight Software - C/C++ Documentation
NASA-v1.5.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
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
c
f
h
i
l
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
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
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
t
u
w
Enumerations
b
c
d
e
f
g
h
i
m
o
p
q
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
a
b
c
f
g
h
l
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
f
i
m
s
u
Variables
_
c
f
i
l
p
t
Typedefs
Enumerations
Enumerator
a
c
d
f
i
m
p
r
s
t
w
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
OutputPortBase.cpp
Go to the documentation of this file.
1
#include <
FpConfig.hpp
>
2
3
#include <
Fw/Port/OutputPortBase.hpp
>
4
#include <
Fw/Types/BasicTypes.hpp
>
5
#include <
Os/Log.hpp
>
6
#include <stdio.h>
7
#include <
Fw/Types/Assert.hpp
>
8
9
10
namespace
Fw
{
11
12
OutputPortBase::OutputPortBase
() :
PortBase
()
13
#if
FW_PORT_SERIALIZATION
== 1
14
,m_serPort(0)
15
#endif
16
{
17
18
}
19
20
OutputPortBase::~OutputPortBase
(
void
) {
21
}
22
23
void
OutputPortBase::init
(
void
) {
24
PortBase::init
();
25
}
26
#if FW_PORT_SERIALIZATION == 1
27
void
OutputPortBase::registerSerialPort(
InputPortBase
* port) {
28
FW_ASSERT
(port);
29
this->
m_connObj
= port;
30
this->m_serPort = port;
31
}
32
33
SerializeStatus
OutputPortBase::invokeSerial(SerializeBufferBase &buffer) {
34
FW_ASSERT
(this->m_serPort);
35
return
this->m_serPort->invokeSerial(buffer);
36
}
37
#endif
38
39
#if FW_OBJECT_TO_STRING == 1
40
void
OutputPortBase::toString(
char
* buffer,
NATIVE_INT_TYPE
size) {
41
#if FW_OBJECT_NAMES == 1
42
(void)snprintf(buffer, size,
"OutputPort: %s %s->(%s)"
, this->m_objName, this->
isConnected
() ?
"C"
:
"NC"
,
43
this->
isConnected
() ? this->
m_connObj
->getObjName() :
"None"
);
44
buffer[size-1] = 0;
45
#else
46
(void)snprintf(buffer,size,
"%s"
,
"OutputPort"
);
47
#endif
48
49
}
50
#endif
51
52
53
}
54
Fw::OutputPortBase::~OutputPortBase
virtual ~OutputPortBase()
Definition:
OutputPortBase.cpp:20
Fw::PortBase::init
virtual void init(void)
Definition:
PortBase.cpp:35
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw::PortBase::isConnected
bool isConnected(void)
Definition:
PortBase.cpp:40
Fw::OutputPortBase::init
virtual void init(void)
Definition:
OutputPortBase.cpp:23
Fw::OutputPortBase::OutputPortBase
OutputPortBase()
Definition:
OutputPortBase.cpp:12
Assert.hpp
Fw::InputPortBase
Definition:
InputPortBase.hpp:14
OutputPortBase.hpp
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
FpConfig.hpp
ISF configuration file.
Fw::PortBase
Definition:
PortBase.hpp:16
FW_PORT_SERIALIZATION
#define FW_PORT_SERIALIZATION
Indicates whether there is code in ports to serialize the call (more code, but ability to serialize c...
Definition:
FpConfig.hpp:135
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:
BufferGetPortAc.cpp:6
Log.hpp
Fw
Port
OutputPortBase.cpp
Generated by
1.8.19