9 #if FW_OBJECT_REGISTRATION == 1
10 ObjRegistry* ObjBase::s_objRegistry =
nullptr;
13 #if FW_OBJECT_NAMES == 1
15 if (
nullptr == objName) {
16 this->setObjName(
"NoName");
18 this->setObjName(objName);
28 #if FW_OBJECT_REGISTRATION
29 if (ObjBase::s_objRegistry) {
30 ObjBase::s_objRegistry->regObject(
this);
39 #if FW_OBJECT_NAMES == 1
40 const char* ObjBase::getObjName() {
41 return this->m_objName.toChar();
44 void ObjBase::setObjName(
const char* name) {
45 this->m_objName = name;
47 #if FW_OBJECT_TO_STRING == 1
51 PlatformIntType status = snprintf(str,
static_cast<size_t>(size),
"Obj: %s", this->m_objName.toChar());
59 #if FW_OBJECT_REGISTRATION == 1
60 void ObjBase::setObjRegistry(ObjRegistry* reg) {
61 ObjBase::s_objRegistry = reg;
64 ObjRegistry::~ObjRegistry() {
PlatformIntType NATIVE_INT_TYPE
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.
C++-compatible configuration header for fprime configuration.
Declarations for Fw::ObjBase and Fw::ObjRegistry.
void init()
Object initializer.
virtual ~ObjBase()
Destructor.
ObjBase(const char *name)
ObjBase constructor.