Kept: TetraIF/, Z/src, Lts/Common, Lts/Proxies/TrainingAreaBase (tabTelegrams dependency of TetraIF) plus build scaffolding (cmake/, include/, external/, doxygen/, tests/, translations/, lts-cc.conf, CTestCustom.ctest, new_docker_build.sh, rti_license.dat). Removed: out-of-scope Lts modules (Application, DDS, Plugins, Projects, Services, Tools, Viewer, all Proxies except TrainingAreaBase), top-level src/, specs/, Qt5 tree (qt5-before + .gitmodules entry), migration reports and leftover scripts.
45 lines
954 B
C++
45 lines
954 B
C++
|
|
|
|
#pragma once
|
|
|
|
#include <dds/domain/DomainParticipant.hpp>
|
|
#include <ddsconnector_export.h>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace NGL
|
|
{
|
|
class INGLLogger;
|
|
}
|
|
|
|
namespace DDSConnector
|
|
{
|
|
class DDSCONNECTOR_EXPORT PubSubBase
|
|
{
|
|
protected:
|
|
NGL::INGLLogger& m_logger;
|
|
PubSubBase(const dds::domain::DomainParticipant& domainParticipant, const std::string& partition,
|
|
const char* loggerName);
|
|
|
|
public:
|
|
virtual ~PubSubBase() = default;
|
|
|
|
void setDomainParticipant(const dds::domain::DomainParticipant& domainParticipant)
|
|
{
|
|
m_domainParticipant = domainParticipant;
|
|
}
|
|
|
|
const dds::domain::DomainParticipant& getDomainParticipant() const
|
|
{
|
|
return m_domainParticipant;
|
|
}
|
|
|
|
protected:
|
|
template <typename P> void updatePartitionQoS(P& pubSub);
|
|
|
|
protected:
|
|
dds::domain::DomainParticipant m_domainParticipant;
|
|
std::vector<std::string> m_partitions;
|
|
};
|
|
} // namespace DDSConnector
|