Qt6 Migration: Complete migration with DDS/RTI support and build validation
Major Changes:
- Merged latest Qt5 devel content from dlbo (292 files changed, 7 new dirs)
- Consolidated forward-declarations and include folders
- Removed unneeded modules per Niklas' repo check list
Build System Fixes:
- Fixed CMake VERSION_GREATER syntax in ParticipantManagement/CMakeLists.txt
- Added VLC packages (libvlc-dev, vlc-plugin-base) to docker_build.sh
- Added PostgreSQL dev packages (libpq-dev, postgresql-server-dev-all) to Dockerfile
- Fixed locale warnings (ANSI_X3.4-1968 → C.UTF-8)
- Fixed ArcGIS SDK path warnings when BUILD_ARCGIS=OFF
Code Generation Fixes:
- Fixed IDL enum collisions (PortType→CorePortType/DdsutPortType, PdmEventType)
- Fixed Grantlee template svc_translation.cpp.grantlee:
- Changed {{ idl_enum.name }}_def:: to {{ idl_enum.name }}::
- Fixed .underlying() calls for C++11 scoped enums (enum class)
- Removed generated files from repo (moc_*, *_dtc.h, *_ftc.h)
Validation:
- BUILD_RTI=ON: SUCCESS
- BUILD_RTI=OFF: SUCCESS
- C++17 standard maintained for RTI 7.7 compatibility
- Ubuntu 26.04 Docker environment verified
Remaining Warnings (expected):
- BgViewer, KDChart, KDReports, Poppler-Qt6 not found (optional features)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
18662 files changed
+4115092
-5435
No files matched your search
@@ -0,0 +1,127 @@
|
||||
/**
|
||||
* Handler for all oc data at the client
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Philipp Dassow, NLST, 20-02-2018
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QMap>
|
||||
#include <QTimer>
|
||||
|
||||
#include <OcSituationServer/oc_situation.h>
|
||||
|
||||
#include "main_handler.h"
|
||||
#include "logger.h"
|
||||
|
||||
namespace OcSituationClient
|
||||
{
|
||||
class HandlerOcAesData;
|
||||
class HandlerOcSituationData;
|
||||
class HandlerOcCentralAesData;
|
||||
|
||||
class HandlerOcData : public QObject
|
||||
, protected Interface::Fts::SendDemandEvaluationSchemaRequestHandler
|
||||
, protected Interface::Fts::SendEvaluationRequestHandler
|
||||
, protected Interface::Fts::SendDemandSituationRequestHandler
|
||||
, protected Interface::Fts::SendEquipmentErrorRegistrationRequestHandler
|
||||
, protected Interface::Fts::SendEquipmentRegistrationRequestHandler
|
||||
, protected OcSituationServer::Interface::Fts::SendEquipmentMessageOcRequestHandler
|
||||
, protected Messaging::Interface::Ftc::CreateOperatorMessageReplyHandler
|
||||
, protected Messaging::Interface::Ftc::ModifyOperatorMessageReplyHandler
|
||||
, protected Evaluations::Interface::Ftc::EvlSchemaModifyReplyHandler
|
||||
, protected TrainingAreaBase::Interface::Ftc::SendOcDataReplyHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit HandlerOcData(MainHandler *mainHandler,
|
||||
QObject *parent = nullptr);
|
||||
|
||||
~HandlerOcData();
|
||||
|
||||
bool init();
|
||||
|
||||
protected:
|
||||
void onEvlSchemaModifyReply(const Core::FunctionReplyObject &reply) override final;
|
||||
void onCreateOperatorMessageReply(const Core::FunctionReplyObject &reply) override final;
|
||||
void onModifyOperatorMessageReply(const Core::FunctionReplyObject &reply) override final;
|
||||
void onSendOcDataReply(const Core::FunctionReplyObject &reply) override final;
|
||||
|
||||
private slots:
|
||||
void onOcDataChanged(const TrainingAreaBase::OcData &data, DataModification modType);
|
||||
void onTechnicalStateSfmChanged(const TrainingAreaBaseOC::TechnicalStateSfm &data, DataModification modType);
|
||||
void onOwnPosition(const TrainingAreaBaseOC::OwnPosition &data, DataModification modType);
|
||||
void onOperatorMessageChanged(const Messaging::OperatorMessage &data, DataModification modType);
|
||||
void situationRequestCycleTimeout();
|
||||
void onUserChanged(const OperatorManagement::User &data, DataModification modType);
|
||||
|
||||
private:
|
||||
void onSendDemandEvaluationSchemaRequest(const rti::core::SampleIdentity &cookie,
|
||||
const SendDemandEvaluationSchemaRequest &request) override final;
|
||||
void onSendEvaluationRequest(const rti::core::SampleIdentity &cookie,
|
||||
const SendEvaluationRequest &request) override final;
|
||||
void onSendDemandSituationRequest(const rti::core::SampleIdentity &cookie,
|
||||
const SendDemandSituationRequest &request) override final;
|
||||
void onSendEquipmentMessageOcRequest(const rti::core::SampleIdentity &cookie,
|
||||
const OcSituationServer::SendEquipmentMessageRequest &request) override final;
|
||||
void onSendEquipmentErrorRegistrationRequest(const rti::core::SampleIdentity &cookie,
|
||||
const SendEquipmentErrorRegistrationRequest &request) override final;
|
||||
void onSendEquipmentRegistrationRequest(const rti::core::SampleIdentity &cookie,
|
||||
const SendEquipmentRegistrationRequest &request) override final;
|
||||
|
||||
|
||||
void demandEvaluationSchema(int schemaId);
|
||||
void demandSituation(bool initial = false);
|
||||
void demandAesItems(OcSituation::AesType aesType);
|
||||
void sendNewMessages();
|
||||
|
||||
void handleMessage(const QByteArray &data);
|
||||
void handleEvaluationSchema(const QByteArray &data);
|
||||
void handleStateInformation(const QByteArray &data);
|
||||
|
||||
void setResetCnt(OcSituation::AesType aesType, int resetCnt);
|
||||
|
||||
int getParticipantIdByEquipmentNumber(int eqNumber);
|
||||
|
||||
std::shared_ptr<Interface::Fts> m_fts;
|
||||
|
||||
std::shared_ptr<Evaluations::Interface::Ftc> m_evlFtc;
|
||||
std::shared_ptr<Messaging::Interface::Dtc> m_msgDtc;
|
||||
std::shared_ptr<Messaging::Interface::Ftc> m_msgFtc;
|
||||
std::shared_ptr<OperatorManagement::Interface::Dtc> m_opmDtc;
|
||||
std::shared_ptr<OcSituationServer::Interface::Fts> m_ossFts;
|
||||
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
|
||||
std::shared_ptr<TrainingAreaBase::Interface::Dtc> m_tabDtc;
|
||||
std::shared_ptr<TrainingAreaBase::Interface::Dts> m_tabDts;
|
||||
std::shared_ptr<TrainingAreaBase::Interface::Ftc> m_tabFtc;
|
||||
std::shared_ptr<TrainingAreaBaseOC::Interface::Dtc> m_tabocDtc;
|
||||
|
||||
std::shared_ptr<DatabaseInterface> m_dbHandler;
|
||||
|
||||
HandlerOcAesData *m_handlerOcAesData;
|
||||
HandlerOcSituationData *m_handlerOcSituationData;
|
||||
HandlerOcCentralAesData *m_handlerOcCentralAesData;
|
||||
QTimer *m_situationRequestCycleTimer;
|
||||
|
||||
struct
|
||||
{
|
||||
unsigned int avticeEvaluationSchemaId;
|
||||
unsigned int resetCounterDangerAreas;
|
||||
unsigned int resetCounterIeds;
|
||||
} m_stateInformation;
|
||||
|
||||
int m_centerEquipmentId;
|
||||
int m_radius;
|
||||
bool m_useFilter;
|
||||
std::vector<int> m_partyList;
|
||||
std::vector<int> m_typeClassList;
|
||||
dds::core::optional<Core::GeoPosition2D> m_position;
|
||||
OperatorManagement::User m_user;
|
||||
|
||||
bool m_licensed;
|
||||
|
||||
NGL::INGLLogger &m_logger;
|
||||
|
||||
};
|
||||
} // namespace OcSituationClient
|
||||
Reference in new issue
Block a user