41 lines
866 B
C++
Executable File
41 lines
866 B
C++
Executable File
/**
|
|
* Initialisation for Subscriber
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
#pragma once
|
|
|
|
#include <DDS/DDSConnector/dds_connector.h>
|
|
#include <DDS/Generic/topic_description.h>
|
|
#include "logger.h"
|
|
|
|
namespace DDSConnector
|
|
{
|
|
class Publisher;
|
|
}
|
|
|
|
class TelegramModel;
|
|
namespace DdsView
|
|
{
|
|
|
|
class Initialisation : public DDSConnector::DdsConnector
|
|
{
|
|
public:
|
|
Initialisation(const dds::domain::DomainParticipant &dp,
|
|
int domainId, IDL::PartitionType partitionType,
|
|
int exerciseId, TelegramModel *tm);
|
|
~Initialisation() = default;
|
|
|
|
bool initDDTCs(const QVector<DDSGeneric::TopicDescription> &vDro);
|
|
|
|
// PublishData
|
|
bool publish(const dds::core::xtypes::DynamicData &data, const std::string &topicName);
|
|
|
|
private:
|
|
void initDDS(const dds::domain::DomainParticipant &dp, TelegramModel *tm);
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
}
|