F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
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
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
b
d
e
f
g
h
i
l
m
n
p
q
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
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
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
PortBase.hpp
Go to the documentation of this file.
1
#ifndef FW_PORT_BASE_HPP
2
#define FW_PORT_BASE_HPP
3
4
#include <
Fw/Obj/ObjBase.hpp
>
5
#include <
Fw/Types/BasicTypes.hpp
>
6
#include <
Fw/Types/Serializable.hpp
>
7
8
#if FW_PORT_TRACING == 1
9
extern
"C"
{
10
void
setConnTrace(
bool
trace);
11
}
12
#endif
13
14
namespace
Fw
{
15
16
class
PortBase
:
public
Fw::ObjBase
{
17
public
:
18
#if FW_PORT_TRACING == 1
19
static
void
setTrace(
bool
trace);
// !< turn tracing on or off
20
void
overrideTrace(
bool
override
,
bool
trace);
// !< override tracing for a particular port
21
#endif
22
23
bool
isConnected
(
void
);
24
protected
:
25
// Should only be accessed by derived classes
26
PortBase
();
// Constructor
27
virtual
~PortBase
();
// Destructor
28
virtual
void
init
(
void
);
// !< initialization function
29
30
#if FW_PORT_TRACING == 1
31
void
trace(
void
);
// !< trace port calls if active
32
#endif
33
Fw::ObjBase
*
m_connObj
;
// !< object port is connected to
34
35
#if FW_OBJECT_TO_STRING
36
virtual
void
toString(
char
* str,
NATIVE_INT_TYPE
size);
37
#endif
38
39
40
private
:
41
#if FW_PORT_TRACING == 1
42
static
bool
s_trace;
// !< global tracing is active
43
bool
m_trace;
// !< local trace flag
44
bool
m_override_trace;
// !< flag to override global trace
45
#endif
46
// Disable constructors
47
PortBase
(
PortBase
*);
48
PortBase
(
PortBase
&);
49
PortBase
& operator=(
PortBase
&);
50
51
};
52
53
}
54
55
#endif
Fw::ObjBase
Brief class description.
Definition:
ObjBase.hpp:33
Fw::PortBase::init
virtual void init(void)
Definition:
PortBase.cpp:35
Fw::PortBase::isConnected
bool isConnected(void)
Definition:
PortBase.cpp:40
Serializable.hpp
Fw::PortBase::PortBase
PortBase()
Definition:
PortBase.cpp:19
Fw::PortBase
Definition:
PortBase.hpp:16
Fw::PortBase::~PortBase
virtual ~PortBase()
Definition:
PortBase.cpp:31
ObjBase.hpp
Declarations for Fw::ObjBase and Fw::ObjRegistry.
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
PortBase.hpp
Generated by
1.8.17