Coverage Report

Created: 2022-08-24 06:18

/src/Fast-DDS/include/fastrtps/attributes/LibrarySettingsAttributes.h
Line
Count
Source (jump to first uncovered line)
1
// Copyright 2019 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 LibrarySettingsAttributes.h
17
 *
18
 */
19
20
#ifndef LIBRARYSETTINGS_ATTRIBUTES_H_
21
#define LIBRARYSETTINGS_ATTRIBUTES_H_
22
23
namespace eprosima {
24
namespace fastrtps {
25
26
enum IntraprocessDeliveryType
27
{
28
    INTRAPROCESS_OFF,
29
    INTRAPROCESS_USER_DATA_ONLY,
30
    INTRAPROCESS_FULL
31
};
32
33
/**
34
 * Class LibraySettingsAttributes, used by the user to define the FastRTPS library behaviour
35
 * @ingroup FASTRTPS_ATTRIBUTES_MODULE
36
 */
37
class LibrarySettingsAttributes
38
{
39
public:
40
41
2
    LibrarySettingsAttributes() {
42
2
    }
43
44
0
    virtual ~LibrarySettingsAttributes() {
45
0
    }
46
47
    bool operator==(
48
            const LibrarySettingsAttributes& b) const
49
0
    {
50
0
        return (intraprocess_delivery == b.intraprocess_delivery);
51
0
    }
52
53
    IntraprocessDeliveryType intraprocess_delivery = INTRAPROCESS_FULL;
54
};
55
56
}  // namespace fastrtps
57
}  // namespace eprosima
58
59
#endif /* LIBRARYSETTINGS_ATTRIBUTES_H_ */