49 lines
1.3 KiB
C++
Executable File
49 lines
1.3 KiB
C++
Executable File
|
|
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <ExerciseManagement/exm_dtc.h>
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
#include <ParticipantManagement/ppm_ftc.h>
|
|
|
|
#include "logger.h"
|
|
|
|
namespace Core
|
|
{
|
|
class Pacemaker;
|
|
namespace Interface
|
|
{
|
|
class Dts;
|
|
}
|
|
}
|
|
|
|
namespace WarehouseManagement
|
|
{
|
|
|
|
|
|
class DdsHandler
|
|
{
|
|
public:
|
|
explicit DdsHandler(int domainId);
|
|
|
|
bool init(const QStringList &qosFileList = QStringList());
|
|
|
|
std::shared_ptr<Core::Pacemaker> pacemaker() const { return m_pacemaker; }
|
|
std::shared_ptr<ExerciseManagement::Interface::Dtc> exmDtc() const { return m_exmDtc; }
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> ppmDtc() const { return m_ppmDtc; }
|
|
std::shared_ptr<ParticipantManagement::Interface::Ftc> ppmFtc() const { return m_ppmFtc; }
|
|
std::shared_ptr<DDSConnector::DdsConnector> dds() const { return m_ddsConnector; }
|
|
dds::domain::DomainParticipant getDomainParticipant() const { return m_ddsConnector->getDomainParticipant(); }
|
|
|
|
private:
|
|
NGL::INGLLogger &m_logger;
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
std::shared_ptr<Core::Pacemaker> m_pacemaker;
|
|
std::shared_ptr<ExerciseManagement::Interface::Dtc> m_exmDtc;
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
|
|
std::shared_ptr<ParticipantManagement::Interface::Ftc> m_ppmFtc;
|
|
};
|
|
|
|
}
|