Files
qt6-migration-pipeline/Lts/DDS/FTC/generic_ftc.h
T

29 lines
593 B
C++
Executable File

#pragma once
#include <DDS/Core/core.hpp>
#include <future>
class Request2;
namespace FTC
{
template <typename RequestTopicType, typename ReplyTopicType>
class GenericFtc
{
public:
GenericFtc() = default;
virtual ~GenericFtc() = default;
virtual bool requestDataClassic(const RequestTopicType &data,
const char *replySlot,
const char *errorSlot,
int &uniqueId) = 0;
virtual std::future<ReplyTopicType> requestDataModern(const RequestTopicType &requestTopic, Request2 *requestWatcher) = 0;
};
}