Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Plugins/InfrastructureManagement/Data/ism_data_plugin.h
T
torsten 950d669538 Qt6 Migration: BUILD_RTI guards und CMake fixes
- BUILD_RTI conditional compilation für RTI Connext DDS dependencies
- Namespace fixes in core_dtc.h (Core:: → DDS::Core::)
- CMakeLists.txt: BUILD_RTI option und conditional dependencies
- Handler minelayer: namespace closing mit BUILD_RTI guard
- Build erfolgreich mit BUILD_RTI=OFF validiert

Signed-off-by: Torsten Wierschin <torsten.wierschin@life-maps.com>
2026-08-21 18:37:18 +02:00

53 lines
1.6 KiB
C++
Executable File

#pragma once
#include <Plugins/InfrastructureManagement/ism_data_plugin_interface.h>
namespace InfrastructureManagement
{
class DataPlugin final : public DataPluginBase::Plugin
{
Q_PLUGIN_METADATA(IID "data:3:ism")
Q_OBJECT
public:
DataPlugin() = default;
~DataPlugin() = default;
QString pluginName() const override { return QStringLiteral("InfrastructureManagement.Data"); }
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::Global ||
partition == IDL::PartitionType::Replay;
}
};
class DataInterfaceImpl final : public DataInterface
{
public:
DataInterfaceImpl(LtsSession::LtsSessionDataDds *session,
const std::shared_ptr<InfrastructureManagement::Interface::Dtc> &dtc,
const std::shared_ptr<InfrastructureManagement::Interface::Ftc> &ftc);
std::shared_ptr<InfrastructureManagement::Interface::Dtc> getDtc() override;
std::shared_ptr<InfrastructureManagement::Interface::Ftc> getFtc() override;
std::shared_ptr<ForeignDataInterface> getForeignDataInterface() override;
private:
std::shared_ptr<InfrastructureManagement::Interface::Dtc> m_dtc;
std::shared_ptr<InfrastructureManagement::Interface::Ftc> m_ftc;
bool m_dtcEnabled { false };
bool m_ftcEnabled { false };
LtsSession::LtsSessionDataDds *m_session { nullptr };
std::shared_ptr<ForeignDataInterface> m_foreignInterface;
};
}