Fast DDS  Version 3.6.1.0
Fast DDS
RPCEntity.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__RPCENTITY_HPP
16 #define FASTDDS_DDS_RPC__RPCENTITY_HPP
17 
18 #include <fastdds/dds/core/detail/DDSReturnCode.hpp>
19 #include <fastdds/fastdds_dll.hpp>
20 
21 namespace eprosima {
22 namespace fastdds {
23 namespace dds {
24 namespace rpc {
25 
29 class RPCEntity
30 {
31 
32 public:
33 
37  virtual ReturnCode_t enable() = 0;
38 
42  virtual ReturnCode_t close() = 0;
43 
47  virtual bool is_enabled() const = 0;
48 
49 protected:
50 
54  ~RPCEntity() = default;
55 
56 };
57 
58 } // namespace rpc
59 } // namespace dds
60 } // namespace fastdds
61 } // namespace eprosima
62 
63 #endif // FASTDDS_DDS_RPC__RPCENTITY_HPP
Abstract base class for all RPC Objects.
Definition: RPCEntity.hpp:30
virtual bool is_enabled() const =0
Check if the entity is enabled.
virtual ReturnCode_t enable()=0
Enables the entity.
virtual ReturnCode_t close()=0
Disables the entity.
Definition: DomainParticipant.hpp:46
int32_t ReturnCode_t
Definition: DDSReturnCode.hpp:59