ObjectManagerIF improvements #73
No reviewers
Labels
No Label
API Change
Breaking API Change
bug
build
cosmetics
Documentation
duplicate
feature
help wanted
hotfix
invalid
question
Refactor
Tests
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: fsfw/fsfw#73
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "KSat/fsfw:mueller_objectManagerIF"
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?
fixes #67 .
I don't know if the exit is a good idea, could also just return nullptr.
removed config include, new retvals, nullptr checkto ObjectManagerIF improvements@ -8,10 +8,11 @@
#ifndef OBJECTMANAGERIF_H_
#define OBJECTMANAGERIF_H_
#include "systemObjectList.h"
I think we can remove that include
@ -92,0 +94,4 @@
if(objectManager == nullptr) {
sif::error << "ObjectManagerIF: Global object manager has not "
"been initialized yet!" << std::endl;
std::exit(0);
This should be std::exit(1), we do exit with an failure here?
The current software does not know what to do if no ObjectManager is instanciated. So exit seems fine from my point of view.
API_Change because of removed inlcudes.
THe software does not compile if the object manager is not instantiated I think. But it is possible to forget the initialization.
Hm if it does not compile, we can remove the exit.
Actually, its a linker error.
Ok a linker error is ok. So, I think we can remove the sys.exit now.
@ -72,1 +71,3 @@
<< std::dec << std::endl;
object_id_t var = it.first;
sif::error << "Object 0x" << std::hex << std::setw(8) <<
std::setfill('0')<< var << " failed to initialize " <<
std::setfill is not reset.
should std::setw be reset as well? how to reset std::setfill?
okay, i put std::setfill('') at the end