Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Services/GuezMinelayerProcessing/dds_handler.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

44 lines
971 B
C++
Executable File

/**
* DdsHandler for DDS
* $Id$
* $HeadURL$
* $Author$
* Created by Hanna E. Rathje, SLSE, 2015-09-02
*/
#pragma once
#if BUILD_RTI
#include <DDS/DDSConnector/dds_connector.h>
#include <DDS/Core/topic_lock_master.h>
#endif
#include "logger.h"
namespace GuezMinelayerProcessing
{
class DdsHandler final
{
public:
#if BUILD_RTI
explicit DdsHandler(const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnector);
#else
explicit DdsHandler();
#endif
~DdsHandler() = default;
bool init(const QStringList &qosFileList = QStringList());
#if BUILD_RTI
std::shared_ptr<DDSConnector::DdsConnector> ddsConnector() const { return m_ddsConnector; }
#endif
std::shared_ptr<Core::TopicLockMaster> topicLockMaster() const { return m_topicLockMaster; }
private:
NGL::INGLLogger &m_logger;
#if BUILD_RTI
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
#endif
std::shared_ptr<Core::TopicLockMaster> m_topicLockMaster;
};
}