50 lines
1.4 KiB
C++
Executable File
50 lines
1.4 KiB
C++
Executable File
/**
|
|
* DdsHandler for DDS
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Hanna E. Rathje, SLSE, 2015-09-02
|
|
*/
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <DDS/Core/pacemaker.h>
|
|
#include <ExerciseEventManagement/eem_dts.h>
|
|
#include <InfrastructureManagement/ism_dtc.h>
|
|
#include "logger.h"
|
|
|
|
class QThread;
|
|
namespace Core
|
|
{
|
|
class Pacemaker;
|
|
}
|
|
|
|
namespace ExerciseEventManagement
|
|
{
|
|
class DdsHandler final
|
|
{
|
|
public:
|
|
DdsHandler(int domainId, int partitionId, IDL::PartitionType partitionType);
|
|
~DdsHandler();
|
|
|
|
bool init(const QStringList &qosFileList = QStringList());
|
|
|
|
void setRunningState(Core::RunningState rs);
|
|
void addPortToPacemaker(quint16 port, Core::PortType type);
|
|
|
|
std::shared_ptr<DDSConnector::DdsConnector> ddsConnector() const { return m_ddsConnector; }
|
|
std::shared_ptr<ExerciseEventManagement::Interface::Dts> dts() const { return m_ddsDts; }
|
|
std::shared_ptr<InfrastructureManagement::Interface::Dtc> dtcIsm() const { return m_dtcIsm;} ///< Pointer to DTC InfrastructureManagement interface object
|
|
|
|
private:
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
std::shared_ptr<ExerciseEventManagement::Interface::Dts> m_ddsDts;
|
|
std::shared_ptr<InfrastructureManagement::Interface::Dtc> m_dtcIsm; ///< Pointer to DTC InfrastructureManagement interface object
|
|
|
|
Core::Pacemaker *m_pacemaker = nullptr;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
}
|