| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
RpcServerReader.hpp
1// Copyright 2025 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
18
19#ifndef FASTDDS_DDS_RPC_INTERFACES__RPCSERVERREADER_HPP
20#define FASTDDS_DDS_RPC_INTERFACES__RPCSERVERREADER_HPP
21
22#include <fastdds/dds/core/Time_t.hpp>
23
24 namespace eprosima {
25 namespace fastdds {
26 namespace dds {
27 namespace rpc {
28
34 template <typename T>
35 class RpcServerReader
36{
37 public:
38
42 virtual ~RpcServerReader() noexcept = default;
43
56 virtual bool read(
57 T& value) = 0;
58
73 virtual bool read(
74 T& value,
75 const eprosima::fastdds::dds::Duration_t& timeout) = 0;
76
77};
78
79} // namespace rpc
80} // namespace dds
81} // namespace fastdds
82} // namespace eprosima
83
84#endif // FASTDDS_DDS_RPC_INTERFACES__RPCSERVERREADER_HPP
eprosima::fastdds::dds::rpc::RpcServerReader
An interface for a server-side RPC reader.
Definition RpcServerReader.hpp:36
eprosima::fastdds::dds::rpc::RpcServerReader::~RpcServerReader
virtual ~RpcServerReader() noexcept=default
Destructor.
eprosima::fastdds::dds::rpc::RpcServerReader::read
virtual bool read(T &value)=0
Blocking read operation.
dds
Definition DomainParticipant.hpp:46
eprosima::fastdds::dds::rpc
Definition DomainParticipant.hpp:59
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds::dds::Duration_t
Time_t Duration_t
Definition Time_t.hpp:91
eprosima::fastdds
eprosima
eProsima namespace.