Turn ObjectManager to Singleton #426

Closed
opened 2021-06-07 09:47:18 +02:00 by muellerr · 1 comment
Owner

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:

  1. #include <fsfw/objectmanager/ObjectManagerIF.h needs to be replaced by #include <fsfw/objectmanager/ObjectManager.h
  2. objectManager-> needs to be replaced by ObjectManager::instance()-> . Alternatively, the user can store an own instance with external ObjectManager* objectManager somewhere in application code in a special header and assign it at startup. Then, this header needs to be included.
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: 1. `#include <fsfw/objectmanager/ObjectManagerIF.h` needs to be replaced by `#include <fsfw/objectmanager/ObjectManager.h` 2. `objectManager->` needs to be replaced by `ObjectManager::instance()->` . Alternatively, the user can store an own instance with `external ObjectManager* objectManager` somewhere in application code in a special header and assign it at startup. Then, this header needs to be included.
muellerr added the
feature
API Change
labels 2021-06-07 09:47:18 +02:00
gaisser added this to the ASTP 1.1.0 milestone 2021-06-08 14:42:16 +02:00
muellerr was assigned by gaisser 2021-06-08 15:01:41 +02:00
Owner

Part of #424.

Part of #424.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fsfw/fsfw#426
No description provided.