| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
ProductVersion_t.hpp
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
18
19#ifndef FASTDDS_RTPS_COMMON__PRODUCTVERSION_T_HPP
20#define FASTDDS_RTPS_COMMON__PRODUCTVERSION_T_HPP
21
22#include <cstdint>
23#include <iomanip>
24#include <iostream>
25
26 namespace eprosima {
27 namespace fastdds {
28 namespace rtps {
29
30 struct ProductVersion_t
31{
32 uint8_t major {0};
33 uint8_t minor {0};
34 uint8_t patch {0};
35 uint8_t tweak {0};
36};
37
38} // namespace rtps
39} // namespace fastdds
40} // namespace eprosima
41
48 inline std::ostream& operator <<(
49 std::ostream& output,
50 eprosima::fastdds::rtps::ProductVersion_t product_version)
51{
52 output << static_cast<uint32_t>(product_version.major)
53 << "." << static_cast<uint32_t>(product_version.minor)
54 << "." << static_cast<uint32_t>(product_version.patch)
55 << "." << static_cast<uint32_t>(product_version.tweak);
56 return output;
57}
58
59#endif /* FASTDDS_RTPS_COMMON__PRODUCTVERSION_T_HPP */
eprosima::fastdds::rtps
Contains the RTPS protocol implementation.
eprosima::fastdds
eprosima
eProsima namespace.
eprosima::fastdds::rtps::ProductVersion_t
Definition ProductVersion_t.hpp:31
eprosima::fastdds::rtps::ProductVersion_t::patch
uint8_t patch
Definition ProductVersion_t.hpp:34
eprosima::fastdds::rtps::ProductVersion_t::major
uint8_t major
Definition ProductVersion_t.hpp:32
eprosima::fastdds::rtps::ProductVersion_t::tweak
uint8_t tweak
Definition ProductVersion_t.hpp:35
eprosima::fastdds::rtps::ProductVersion_t::minor
uint8_t minor
Definition ProductVersion_t.hpp:33