Continues migration with DDS, Common
This commit is contained in:
1 parent
9b15cee841
commit
fa48db111e
668 files changed
+111841
-2
No files matched your search
Executable
+29
@@ -0,0 +1,29 @@
|
||||
|
||||
|
||||
#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;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user