F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
PassiveComponentBase.hpp
Go to the documentation of this file.
1
#ifndef FW_COMP_BASE_HPP
2
#define FW_COMP_BASE_HPP
3
4
#include <
Fw/FPrimeBasicTypes.hpp
>
5
#include <
Fw/Obj/ObjBase.hpp
>
6
#include <
Fw/Types/Serializable.hpp
>
7
8
namespace
Fw
{
9
10
class
PassiveComponentBase
:
public
Fw::ObjBase
{
11
public
:
13
void
setIdBase
(
const
FwIdType
//< The new ID base
14
);
17
FwIdType
getIdBase
()
const
;
18
19
protected
:
20
PassiveComponentBase
(
const
char
* name);
21
virtual
~PassiveComponentBase
();
22
void
init
(
FwEnumStoreType
instance);
23
FwEnumStoreType
getInstance
()
const
;
24
25
#if FW_OBJECT_TO_STRING == 1
26
virtual
const
char
* getToStringFormatString();
27
void
toString(
char
* str,
FwSizeType
size)
override
;
28
#endif
29
private
:
30
FwIdType
m_idBase;
31
FwEnumStoreType
m_instance;
32
};
33
34
}
// namespace Fw
35
36
#endif
Fw::PassiveComponentBase::setIdBase
void setIdBase(const FwIdType)
Set the ID base.
Definition:
PassiveComponentBase.cpp:44
Fw::PassiveComponentBase
Definition:
PassiveComponentBase.hpp:10
Fw::PassiveComponentBase::getIdBase
FwIdType getIdBase() const
Definition:
PassiveComponentBase.cpp:48
FwSizeType
PlatformSizeType FwSizeType
Definition:
FwSizeTypeAliasAc.h:15
FwEnumStoreType
I32 FwEnumStoreType
Definition:
FwEnumStoreTypeAliasAc.h:14
FPrimeBasicTypes.hpp
Fw::PassiveComponentBase::getInstance
FwEnumStoreType getInstance() const
Definition:
PassiveComponentBase.cpp:40
Fw::PassiveComponentBase::PassiveComponentBase
PassiveComponentBase(const char *name)
Named constructor.
Definition:
PassiveComponentBase.cpp:9
Fw::ObjBase::init
void init()
Object initializer.
Definition:
ObjBase.cpp:24
Fw::ObjBase
Brief class description.
Definition:
ObjBase.hpp:35
Fw::PassiveComponentBase::~PassiveComponentBase
virtual ~PassiveComponentBase()
Destructor.
Definition:
PassiveComponentBase.cpp:33
ObjBase.hpp
Declarations for Fw::ObjBase and Fw::ObjRegistry.
Fw
Definition:
FppConstantsAc.hpp:121
Serializable.hpp
FwIdType
U32 FwIdType
The id type.
Definition:
FwIdTypeAliasAc.h:13
Fw
Comp
PassiveComponentBase.hpp
Generated by
1.8.14