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 
5 #include <Fw/Obj/ObjBase.hpp>
7 
8 namespace Fw {
9 
11  public:
13  void setIdBase(const FwIdType //< The new ID base
14  );
17  FwIdType getIdBase() const;
18 
19  virtual void deinit();
20 
21  protected:
22  PassiveComponentBase(const char* name);
23  virtual ~PassiveComponentBase();
24  void init(FwEnumStoreType instance);
26 
27 #if FW_OBJECT_TO_STRING == 1
28  virtual const char* getToStringFormatString();
29  void toString(char* str, FwSizeType size) override;
30 #endif
31  private:
32  FwIdType m_idBase;
33  FwEnumStoreType m_instance;
34 };
35 
36 } // namespace Fw
37 
38 #endif
void setIdBase(const FwIdType)
Set the ID base.
PlatformSizeType FwSizeType
I32 FwEnumStoreType
FwEnumStoreType getInstance() const
PassiveComponentBase(const char *name)
Named constructor.
void init()
Object initializer.
Definition: ObjBase.cpp:24
Brief class description.
Definition: ObjBase.hpp:35
virtual ~PassiveComponentBase()
Destructor.
virtual void deinit()
Deinitialization function.
Declarations for Fw::ObjBase and Fw::ObjRegistry.
Implementation of malloc based allocator.
U32 FwIdType
The id type.