eive-obsw/mission/utility/InitMission.h

23 lines
754 B
C
Raw Normal View History

2021-02-22 17:36:44 +01:00
#ifndef MISSION_UTILITY_INITMISSION_H_
#define MISSION_UTILITY_INITMISSION_H_
#include <fsfw/objectmanager/SystemObjectIF.h>
#include <fsfw/serviceinterface/ServiceInterface.h>
2021-02-22 18:46:45 +01:00
namespace initmission {
2021-02-22 17:36:44 +01:00
void printAddObjectError(const char* name, object_id_t objectId) {
#if FSFW_CPP_OSTREAM_ENABLED == 1
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;
#else
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
}
}
#endif /* MISSION_UTILITY_INITMISSION_H_ */