eive-obsw/mission/utility/InitMission.h

20 lines
678 B
C
Raw Permalink Normal View History

#pragma once
2021-02-22 17:36:44 +01:00
#include <fsfw/objectmanager/SystemObjectIF.h>
#include <fsfw/serviceinterface/ServiceInterface.h>
2022-11-15 17:03:46 +01:00
namespace scheduling {
2021-02-22 17:36:44 +01:00
static void printAddObjectError(const char* name, object_id_t objectId) {
2021-02-22 17:36:44 +01:00
#if FSFW_CPP_OSTREAM_ENABLED == 1
2022-01-17 15:58:27 +01:00
sif::error << "InitMission::printAddError: Adding object " << name << " with object ID 0x"
<< std::hex << std::setfill('0') << std::setw(8) << objectId << " failed!" << std::dec
<< std::endl;
2021-02-22 17:36:44 +01:00
#else
2022-01-17 15:58:27 +01:00
sif::printError("InitMission::printAddError: Adding object %s with object ID 0x%08x failed!\n",
name, objectId);
2021-02-22 18:46:45 +01:00
#endif /* FSFW_CPP_OSTREAM_ENABLED == 1 */
2021-02-22 17:36:44 +01:00
}
2022-11-15 17:21:12 +01:00
} // namespace scheduling