- 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>
33 lines
817 B
C++
Executable File
33 lines
817 B
C++
Executable File
|
|
|
|
|
|
#include "dds_handler_exercise.h"
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <QtGlobal>
|
|
|
|
namespace CombatNetRadio
|
|
{
|
|
|
|
DdsHandlerExercise::DdsHandlerExercise(const dds::domain::DomainParticipant &domainParticipant, int exerciseId)
|
|
: m_ddsConnector(new DDSConnector::DdsConnector(domainParticipant, IDL::PartitionType::Exercise, exerciseId))
|
|
{
|
|
bool ok = m_ddsConnector->init();
|
|
Q_ASSERT(ok);
|
|
m_ddsConnector->initSubscriber();
|
|
|
|
m_ppmDtc = ParticipantManagement::Interface::Dtc::create(m_ddsConnector);
|
|
}
|
|
|
|
void DdsHandlerExercise::enableDtcs()
|
|
{
|
|
bool ok = m_ppmDtc->enableParticipant() &&
|
|
m_ppmDtc->enableParticipantPosition() &&
|
|
m_ppmDtc->enableType();
|
|
Q_ASSERT(ok);
|
|
}
|
|
|
|
DdsHandlerExercise::~DdsHandlerExercise() = default;
|
|
|
|
}
|