/src/Fast-DDS/include/fastdds/LibrarySettings.hpp
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright 2024 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 | | /** |
16 | | * @file LibrarySettings.hpp |
17 | | * |
18 | | */ |
19 | | |
20 | | #ifndef FASTDDS__LIBRARY_SETTINGS_HPP |
21 | | #define FASTDDS__LIBRARY_SETTINGS_HPP |
22 | | |
23 | | namespace eprosima { |
24 | | namespace fastdds { |
25 | | |
26 | | enum IntraprocessDeliveryType |
27 | | { |
28 | | INTRAPROCESS_OFF, |
29 | | INTRAPROCESS_USER_DATA_ONLY, |
30 | | INTRAPROCESS_FULL |
31 | | }; |
32 | | |
33 | | /** |
34 | | * Class LibraySettings, used by the user to define the Fast DDS library behaviour |
35 | | * @ingroup FASTDDS_MODULE |
36 | | */ |
37 | | class LibrarySettings |
38 | | { |
39 | | public: |
40 | | |
41 | | LibrarySettings() |
42 | 4 | { |
43 | 4 | } |
44 | | |
45 | | virtual ~LibrarySettings() |
46 | 0 | { |
47 | 0 | } |
48 | | |
49 | | bool operator ==( |
50 | | const LibrarySettings& b) const |
51 | 0 | { |
52 | 0 | return (intraprocess_delivery == b.intraprocess_delivery); |
53 | 0 | } |
54 | | |
55 | | IntraprocessDeliveryType intraprocess_delivery = |
56 | | #if HAVE_STRICT_REALTIME |
57 | | INTRAPROCESS_OFF; |
58 | | #else |
59 | | INTRAPROCESS_FULL; |
60 | | #endif // if HAVE_STRICT_REALTIME |
61 | | }; |
62 | | |
63 | | } // namespace fastdds |
64 | | } // namespace eprosima |
65 | | |
66 | | #endif // FASTDDS__LIBRARY_SETTINGS_HPP |