- Merged 292 changed files from dlbo snapshot - Fixed IDL enum collisions (PortType, PdmEventType) - Fixed Grantlee template for C++11 scoped enums - Fixed CMake VERSION_GREATER syntax - Added missing directories (THP, LtsRestClient, etc.) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
34 lines
718 B
C++
Executable File
34 lines
718 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* FTC GenericFTC_Interface
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <DDS/Core/core.hpp>
|
|
|
|
#include <future>
|
|
|
|
class Request2;
|
|
|
|
namespace FTC
|
|
{
|
|
// uses FTC (static)
|
|
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;
|
|
};
|
|
} // namespace FTC
|