| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
common.hpp
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
19
20#ifndef FASTDDS_DDS_XTYPES__COMMON_HPP
21#define FASTDDS_DDS_XTYPES__COMMON_HPP
22
23#include <cstdint>
24
25 namespace eprosima {
26 namespace fastdds {
27 namespace dds {
28 namespace xtypes {
29
30 enum class ExtensibilityKind : uint32_t
31{
32 FINAL,
33 APPENDABLE,
34 MUTABLE
35};
36
37 enum class TryConstructFailAction : uint32_t
38{
39 DISCARD,
40 USE_DEFAULT,
41 TRIM
42};
43
47 enum class PlacementKind : uint32_t
48{
49 BEGIN_FILE,
50 BEFORE_DECLARATION,
51 BEGIN_DECLARATION,
52 END_DECLARATION,
53 AFTER_DECLARATION,
54 END_FILE
55};
56
60 constexpr const char* begin_declaration_file_str = "begin-declaration-file";
61 constexpr const char* before_declaration_str = "before-declaration";
62 constexpr const char* begin_declaration_str = "begin-declaration";
63 constexpr const char* end_declaration_str = "end-declaration";
64 constexpr const char* after_declaration_str = "after-declaration";
65 constexpr const char* end_declaration_file_str = "end-declaration-file";
66
67// Primitive type names
68 constexpr const char* boolean_type_name = "_bool";
69 constexpr const char* byte_type_name = "_byte";
70 constexpr const char* int16_type_name = "_int16_t";
71 constexpr const char* int32_type_name = "_int32_t";
72 constexpr const char* int64_type_name = "_int64_t";
73 constexpr const char* uint16_type_name = "_uint16_t";
74 constexpr const char* uint32_type_name = "_uint32_t";
75 constexpr const char* uint64_type_name = "_uint64_t";
76 constexpr const char* float32_type_name = "_float";
77 constexpr const char* float64_type_name = "_double";
78 constexpr const char* float128_type_name = "_longdouble";
79 constexpr const char* int8_type_name = "_int8_t";
80 constexpr const char* uint8_type_name = "_uint8_t";
81 constexpr const char* char8_type_name = "_char";
82 constexpr const char* char16_type_name = "_wchar_t";
83
84// Builtin annotation names
85 constexpr const char* id_annotation_name = "id";
86 constexpr const char* autoid_annotation_name = "autoid";
87 constexpr const char* optional_annotation_name = "optional";
88 constexpr const char* position_annotation_name = "position";
89 constexpr const char* value_annotation_name = "value"; // Pending implementation
90 constexpr const char* extensibility_annotation_name = "extensibility";
91 constexpr const char* final_annotation_name = "final";
92 constexpr const char* appendable_annotation_name = "appendable";
93 constexpr const char* mutable_annotation_name = "mutable";
94 constexpr const char* key_annotation_name = "key";
95 constexpr const char* must_understand_annotation_name = "must_understand";
96 constexpr const char* default_literal_annotation_name = "default_literal";
97 constexpr const char* default_annotation_name = "default"; // Pending implementation
98 constexpr const char* range_annotation_name = "range"; // Pending implementation
99 constexpr const char* min_annotation_name = "min"; // Pending implementation
100 constexpr const char* max_annotation_name = "max"; // Pending implementation
101 constexpr const char* unit_annotation_name = "unit";
102 constexpr const char* bit_bound_annotation_name = "bit_bound";
103 constexpr const char* external_annotation_name = "external";
104 constexpr const char* nested_annotation_name = "nested";
105 constexpr const char* verbatim_annotation_name = "verbatim";
106 constexpr const char* service_annotation_name = "service";
107 constexpr const char* oneway_annotation_name = "oneway";
108 constexpr const char* ami_annotation_name = "ami";
109 constexpr const char* hashid_annotation_name = "hashid";
110 constexpr const char* default_nested_annotation_name = "default_nested";
111 constexpr const char* ignore_literal_names_annotation_name = "ignore_literal_names";
112 constexpr const char* try_construct_annotation_name = "try_construct";
113 constexpr const char* non_serialized_annotation_name = "non_serialized";
114 constexpr const char* data_representation_annotation_name = "data_representation";
115 constexpr const char* topic_annotation_name = "topic";
116
117} // xtypes
118} // dds
119} // fastdds
120} // eprosima
121
122#endif // FASTDDS_DDS_XTYPES__COMMON_HPP
eprosima::fastdds::dds::xtypes
Definition QosPolicies.hpp:2491
eprosima::fastdds::dds::xtypes::int32_type_name
constexpr const char * int32_type_name
Definition common.hpp:71
eprosima::fastdds::dds::xtypes::verbatim_annotation_name
constexpr const char * verbatim_annotation_name
Definition common.hpp:105
eprosima::fastdds::dds::xtypes::topic_annotation_name
constexpr const char * topic_annotation_name
Definition common.hpp:115
eprosima::fastdds::dds::xtypes::oneway_annotation_name
constexpr const char * oneway_annotation_name
Definition common.hpp:107
eprosima::fastdds::dds::xtypes::data_representation_annotation_name
constexpr const char * data_representation_annotation_name
Definition common.hpp:114
eprosima::fastdds::dds::xtypes::extensibility_annotation_name
constexpr const char * extensibility_annotation_name
Definition common.hpp:90
eprosima::fastdds::dds::xtypes::bit_bound_annotation_name
constexpr const char * bit_bound_annotation_name
Definition common.hpp:102
eprosima::fastdds::dds::xtypes::after_declaration_str
constexpr const char * after_declaration_str
Definition common.hpp:64
eprosima::fastdds::dds::xtypes::uint32_type_name
constexpr const char * uint32_type_name
Definition common.hpp:74
eprosima::fastdds::dds::xtypes::ignore_literal_names_annotation_name
constexpr const char * ignore_literal_names_annotation_name
Definition common.hpp:111
eprosima::fastdds::dds::xtypes::uint16_type_name
constexpr const char * uint16_type_name
Definition common.hpp:73
eprosima::fastdds::dds::xtypes::appendable_annotation_name
constexpr const char * appendable_annotation_name
Definition common.hpp:92
eprosima::fastdds::dds::xtypes::ami_annotation_name
constexpr const char * ami_annotation_name
Definition common.hpp:108
eprosima::fastdds::dds::xtypes::int8_type_name
constexpr const char * int8_type_name
Definition common.hpp:79
eprosima::fastdds::dds::xtypes::default_annotation_name
constexpr const char * default_annotation_name
Definition common.hpp:97
eprosima::fastdds::dds::xtypes::service_annotation_name
constexpr const char * service_annotation_name
Definition common.hpp:106
eprosima::fastdds::dds::xtypes::unit_annotation_name
constexpr const char * unit_annotation_name
Definition common.hpp:101
eprosima::fastdds::dds::xtypes::external_annotation_name
constexpr const char * external_annotation_name
Definition common.hpp:103
eprosima::fastdds::dds::xtypes::optional_annotation_name
constexpr const char * optional_annotation_name
Definition common.hpp:87
eprosima::fastdds::dds::xtypes::try_construct_annotation_name
constexpr const char * try_construct_annotation_name
Definition common.hpp:112
eprosima::fastdds::dds::xtypes::char16_type_name
constexpr const char * char16_type_name
Definition common.hpp:82
eprosima::fastdds::dds::xtypes::final_annotation_name
constexpr const char * final_annotation_name
Definition common.hpp:91
eprosima::fastdds::dds::xtypes::float64_type_name
constexpr const char * float64_type_name
Definition common.hpp:77
eprosima::fastdds::dds::xtypes::boolean_type_name
constexpr const char * boolean_type_name
Definition common.hpp:68
eprosima::fastdds::dds::xtypes::int64_type_name
constexpr const char * int64_type_name
Definition common.hpp:72
eprosima::fastdds::dds::xtypes::end_declaration_str
constexpr const char * end_declaration_str
Definition common.hpp:63
eprosima::fastdds::dds::xtypes::default_nested_annotation_name
constexpr const char * default_nested_annotation_name
Definition common.hpp:110
eprosima::fastdds::dds::xtypes::end_declaration_file_str
constexpr const char * end_declaration_file_str
Definition common.hpp:65
eprosima::fastdds::dds::xtypes::nested_annotation_name
constexpr const char * nested_annotation_name
Definition common.hpp:104
eprosima::fastdds::dds::xtypes::value_annotation_name
constexpr const char * value_annotation_name
Definition common.hpp:89
eprosima::fastdds::dds::xtypes::char8_type_name
constexpr const char * char8_type_name
Definition common.hpp:81
eprosima::fastdds::dds::xtypes::begin_declaration_file_str
constexpr const char * begin_declaration_file_str
Valid placement values.
Definition common.hpp:60
eprosima::fastdds::dds::xtypes::byte_type_name
constexpr const char * byte_type_name
Definition common.hpp:69
eprosima::fastdds::dds::xtypes::min_annotation_name
constexpr const char * min_annotation_name
Definition common.hpp:99
eprosima::fastdds::dds::xtypes::position_annotation_name
constexpr const char * position_annotation_name
Definition common.hpp:88
eprosima::fastdds::dds::xtypes::max_annotation_name
constexpr const char * max_annotation_name
Definition common.hpp:100
eprosima::fastdds::dds::xtypes::before_declaration_str
constexpr const char * before_declaration_str
Definition common.hpp:61
eprosima::fastdds::dds::xtypes::range_annotation_name
constexpr const char * range_annotation_name
Definition common.hpp:98
eprosima::fastdds::dds::xtypes::hashid_annotation_name
constexpr const char * hashid_annotation_name
Definition common.hpp:109
eprosima::fastdds::dds::xtypes::must_understand_annotation_name
constexpr const char * must_understand_annotation_name
Definition common.hpp:95
eprosima::fastdds::dds::xtypes::ExtensibilityKind
ExtensibilityKind
Definition common.hpp:31
eprosima::fastdds::dds::xtypes::ExtensibilityKind::APPENDABLE
@ APPENDABLE
Definition common.hpp:33
eprosima::fastdds::dds::xtypes::ExtensibilityKind::FINAL
@ FINAL
Definition common.hpp:32
eprosima::fastdds::dds::xtypes::ExtensibilityKind::MUTABLE
@ MUTABLE
Definition common.hpp:34
eprosima::fastdds::dds::xtypes::float128_type_name
constexpr const char * float128_type_name
Definition common.hpp:78
eprosima::fastdds::dds::xtypes::TryConstructFailAction
TryConstructFailAction
Definition common.hpp:38
eprosima::fastdds::dds::xtypes::TryConstructFailAction::TRIM
@ TRIM
Definition common.hpp:41
eprosima::fastdds::dds::xtypes::TryConstructFailAction::USE_DEFAULT
@ USE_DEFAULT
Definition common.hpp:40
eprosima::fastdds::dds::xtypes::TryConstructFailAction::DISCARD
@ DISCARD
Definition common.hpp:39
eprosima::fastdds::dds::xtypes::int16_type_name
constexpr const char * int16_type_name
Definition common.hpp:70
eprosima::fastdds::dds::xtypes::uint64_type_name
constexpr const char * uint64_type_name
Definition common.hpp:75
eprosima::fastdds::dds::xtypes::mutable_annotation_name
constexpr const char * mutable_annotation_name
Definition common.hpp:93
eprosima::fastdds::dds::xtypes::id_annotation_name
constexpr const char * id_annotation_name
Definition common.hpp:85
eprosima::fastdds::dds::xtypes::key_annotation_name
constexpr const char * key_annotation_name
Definition common.hpp:94
eprosima::fastdds::dds::xtypes::begin_declaration_str
constexpr const char * begin_declaration_str
Definition common.hpp:62
eprosima::fastdds::dds::xtypes::non_serialized_annotation_name
constexpr const char * non_serialized_annotation_name
Definition common.hpp:113
eprosima::fastdds::dds::xtypes::uint8_type_name
constexpr const char * uint8_type_name
Definition common.hpp:80
eprosima::fastdds::dds::xtypes::float32_type_name
constexpr const char * float32_type_name
Definition common.hpp:76
eprosima::fastdds::dds::xtypes::default_literal_annotation_name
constexpr const char * default_literal_annotation_name
Definition common.hpp:96
eprosima::fastdds::dds::xtypes::PlacementKind
PlacementKind
PlacementKind values (verbatim annotation).
Definition common.hpp:48
eprosima::fastdds::dds::xtypes::PlacementKind::AFTER_DECLARATION
@ AFTER_DECLARATION
Definition common.hpp:53
eprosima::fastdds::dds::xtypes::PlacementKind::END_FILE
@ END_FILE
Definition common.hpp:54
eprosima::fastdds::dds::xtypes::PlacementKind::BEGIN_DECLARATION
@ BEGIN_DECLARATION
Definition common.hpp:51
eprosima::fastdds::dds::xtypes::PlacementKind::BEFORE_DECLARATION
@ BEFORE_DECLARATION
Definition common.hpp:50
eprosima::fastdds::dds::xtypes::PlacementKind::END_DECLARATION
@ END_DECLARATION
Definition common.hpp:52
eprosima::fastdds::dds::xtypes::PlacementKind::BEGIN_FILE
@ BEGIN_FILE
Definition common.hpp:49
eprosima::fastdds::dds::xtypes::autoid_annotation_name
constexpr const char * autoid_annotation_name
Definition common.hpp:86
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds
eprosima
eProsima namespace.