Fast DDS  Version 3.3.0
Fast DDS
Loading...
Searching...
No Matches
Service.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
15#ifndef FASTDDS_DDS_RPC__SERVICE_HPP
16#define FASTDDS_DDS_RPC__SERVICE_HPP
17
18#include <string>
19
20#include <fastdds/dds/rpc/RPCEntity.hpp>
21
22namespace eprosima {
23namespace fastdds {
24namespace dds {
25
27
28} // namespace dds
29
30namespace dds {
31namespace rpc {
32
36class Service : public RPCEntity
37{
38
39public:
40
44 virtual const std::string& get_service_name() const = 0;
45
49 virtual const std::string& get_service_type_name() const = 0;
50
51protected:
52
56 ~Service() = default;
57
58};
59
60} // namespace rpc
61} // namespace dds
62} // namespace fastdds
63} // namespace eprosima
64
65#endif // FASTDDS_DDS_RPC__SERVICE_HPP
Class DomainParticipant used to group Publishers and Subscribers into a single working unit.
Definition DomainParticipant.hpp:86
Abstract base class for all RPC Objects.
Definition RPCEntity.hpp:30
Base class for a Service in the RPC communication.
Definition Service.hpp:37
virtual const std::string & get_service_type_name() const =0
Getter for the service type name.
virtual const std::string & get_service_name() const =0
Getter for the service name.
Definition DomainParticipant.hpp:59
Definition BuiltinTopicKey.hpp:26
eProsima namespace.