Fast DDS  Version 3.0.1
Fast DDS
Loading...
Searching...
No Matches
VendorId_t.hpp
1// Copyright 2020 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__VENDORID_T_HPP
20#define FASTDDS_RTPS_COMMON__VENDORID_T_HPP
21
22#include <array>
23#include <cstdint>
24#include <iomanip>
25#include <iostream>
26
27namespace eprosima {
28namespace fastdds {
29namespace rtps {
30
32using VendorId_t = std::array<uint8_t, 2>;
33
34const VendorId_t c_VendorId_Unknown = {0x00, 0x00};
35const VendorId_t c_VendorId_eProsima = {0x01, 0x0F};
37const VendorId_t c_VendorId_opendds = {0x01, 0x03};
38
39} // namespace rtps
40} // namespace fastdds
41} // namespace eprosima
42
49inline std::ostream& operator <<(
50 std::ostream& output,
52{
53 output << "0x" << std::hex << std::setfill('0') << std::setw(2) << static_cast<int>(vendor_id[0]) << " 0x" <<
54 std::hex << std::setfill('0') << std::setw(2) << static_cast<int>(vendor_id[1]);
55 return output;
56}
57
58#endif // FASTDDS_RTPS_COMMON__VENDORID_T_HPP
const VendorId_t c_VendorId_opendds
Definition VendorId_t.hpp:37
eprosima::fastdds::rtps::VendorId_t VendorId_t
Structure VendorId_t, specifying the vendor Id of the implementation.
Definition Types.hpp:163
const VendorId_t c_VendorId_Unknown
Definition VendorId_t.hpp:34
const VendorId_t c_VendorId_rti_connext
Definition VendorId_t.hpp:36
const VendorId_t c_VendorId_eProsima
Definition VendorId_t.hpp:35
eProsima namespace.