Files
torstenandCopilot 4c9861a469 BUILD_RTI conditional fixes and Qt6 API updates
- 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>
2026-08-19 09:24:50 +02:00

89 lines
2.9 KiB
C++
Executable File

/**
* Plugin CES Geo Pairing
* $Id$
* $HeadURL$
* $Author$
* Created by Gerlinde Rudolphus, SLTE, 2016-04-14
*/
#include "plugin.h"
#include "settings.h"
#include <NGLLogger/NGLLoggerBootstrap.h>
namespace CesGeoPairing
{
std::shared_ptr<CentralEffectSimulation::Plugin::Interface> CesGeoPairingPlugin::createInterface(CentralEffectSimulation::Plugin::DataProvider *pdp,
const std::shared_ptr<DDSConnector::DdsConnector> &dDSConnector,
NGL::Settings *settings,
CentralEffectSimulation::MainHandler *mainHandler)
{
return std::make_shared<CesGeoPairingInterfaceImpl>(pdp, dDSConnector, settings, mainHandler);
}
CesGeoPairingInterfaceImpl::CesGeoPairingInterfaceImpl(CentralEffectSimulation::Plugin::DataProvider *pdp,
const std::shared_ptr<DDSConnector::DdsConnector> dDSConnector,
NGL::Settings *settings,
CentralEffectSimulation::MainHandler *mainHandler)
: m_pdp(pdp)
, m_ddsConnector(dDSConnector)
, m_mainHandler(mainHandler)
, m_ddsHandler(m_mainHandler->dds())
, m_db(m_mainHandler->db())
, m_handlerParticipant(m_mainHandler->handlerParticipant())
.getNGLLogger("CES.Plugin.GeoPairingInterfaceImpl"))
{
Q_UNUSED(settings)
}
CesGeoPairingInterfaceImpl::~CesGeoPairingInterfaceImpl()
{
m_handlerGeoPairing.reset();
}
bool CesGeoPairingInterfaceImpl::init(int domainId, int exerciseId)
{
m_domainId = domainId;
m_exerciseId = exerciseId;
INFO_LOG() << "CesGeoPairingInterfaceImpl::init()"
<< " m_domainId=" << m_domainId
<< " m_exerciseId=" << m_exerciseId;
// initialize ballisticService
m_ballisticService = std::make_shared<N_Ballistic::BallisticService>();
// initialize handlerGeoPairing
m_handlerGeoPairing = std::make_shared<HandlerGeoPairing>(m_ddsHandler,
m_handlerParticipant,
m_ballisticService,
this);
if (!m_handlerGeoPairing->init())
{
ERROR_LOG() << "Initialisation m_handlerGeoPairing failed.";
return false;
}
INFO_LOG() << "CesGeoPairingInterfaceImpl::init() return true";
return true;
}
QString CesGeoPairingInterfaceImpl::echo(const QString &message)
{
QString ret(QStringLiteral("<<<< %1 >>>> CesGeoPairingInterfaceImpl::echo").arg(message));
INFO_LOG() << "CesGeoPairingInterfaceImpl::echo return:" << ret;
DEBUG_LOG() << "DEBUG: CesGeoPairingInterfaceImpl::echo return:" << ret;
return ret;
}
} //namespace CesGeoPairing