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  protected:
20  PassiveComponentBase(const char* name);
21  virtual ~PassiveComponentBase();
22  void init(FwEnumStoreType instance);
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
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.
Declarations for Fw::ObjBase and Fw::ObjRegistry.
U32 FwIdType
The id type.