pjmsg_mcap_wrapper
Loading...
Searching...
No Matches
CdrEncoding.hpp
Go to the documentation of this file.
1// Copyright 2023 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#ifndef _FASTCDR_CDRENCODING_HPP_
16#define _FASTCDR_CDRENCODING_HPP_
17
18#include <cstdint>
19
20namespace eprosima {
21namespace fastcdr {
22
23//! @brief This enumeration represents the kinds of CDR serialization supported by eprosima::fastcdr::CDR.
24typedef enum
25{
26 //! @brief Common CORBA CDR serialization.
28 //! @brief DDS CDR serialization.
30 //! @brief XCDRv1 encoding defined by standard DDS X-Types 1.3
31 XCDRv1 = 2,
32 //! @brief XCDRv2 encoding defined by standard DDS X-Types 1.3
33 XCDRv2 = 3
35
36//! @brief This enumeration represents the supported XCDR encoding algorithms.
37typedef enum : uint8_t
38{
39 //! @brief Specifies that the content is PLAIN_CDR.
40 PLAIN_CDR = 0x0,
41 //! @brief Specifies that the content is PL_CDR,
42 PL_CDR = 0x2,
43 //! @brief Specifies that the content is PLAIN_CDR2.
45 //! @brief Specifies that the content is DELIMIT_CDR2.
47 //! @brief Specifies that the content is PL_CDR2.
48 PL_CDR2 = 0xa
50
51} // namespace fastcdr
52} // namespace eprosima
53
54#endif // _FASTCDR_CDRENCODING_HPP_
EncodingAlgorithmFlag
This enumeration represents the supported XCDR encoding algorithms.
@ PLAIN_CDR
Specifies that the content is PLAIN_CDR.
@ PL_CDR2
Specifies that the content is PL_CDR2.
@ PLAIN_CDR2
Specifies that the content is PLAIN_CDR2.
@ DELIMIT_CDR2
Specifies that the content is DELIMIT_CDR2.
@ PL_CDR
Specifies that the content is PL_CDR,.
CdrVersion
This enumeration represents the kinds of CDR serialization supported by eprosima::fastcdr::CDR.
@ DDS_CDR
DDS CDR serialization.
@ CORBA_CDR
Common CORBA CDR serialization.
@ XCDRv1
XCDRv1 encoding defined by standard DDS X-Types 1.3.
@ XCDRv2
XCDRv2 encoding defined by standard DDS X-Types 1.3.
Definition Cdr.h:49