- 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>
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
|