F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SimpleObjRegistry.hpp
Go to the documentation of this file.
1 
19 #ifndef FW_OBJ_SIMPLE_OBJ_REGISTRY_HPP
20 #define FW_OBJ_SIMPLE_OBJ_REGISTRY_HPP
21 
22 #include <Fw/FPrimeBasicTypes.hpp>
23 #include <Fw/Obj/ObjBase.hpp>
24 
25 #if FW_OBJECT_REGISTRATION == 1
26 
27 namespace Fw {
28 
29 class SimpleObjRegistry : public ObjRegistry {
30  public:
31  SimpleObjRegistry();
32  ~SimpleObjRegistry();
33  void dump();
34  void clear();
35 #if FW_OBJECT_NAMES == 1
36  void dump(const char* objName);
37 #endif
38  private:
39  void regObject(ObjBase* obj);
40  ObjBase* m_objPtrArray[FW_OBJ_SIMPLE_REG_ENTRIES];
41  FwSizeType m_numEntries;
42 };
43 
44 } // namespace Fw
45 
46 #endif // FW_OBJECT_REGISTRATION
47 
48 #endif // FW_OBJ_SIMPLE_OBJ_REGISTRY_HPP
PlatformSizeType FwSizeType
#define FW_OBJ_SIMPLE_REG_ENTRIES
Number of objects stored in simple object registry.
Definition: FpConfig.h:142
Declarations for Fw::ObjBase and Fw::ObjRegistry.