Files
qt5-legatus-legacy/Lts/DDS/DTS/generic_dts.h
T
2026-08-13 18:33:10 +02:00

35 lines
720 B
C++
Executable File

/**
* @RDE_HEADER@
* Interface for DataTopicServers (DTSs) - generic
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <dds/domain/DomainParticipant.hpp>
#include <dds/pub/Publisher.hpp>
#include <dds/sub/SampleInfo.hpp>
namespace DTS
{
class Base
{
public:
Base() = default;
virtual ~Base() = default;
};
template <typename TopicType>
class GenericDts : public Base
{
public:
GenericDts() = default;
virtual ~GenericDts() = default;
virtual bool write(const TopicType &data,
const dds::core::optional<dds::sub::SampleInfo> &si = dds::core::optional<dds::sub::SampleInfo>()) = 0;
virtual bool remove(const TopicType &data, bool errorMsgIfNotExists = true) = 0;
};
}