/** * DdsHandler for VideoOverlayManagement * $Id$ * $HeadURL$ * $Author$ * Created by hjl, SLSE, 2016-07-06 */ #pragma once #include "logger.h" #if BUILD_RTI #include #endif namespace Core { class Pacemaker; } namespace VideoOverlayManagement { class DdsHandler final { public: #if BUILD_RTI DdsHandler(int domainId, int exerciseId); #else DdsHandler(int domainId, int exerciseId) { Q_UNUSED(domainId); Q_UNUSED(exerciseId); } #endif ~DdsHandler() = default; #if BUILD_RTI bool init(const QStringList &qosFileList = QStringList()); #else bool init(const QStringList &qosFileList = QStringList()) { Q_UNUSED(qosFileList); return true; } #endif #if BUILD_RTI std::shared_ptr pacemaker() const { return m_pacemaker; } std::shared_ptr dds() const { return m_ddsConnector; } #else std::shared_ptr pacemaker() const { return nullptr; } void* dds() const { return nullptr; } #endif private: NGL::INGLLogger &m_logger; #if BUILD_RTI std::shared_ptr m_ddsConnector; std::shared_ptr m_pacemaker; #endif }; } // namespace VideoOverlayManagement