- cmake/FindRTI.cmake: Add INTERFACE placeholder targets when RTI not found - cmake/FindRTI.cmake: Force BUILD_RTI=OFF when RTI not installed - Lts/Common/LtsSession/CMakeLists.txt: Make LtsSessionDataDds conditional on BUILD_RTI - Lts/Viewer/CMakeLists.txt: Make LtsDataView conditional on BUILD_RTI - Lts/Plugins/*/CMakeLists.txt: 97 plugin files wrapped in BUILD_RTI conditionals - cmake/NGLMacros.cmake: Fix NGL_ADD_BIG_RESOURCES macro (removed premature return()) - Multiple Qt6 API fixes: QLinkedList→std::list, QStringRef→QStringView, etc. - BUILD_RTI_FIXES_SUMMARY.md: Comprehensive documentation of all fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
52 lines
1.0 KiB
C++
Executable File
52 lines
1.0 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Logging within SituationMap
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#include "situation_map_logging.h"
|
|
#include <NGLLogger/NGLLoggerBootstrap.h>
|
|
#include <QUuid>
|
|
namespace SituationMap
|
|
{
|
|
|
|
LOGGER_T getLogger(const char *name, int id)
|
|
{
|
|
static const QLatin1String prefix("SituationMap.");
|
|
std::string loggerName;
|
|
const size_t len = strlen(name);
|
|
loggerName.reserve(prefix.size() + len);
|
|
loggerName.append(prefix.data(), prefix.size());
|
|
loggerName.append(name, len);
|
|
|
|
if (id > 0)
|
|
{
|
|
std::stringstream loggerStream;
|
|
loggerStream << loggerName << "." << id;
|
|
loggerName = loggerStream.str();
|
|
}
|
|
|
|
try
|
|
{
|
|
return NGL::NGLLoggerBootstrap::getNGLRootLogger().
|
|
getNGLLogger(loggerName);
|
|
}
|
|
catch (const std::exception &ex)
|
|
{
|
|
fprintf(stderr, "Error retrieving logger: %s", ex.what());
|
|
abort();
|
|
}
|
|
}
|
|
|
|
} // namespace SituationMap
|
|
|
|
std::ostream &operator<< (std::ostream &stream,
|
|
const QUuid &value)
|
|
{
|
|
stream << "QUuid(" << value.toString() << ")";
|
|
return stream;
|
|
}
|
|
|