56 lines
1.2 KiB
C++
Executable File
56 lines
1.2 KiB
C++
Executable File
/**
|
|
* DdsHandler for DDS
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2016-04-14
|
|
*/
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
#include <ParticipantManagement/ppm_ftc.h>
|
|
|
|
#include "logger.h"
|
|
|
|
using PpmDtc = std::shared_ptr<ParticipantManagement::Interface::Dtc>;
|
|
using PpmFtc = std::shared_ptr<ParticipantManagement::Interface::Ftc>;
|
|
|
|
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<DDSConnector::DdsConnector> m_ddsConnector;
|
|
PpmDtc m_ppmDtc;
|
|
PpmFtc m_ppmFtc;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
}
|