- 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>
78 lines
2.3 KiB
C++
Executable File
78 lines
2.3 KiB
C++
Executable File
/**
|
|
* Plugin CES TargetAreas
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Gerlinde Rudolphus, SLTE, 2016-04-14
|
|
*/
|
|
|
|
#include "plugin.h"
|
|
#include <NGLLogger/NGLLoggerBootstrap.h>
|
|
|
|
namespace TargetAreas
|
|
{
|
|
|
|
|
|
std::shared_ptr<CentralEffectSimulation::Plugin::Interface> TargetAreasPlugin::createInterface(CentralEffectSimulation::Plugin::DataProvider *pdp,
|
|
const std::shared_ptr<DDSConnector::DdsConnector> dDSConnector,
|
|
NGL::Settings *settings)
|
|
{
|
|
return std::make_shared<TargetAreasInterfaceImpl>(pdp, dDSConnector, settings);
|
|
}
|
|
|
|
|
|
TargetAreasInterfaceImpl::TargetAreasInterfaceImpl(CentralEffectSimulation::Plugin::DataProvider *pdp,
|
|
const std::shared_ptr<DDSConnector::DdsConnector> dDSConnector,
|
|
NGL::Settings *settings)
|
|
: m_pdp(pdp)
|
|
, m_ddsConnector(dDSConnector)
|
|
.getNGLLogger("CES.Plugin.TargetAreasInterfaceImpl"))
|
|
{
|
|
Q_UNUSED(settings)
|
|
}
|
|
|
|
TargetAreasInterfaceImpl::~TargetAreasInterfaceImpl()
|
|
{
|
|
//cleanupProcess();
|
|
}
|
|
|
|
|
|
bool TargetAreasInterfaceImpl::init(int domain_id, int exerciseId)
|
|
{
|
|
m_domainId = domain_id;
|
|
m_exerciseId = exerciseId;
|
|
INFO_LOG() << "TargetAreasInterfaceImpl::init()"
|
|
<< " m_domainId=" << m_domainId
|
|
<< " m_exerciseId=" << m_exerciseId;
|
|
|
|
// // initialize DDS
|
|
m_ddsHandlerTargetAreas = std::make_shared<DdsHandlerTargetAreas>(m_domainId, m_exerciseId);
|
|
if (!m_ddsHandlerTargetAreas->init())
|
|
{
|
|
ERROR_LOG() << "Initialisation DdsHandler failed.";
|
|
return false;
|
|
}
|
|
|
|
m_handlerTargetAreas.reset(new HandlerTargetAreas(m_ddsHandlerTargetAreas, this));
|
|
|
|
if (!m_handlerTargetAreas->init())
|
|
{
|
|
ERROR_LOG() << "Initialisation HandlerTargetAreas failed.";
|
|
return false;
|
|
}
|
|
|
|
INFO_LOG() << "TargetAreasInterfaceImpl::init() return true";
|
|
return true;
|
|
}
|
|
|
|
QString TargetAreasInterfaceImpl::echo(const QString &message)
|
|
{
|
|
|
|
QString ret(QStringLiteral("<<<< %1 >>>> TargetAreasInterfaceImpl::echo").arg(message));
|
|
INFO_LOG() << "TargetAreasInterfaceImpl::echo return:" << ret;
|
|
DEBUG_LOG() << "DEBUG: TargetAreasInterfaceImpl::echo return:" << ret;
|
|
return ret;
|
|
}
|
|
|
|
} //namespace TargetAreas
|