Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/DDS/DDSConnector/pub_sub_base.h
T
torstenandCopilot d6b6ffce7c Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-08-19 14:46:29 +02:00

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