Fast DDS  Version 3.0.1
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
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
26namespace eprosima {
27namespace fastdds {
28namespace rtps {
29
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
48inline std::ostream& operator <<(
49 std::ostream& output,
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 namespace.
Definition ProductVersion_t.hpp:31
uint8_t patch
Definition ProductVersion_t.hpp:34
uint8_t major
Definition ProductVersion_t.hpp:32
uint8_t tweak
Definition ProductVersion_t.hpp:35
uint8_t minor
Definition ProductVersion_t.hpp:33