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
►
F´ Flight Software - C/C++ Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
TimeComponentAc.hpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title TimeComponentAc.hpp
3
// \author Auto-generated
4
// \brief hpp file for Time component base class
5
//
6
// \copyright
7
// Copyright 2009-2015, by the California Institute of Technology.
8
// ALL RIGHTS RESERVED. United States Government Sponsorship
9
// acknowledged.
10
//
11
// ======================================================================
12
13
#ifndef TIME_COMP_HPP_
14
#define TIME_COMP_HPP_
15
16
#include <
FpConfig.hpp
>
17
#include <
Fw/Port/InputSerializePort.hpp
>
18
#include <
Fw/Port/OutputSerializePort.hpp
>
19
#include <
Fw/Comp/ActiveComponentBase.hpp
>
20
#include <
Fw/Time/Time.hpp
>
21
#include <
Fw/Time/TimePortAc.hpp
>
22
23
namespace
Svc
{
24
28
class
TimeComponentBase
:
29
public
Fw::PassiveComponentBase
30
{
31
32
// ----------------------------------------------------------------------
33
// Friend classes
34
// ----------------------------------------------------------------------
35
38
friend
class
TimeComponentBaseFriend
;
39
40
public
:
41
42
// ----------------------------------------------------------------------
43
// Getters for typed input ports
44
// ----------------------------------------------------------------------
45
50
Fw::InputTimePort
*
get_timeGetPort_InputPort
(
51
NATIVE_INT_TYPE
portNum
52
);
53
54
PROTECTED
:
55
56
// ----------------------------------------------------------------------
57
// Component construction, initialization, and destruction
58
// ----------------------------------------------------------------------
59
60
#if FW_OBJECT_NAMES == 1
61
TimeComponentBase
(
64
const
char
* compName
65
);
66
#else
67
TimeComponentBase
(
void
);
70
#endif
71
74
void
init
(
75
NATIVE_INT_TYPE
instance = 0
76
);
77
80
virtual
~TimeComponentBase
(
void
);
81
82
PROTECTED
:
83
84
// ----------------------------------------------------------------------
85
// Handlers to implement for typed input ports
86
// ----------------------------------------------------------------------
87
89
//
90
virtual
void
timeGetPort_handler(
91
NATIVE_INT_TYPE
portNum
,
92
Fw::Time
&
time
93
) = 0;
94
95
PROTECTED
:
96
97
// ----------------------------------------------------------------------
98
// Port handler base-class functions for typed input ports.
99
// ----------------------------------------------------------------------
100
// Call these functions directly to bypass the corresponding ports.
101
// ----------------------------------------------------------------------
102
105
void
timeGetPort_handlerBase(
106
NATIVE_INT_TYPE
portNum
,
107
Fw::Time
&
time
108
);
109
110
PROTECTED
:
111
112
// ----------------------------------------------------------------------
113
// Getters for numbers of input ports
114
// ----------------------------------------------------------------------
115
120
NATIVE_INT_TYPE
getNum_timeGetPort_InputPorts(
void
);
121
122
123
// ----------------------------------------------------------------------
124
// Enumerations for number of ports
125
// ----------------------------------------------------------------------
126
127
enum
{
128
NUM_TIMEGETPORT_INPUT_PORTS
= 1,
129
};
130
131
PROTECTED
:
132
133
// ----------------------------------------------------------------------
134
// Event logging functions
135
// ----------------------------------------------------------------------
136
137
138
PRIVATE
:
139
140
// ----------------------------------------------------------------------
141
// Typed input ports
142
// ----------------------------------------------------------------------
143
146
Fw::InputTimePort
m_timeGetPort_InputPort[
NUM_TIMEGETPORT_INPUT_PORTS
];
147
148
PRIVATE
:
149
150
// ----------------------------------------------------------------------
151
// Calls for messages received on typed input ports
152
// ----------------------------------------------------------------------
153
156
static
void
m_p_timeGetPort_in(
157
Fw::PassiveComponentBase
* callComp,
158
NATIVE_INT_TYPE
portNum
,
159
Fw::Time
&
time
160
);
161
162
163
164
};
165
166
}
// end namespace Svc
167
#endif
Fw::InputTimePort
Definition:
TimePortAc.hpp:28
Svc::TimeComponentBase
Auto-generated base for Time component.
Definition:
TimeComponentAc.hpp:30
PRIVATE
#define PRIVATE
overridable private for unit testing
Definition:
BasicTypes.hpp:118
Fw::Time
Definition:
Time.hpp:10
Svc::TimeComponentBase::portNum
PRIVATE NATIVE_INT_TYPE portNum
Definition:
TimeComponentAc.hpp:158
PROTECTED
#define PROTECTED
overridable protected for unit testing
Definition:
BasicTypes.hpp:114
InputSerializePort.hpp
Svc::TimeComponentBase::get_timeGetPort_InputPort
Fw::InputTimePort * get_timeGetPort_InputPort(NATIVE_INT_TYPE portNum)
Definition:
TimeComponentAc.cpp:29
Svc::TimeComponentBase::NUM_TIMEGETPORT_INPUT_PORTS
@ NUM_TIMEGETPORT_INPUT_PORTS
Definition:
TimeComponentAc.hpp:128
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::ObjBase::init
void init(void)
Object initializer.
Definition:
ObjBase.cpp:26
Svc::TimeComponentBase::~TimeComponentBase
virtual ~TimeComponentBase(void)
Definition:
TimeComponentAc.cpp:93
ActiveComponentBase.hpp
Svc::TimeComponentBase::TimeComponentBaseFriend
friend class TimeComponentBaseFriend
Definition:
TimeComponentAc.hpp:38
Svc::TimeComponentBase::time
PROTECTED Fw::Time & time
Definition:
TimeComponentAc.hpp:93
FpConfig.hpp
ISF configuration file.
Svc
Definition:
ActiveLoggerComponentAc.cpp:22
Time.hpp
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
OutputSerializePort.hpp
TimePortAc.hpp
build-fprime-automatic-native
F-Prime
Svc
Time
TimeComponentAc.hpp
Generated by
1.8.19