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
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 <stdio.h>
6
7
namespace
Fw
{
8
9
PassiveComponentBase::PassiveComponentBase
(
const
char
* name) :
Fw
::
ObjBase
(name), m_idBase(0), m_instance(0) {
10
}
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
(void)snprintf(buffer, size,
"Comp: %s"
, this->m_objName);
16
// null terminate
17
buffer[size-1] = 0;
18
}
19
#endif
20
21
PassiveComponentBase::~PassiveComponentBase
(
void
) {
22
}
23
24
void
PassiveComponentBase::init
(
NATIVE_INT_TYPE
instance) {
25
ObjBase::init
();
26
this->m_instance = instance;
27
}
28
29
NATIVE_INT_TYPE
PassiveComponentBase::getInstance
(
void
)
const
{
30
return
this->m_instance;
31
}
32
33
void
PassiveComponentBase ::
34
setIdBase
(
const
U32 idBase)
35
{
36
this->m_idBase = idBase;
37
}
38
39
U32
PassiveComponentBase ::
40
getIdBase
(
void
)
const
41
{
42
return
this->m_idBase;
43
}
44
45
}
PassiveComponentBase.hpp
Fw::PassiveComponentBase::getIdBase
U32 getIdBase(void) const
Definition:
PassiveComponentBase.cpp:40
Fw::ObjBase
Brief class description.
Definition:
ObjBase.hpp:33
Fw::PassiveComponentBase::getInstance
NATIVE_INT_TYPE getInstance(void) const
Definition:
PassiveComponentBase.cpp:29
Fw::PassiveComponentBase::PassiveComponentBase
PassiveComponentBase(const char *name)
Named constructor.
Definition:
PassiveComponentBase.cpp:9
Fw::PassiveComponentBase::setIdBase
void setIdBase(const U32)
Set the ID base.
Definition:
PassiveComponentBase.cpp:34
Assert.hpp
Fw::ObjBase::init
void init(void)
Object initializer.
Definition:
ObjBase.cpp:26
Fw::PassiveComponentBase::~PassiveComponentBase
virtual ~PassiveComponentBase()
Destructor.
Definition:
PassiveComponentBase.cpp:21
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
FpConfig.hpp
ISF configuration file.
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Fw
Definition:
Buffer.cpp:21
Fw
Comp
PassiveComponentBase.cpp
Generated by
1.8.17