/** * DdsHandler for DDS * $Id$ * $HeadURL$ * $Author$ * Created by Christian Ehrlicher, SLSE, 2016-04-14 */ #pragma once #include #include #include #include "logger.h" using PpmDtc = std::shared_ptr; using PpmFtc = std::shared_ptr; namespace WarehouseManagement { /** * @brief DdsHandler for Ex_N partition * The DomainParticipant must be given from the outside (e.g. from the ex_0 handler) */ class DdsHandlerExercise { public: DdsHandlerExercise(const dds::domain::DomainParticipant &dp, int exerciseId); bool init(const QStringList &qosFileList = QStringList()); PpmDtc ppmDtc() const { return m_ppmDtc; } PpmFtc ppmFtc() const { return m_ppmFtc; } int getExerciseId() const { return m_ddsConnector->getPartitionId(); } private: std::shared_ptr m_ddsConnector; PpmDtc m_ppmDtc; PpmFtc m_ppmFtc; NGL::INGLLogger &m_logger; }; }