Coverage Report

Created: 2022-08-24 06:19

/src/Fast-DDS/include/fastdds/dds/builtin/common/RequestHeader.hpp
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 RequestHeader.hpp
17
 *
18
 */
19
20
#ifndef REQUESTHEADER_HPP
21
#define REQUESTHEADER_HPP
22
23
#include <fastrtps/rtps/common/SampleIdentity.h>
24
#include <fastdds/dds/builtin/common/Types.hpp>
25
26
namespace eprosima {
27
28
namespace fastcdr {
29
class Cdr;
30
} // fastcdr
31
32
namespace fastdds {
33
namespace dds {
34
namespace rpc {
35
36
struct RequestHeader
37
{
38
    eprosima::fastrtps::rtps::SampleIdentity requestId;
39
40
    InstanceName instanceName;
41
42
    RTPS_DllAPI static size_t getCdrSerializedSize(
43
            const RequestHeader& data,
44
            size_t current_alignment = 0);
45
46
    RTPS_DllAPI void serialize(
47
            eprosima::fastcdr::Cdr &cdr) const;
48
49
    RTPS_DllAPI void deserialize(
50
            eprosima::fastcdr::Cdr &cdr);
51
52
    RTPS_DllAPI static bool isKeyDefined()
53
0
    {
54
0
        return false;
55
0
    }
56
};
57
58
} // namespace rpc
59
} // namespace dds
60
} // namespace fastdds
61
} // namespace eprosima
62
63
#endif // REQUESTHEADER_HPP