Turn ObjectManager to Singleton #426
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I think this would be an architectural improvement and I implemented it.
Unfortunately also an external and internal API change. Following adaptions are necessary for user code:
#include <fsfw/objectmanager/ObjectManagerIF.hneeds to be replaced by#include <fsfw/objectmanager/ObjectManager.hobjectManager->needs to be replaced byObjectManager::instance()->. Alternatively, the user can store an own instance withexternal ObjectManager* objectManagersomewhere in application code in a special header and assign it at startup. Then, this header needs to be included.Part of #424.