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/Obj/ObjBase.hpp>
6 #include <FpConfig.hpp>
7 
8 namespace Fw {
9 
11  public:
13  void setIdBase(
14  const U32 //< The new ID base
15  );
18  U32 getIdBase() const;
19 
20  PROTECTED:
21  PassiveComponentBase(const char* name);
22  virtual ~PassiveComponentBase();
23  void init(NATIVE_INT_TYPE instance);
25 
26 
27 #if FW_OBJECT_TO_STRING == 1
28  virtual const char* getToStringFormatString();
29  void toString(char* str, NATIVE_INT_TYPE size) override;
30 #endif
31  PRIVATE:
32  U32 m_idBase;
33  NATIVE_INT_TYPE m_instance;
34 
35 
36  };
37 
38 }
39 
40 #endif
PlatformIntType NATIVE_INT_TYPE
Definition: BasicTypes.h:55
PassiveComponentBase(const char *name)
Named constructor.
void init()
Object initializer.
Definition: ObjBase.cpp:26
void setIdBase(const U32)
Set the ID base.
Brief class description.
Definition: ObjBase.hpp:35
virtual ~PassiveComponentBase()
Destructor.
C++-compatible configuration header for fprime configuration.
Declarations for Fw::ObjBase and Fw::ObjRegistry.
NATIVE_INT_TYPE getInstance() const