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));
32 this->m_objPtrArray[obj], objDump);
35 this->m_objPtrArray[obj],
36 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));
52 this->m_objPtrArray[obj], objDump);
55 this->m_objPtrArray[obj],
56 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;
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 log(const char *format,...)
log a formated string with supplied arguments