8 #if FW_OBJECT_REGISTRATION == 1
12 SimpleObjRegistry::SimpleObjRegistry() {
13 ObjBase::setObjRegistry(
this);
14 this->m_numEntries = 0;
17 this->m_objPtrArray[entry] =
nullptr;
21 SimpleObjRegistry::~SimpleObjRegistry() {
22 ObjBase::setObjRegistry(
nullptr);
25 void SimpleObjRegistry::dump() {
27 #if FW_OBJECT_NAMES == 1
28 #if FW_OBJECT_TO_STRING == 1
30 this->m_objPtrArray[obj]->toString(objDump,
sizeof(objDump));
35 reinterpret_cast<POINTER_CAST>(this->m_objPtrArray[obj]),
36 reinterpret_cast<POINTER_CAST>(this->m_objPtrArray[obj]->getObjName()));
44 #if FW_OBJECT_NAMES == 1
45 void SimpleObjRegistry::dump(
const char* objName) {
48 if (strncmp(objName,this->m_objPtrArray[obj]->getObjName(),
sizeof(objDump)) == 0) {
49 #if FW_OBJECT_TO_STRING == 1
50 this->m_objPtrArray[obj]->toString(objDump,
sizeof(objDump));
55 reinterpret_cast<POINTER_CAST>(this->m_objPtrArray[obj]),
56 reinterpret_cast<POINTER_CAST>(this->m_objPtrArray[obj]->getObjName()));
62 void SimpleObjRegistry::regObject(ObjBase* obj) {
64 this->m_objPtrArray[this->m_numEntries++] = obj;
68 void SimpleObjRegistry::clear() {
69 this->m_numEntries = 0;
PlatformPointerCastType POINTER_CAST
PlatformIntType NATIVE_INT_TYPE
#define FW_OBJ_SIMPLE_REG_BUFF_SIZE
Size of object registry dump string.
#define FW_OBJ_SIMPLE_REG_ENTRIES
Number of objects stored in simple object registry.
C++-compatible configuration header for fprime configuration.
Class declaration for a simple object registry.
static void logMsg(const char *fmt, POINTER_CAST a0=0, POINTER_CAST a1=0, POINTER_CAST a2=0, POINTER_CAST a3=0, POINTER_CAST a4=0, POINTER_CAST a5=0, POINTER_CAST a6=0, POINTER_CAST a7=0, POINTER_CAST a8=0, POINTER_CAST a9=0)