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
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
v
w
Typedefs
c
e
s
t
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
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
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
PassiveComponentBase.cpp
Go to the documentation of this file.
1
#include <
Fw/Comp/PassiveComponentBase.hpp
>
2
#include <
Fw/Types/Assert.hpp
>
3
#include <
FpConfig.hpp
>
4
5
#include <cstdio>
6
7
namespace
Fw
{
8
9
PassiveComponentBase::PassiveComponentBase
(
const
char
* name) :
Fw
::
ObjBase
(name), m_idBase(0), m_instance(0) {
10
}
9
PassiveComponentBase::PassiveComponentBase
(
const
char
* name) :
Fw
::
ObjBase
(name), m_idBase(0), m_instance(0) {
…
}
11
12
#if FW_OBJECT_TO_STRING == 1 && FW_OBJECT_NAMES == 1
13
void
PassiveComponentBase::toString(
char
* buffer,
NATIVE_INT_TYPE
size) {
14
FW_ASSERT
(buffer);
15
FW_ASSERT
(size > 0);
16
if
(snprintf(buffer, size,
"Comp: %s"
, this->m_objName) < 0) {
17
buffer[0] = 0;
18
}
19
}
20
#endif
21
22
PassiveComponentBase::~PassiveComponentBase
() {
23
}
22
PassiveComponentBase::~PassiveComponentBase
() {
…
}
24
25
void
PassiveComponentBase::init
(
NATIVE_INT_TYPE
instance) {
26
ObjBase::init
();
27
this->m_instance = instance;
28
}
25
void
PassiveComponentBase::init
(
NATIVE_INT_TYPE
instance) {
…
}
29
30
NATIVE_INT_TYPE
PassiveComponentBase::getInstance
()
const
{
31
return
this->m_instance;
32
}
30
NATIVE_INT_TYPE
PassiveComponentBase::getInstance
()
const
{
…
}
33
34
void
PassiveComponentBase ::
35
setIdBase(
const
U32 idBase)
36
{
37
this->m_idBase = idBase;
38
}
34
void
PassiveComponentBase :: {
…
}
39
40
U32 PassiveComponentBase ::
41
getIdBase()
const
42
{
43
return
this->m_idBase;
44
}
40
U32 PassiveComponentBase :: {
…
}
45
46
}
Assert.hpp
FW_ASSERT
#define FW_ASSERT(...)
Definition
Assert.hpp:7
NATIVE_INT_TYPE
PlatformIntType NATIVE_INT_TYPE
Definition
BasicTypes.h:51
FpConfig.hpp
C++-compatible configuration header for fprime configuration.
PassiveComponentBase.hpp
Fw::ObjBase
Brief class description.
Definition
ObjBase.hpp:32
Fw::ObjBase::init
void init()
Object initializer.
Definition
ObjBase.cpp:27
Fw::PassiveComponentBase::getInstance
NATIVE_INT_TYPE getInstance() const
Definition
PassiveComponentBase.cpp:30
Fw::PassiveComponentBase::PassiveComponentBase
PassiveComponentBase(const char *name)
Named constructor.
Definition
PassiveComponentBase.cpp:9
Fw::PassiveComponentBase::~PassiveComponentBase
virtual ~PassiveComponentBase()
Destructor.
Definition
PassiveComponentBase.cpp:22
Fw
Definition
BufferGetPortAc.cpp:11
Fw
Comp
PassiveComponentBase.cpp
Generated by
1.10.0