Robin Mueller
a18706ec53
1. Further reduces the amount of code the user needs to copy and paste 2. Makes FSFW tests more accessible. This can be used to simplify moving mission unit tests to the FSFW 3. A lot of include improvements
17 lines
545 B
C++
17 lines
545 B
C++
#include "CatchDefinitions.h"
|
|
#include <fsfw/serviceinterface/ServiceInterface.h>
|
|
#include <fsfw/objectmanager/ObjectManager.h>
|
|
|
|
StorageManagerIF* tglob::getIpcStoreHandle() {
|
|
if(ObjectManager::instance() != nullptr) {
|
|
return ObjectManager::instance()->get<StorageManagerIF>(objects::IPC_STORE);
|
|
} else {
|
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
|
sif::error << "Global object manager uninitialized" << std::endl;
|
|
#else
|
|
sif::printError("Global object manager uninitialized\n\r");
|
|
#endif /* FSFW_CPP_OSTREAM_ENABLED == 1 */
|
|
return nullptr;
|
|
}
|
|
}
|