- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
81 lines
2.5 KiB
C++
Executable File
81 lines
2.5 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <Plugins/SituationReplayManagement/srm_data_plugin_interface.h>
|
|
#include <Core/core_dts_types.h>
|
|
#include <SituationReplayManagement/logger.h>
|
|
|
|
#include <QtCore/QPointer>
|
|
#include <QtCore/QSet>
|
|
|
|
class QProcess;
|
|
namespace SituationReplayManagement
|
|
{
|
|
class ReplayHandler;
|
|
class DataPlugin final : public DataPluginBase::Plugin
|
|
{
|
|
Q_PLUGIN_METADATA(IID "data:3:srm")
|
|
|
|
Q_OBJECT
|
|
public:
|
|
DataPlugin();
|
|
~DataPlugin();
|
|
|
|
QString pluginName() const override { return QStringLiteral("SituationReplayManagement"); }
|
|
std::shared_ptr<DataPluginBase::Interface> createDataInterface(LtsSession::LtsSessionDataDds *session) override;
|
|
bool availableInPartition(IDL::PartitionType partition) const override
|
|
{
|
|
return partition == IDL::PartitionType::Exercise ||
|
|
partition == IDL::PartitionType::Replay ||
|
|
partition == IDL::PartitionType::Global;
|
|
}
|
|
|
|
std::shared_ptr<ReplayHandler> m_replayHandler;
|
|
};
|
|
|
|
|
|
class DataInterfaceImpl final : public DataInterface
|
|
{
|
|
public:
|
|
explicit DataInterfaceImpl(const std::shared_ptr<ReplayHandler> &replayHandler,
|
|
LtsSession::LtsSessionDataDds *session,
|
|
const std::shared_ptr<Core::Interface::Dtc> &dtc);
|
|
|
|
std::shared_ptr<Core::Interface::Dtc> getDtc() override { return m_dtc; }
|
|
std::shared_ptr<ForeignDataInterface> getForeignDataInterface() override { return m_foreignInterface; }
|
|
|
|
private:
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
std::shared_ptr<Core::Interface::Dtc> m_dtc;
|
|
std::shared_ptr<ForeignDataInterface> m_foreignInterface;
|
|
};
|
|
|
|
|
|
class ForeignInterfaceImpl final : public ForeignDataInterface
|
|
{
|
|
public:
|
|
ForeignInterfaceImpl(const std::shared_ptr<ReplayHandler> &replayHandler,
|
|
LtsSession::LtsSessionDataDds *session);
|
|
~ForeignInterfaceImpl();
|
|
|
|
|
|
void removeReplayPartitionsWorkstation(const int workstationId) noexcept(false) override;
|
|
void removeReplayPartitionsOperator(const int operatorId) noexcept(false) override;
|
|
void replayPartitionRemoveRequest(int partitionId, int workstationId, int operatorId) noexcept(false) override;
|
|
int replayPartitionCreateRequest(int exerciseId, int workstationId, int operatorId, Core::ReplayType replayType) noexcept(false) override;
|
|
|
|
private:
|
|
void write(const Core::ReplayPartition &repl);
|
|
void remove(const Core::ReplayPartition &repl);
|
|
|
|
private:
|
|
std::shared_ptr<ReplayHandler> m_replayHandler;
|
|
QPointer<LtsSession::LtsSessionDataDds> m_session;
|
|
friend class ReplayHandler;
|
|
};
|
|
|
|
}
|