Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+55
@@ -0,0 +1,55 @@
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user