48 lines
929 B
C++
Executable File
48 lines
929 B
C++
Executable File
|
|
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
#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
|
|
{
|
|
|
|
|
|
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:
|
|
NGL::INGLLogger &m_logger;
|
|
std::shared_ptr<DDSConnector::DdsConnector> m_ddsConnector;
|
|
PpmDtc m_ppmDtc;
|
|
PpmFtc m_ppmFtc;
|
|
};
|
|
|
|
}
|