- 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>
68 lines
2.3 KiB
C++
Executable File
68 lines
2.3 KiB
C++
Executable File
/**
|
|
* DdsHandlerTargetAreas for DDS
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by gr, SLSE, 2015-09-02
|
|
*/
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <DDS/Core/core_dtc.h>
|
|
#include <DDS/Core/topic_lock_master.h>
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
#include <TrainingAreaBase/tab_ftc.h>
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
#include <LtsCoordTrans/lts_coord_trans.h>
|
|
|
|
#include "logger.h"
|
|
|
|
namespace TargetAreas
|
|
{
|
|
class DdsHandlerTargetAreas : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
DdsHandlerTargetAreas(int domainId, int exerciseId);
|
|
|
|
bool init(const QStringList &qosFileList = QStringList());
|
|
|
|
std::shared_ptr<Core::TopicLockMaster> topicLockMaster() const { return m_topicLockMaster; }
|
|
std::shared_ptr<DDSConnector::DdsConnector> dds() const { return m_ddsConnector; }
|
|
|
|
std::shared_ptr<Core::Interface::Dtc> dtcCore() const { return m_dtcCore;}
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> dtcPpm() const {return m_dtcPpm;} ///< Pointer to DTC ParticipantManagement interface object
|
|
std::shared_ptr<TrainingAreaBase::Interface::Ftc> ftcTab() const { return m_ftcTab;}
|
|
|
|
|
|
int getParticipantEventId() { return m_participantEventId++;}
|
|
qint64 currentPartitionTime() const;
|
|
|
|
/**
|
|
* Get equipment number for the given participant
|
|
* @param participantId participant id to get the equipment number for
|
|
* @return equipment number or 0 in case of failure
|
|
*/
|
|
int participantId2EquipNo(const int participantId) const;
|
|
|
|
private Q_SLOTS:
|
|
/**
|
|
* Handle the signals from 'ParticipantManagement'
|
|
*/
|
|
void onParticipantChanged(const ParticipantManagement::Participant &data, DataModification modType);
|
|
|
|
private:
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
std::shared_ptr<Core::TopicLockMaster> m_topicLockMaster;
|
|
std::shared_ptr<Core::Interface::Dtc> m_dtcCore;
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_dtcPpm; ///< Pointer to DTC ParticipantManagement interface object
|
|
std::shared_ptr<TrainingAreaBase::Interface::Ftc> m_ftcTab;
|
|
|
|
QMap<int, int> m_partId2EquipNoMap; ///< Reference map participant (player) to equipment number
|
|
int m_participantEventId;
|
|
int m_exerciseId;
|
|
};
|
|
|
|
}
|