30 lines
608 B
C++
Executable File
30 lines
608 B
C++
Executable File
|
|
|
|
#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;
|
|
};
|
|
}
|