CARLA
 
载入中...
搜索中...
未找到
PointField.h
浏览该文件的文档.
1// 版权所有 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// 根据 Apache 许可证,版本 2.0(“许可证”)授权;
4// 除非遵守许可证,否则您不得使用此文件。
5// 您可以在以下网址获得许可证:
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// 除非适用法律要求或书面同意,
10// 否则根据许可证分发的软件是按“原样”提供的,
11// 不附有任何明示或暗示的担保或条件。
12// 有关许可证下的特定权限和限制,请参阅许可证。
13
14/*!
15 * @file PointField.h
16 * 此头文件包含在 IDL 文件中描述的类型的声明。
17 *
18 * 此文件由工具 gen 生成。
19 */
20
21#ifndef _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_POINTFIELD_H_
22#define _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_POINTFIELD_H_
23
24#include <fastrtps/utils/fixed_size_string.hpp>
25
26#include <stdint.h>
27#include <array>
28#include <string>
29#include <vector>
30#include <map>
31#include <bitset>
32
33#if defined(_WIN32)
34#if defined(EPROSIMA_USER_DLL_EXPORT)
35#define eProsima_user_DllExport __declspec( dllexport )
36#else
37#define eProsima_user_DllExport
38#endif // EPROSIMA_USER_DLL_EXPORT
39#else
40#define eProsima_user_DllExport
41#endif // _WIN32
42
43#if defined(_WIN32)
44#if defined(EPROSIMA_USER_DLL_EXPORT)
45#if defined(PointField_SOURCE)
46#define PointField_DllAPI __declspec( dllexport )
47#else
48#define PointField_DllAPI __declspec( dllimport )
49#endif // PointField_SOURCE
50#else
51#define PointField_DllAPI
52#endif // EPROSIMA_USER_DLL_EXPORT
53#else
54#define PointField_DllAPI
55#endif // _WIN32
56
57namespace eprosima {
58namespace fastcdr {
59class Cdr;
60} // namespace fastcdr
61} // namespace eprosima
62
63namespace sensor_msgs {
64 namespace msg {
65 const uint8_t PointField__INT8 = 1;
66 const uint8_t PointField__UINT8 = 2;
67 const uint8_t PointField__INT16 = 3;
68 const uint8_t PointField__UINT16 = 4;
69 const uint8_t PointField__INT32 = 5;
70 const uint8_t PointField__UINT32 = 6;
71 const uint8_t PointField__FLOAT32 = 7;
72 const uint8_t PointField__FLOAT64 = 8;
73
74 /*!
75 * @brief 此类表示用户在 IDL 文件中定义的结构 PointField。
76 * @ingroup POINTFIELD
77 */
79 {
80 public:
81
82 /*!
83 * @brief 默认构造函数。
84 */
86
87 /*!
88 * @brief 默认析构函数。
89 */
91
92 /*!
93 * @brief 复制构造函数。
94 * @param x 要复制的 sensor_msgs::msg::PointField 对象的引用。
95 */
97 const PointField& x);
98
99 /*!
100 * @brief 移动构造函数。
101 * @param x 要复制的 sensor_msgs::msg::PointField 对象的引用。
102 */
104 PointField&& x) noexcept;
105
106 /*!
107 * @brief 复制赋值运算符。
108 * @param x 要复制的 sensor_msgs::msg::PointField 对象的引用。
109 */
111 const PointField& x);
112
113 /*!
114 * @brief 移动赋值运算符。
115 * @param x 要复制的 sensor_msgs::msg::PointField 对象的引用。
116 */
118 PointField&& x) noexcept;
119
120 /*!
121 * @brief 比较运算符。
122 * @param x 要比较的 sensor_msgs::msg::PointField 对象。
123 */
125 const PointField& x) const;
126
127 /*!
128 * @brief 比较运算符。
129 * @param x 要比较的 sensor_msgs::msg::PointField 对象。
130 */
132 const PointField& x) const;
133
134 /*!
135 * @brief 此函数复制成员 name 的值
136 * @param _name 要复制到成员 name 的新值
137 */
139 const std::string& _name);
140
141 /*!
142 * @brief 此函数移动成员 name 的值
143 * @param _name 要移动到成员 name 的新值
144 */
146 std::string&& _name);
147
148 /*!
149 * @brief 此函数返回成员 name 的常量引用
150 * @return 成员 name 的常量引用
151 */
152 eProsima_user_DllExport const std::string& name() const;
153
154 /*!
155 * @brief 此函数返回成员 name 的引用
156 * @return 成员 name 的引用
157 */
158 eProsima_user_DllExport std::string& name();
159
160 /*!
161 * @brief 此函数设置成员 offset 的值
162 * @param _offset 成员 offset 的新值
163 */
165 uint32_t _offset);
166
167 /*!
168 * @brief 此函数返回成员 offset 的值
169 * @return 成员 offset 的值
170 */
171 eProsima_user_DllExport uint32_t offset() const;
172
173 /*!
174 * @brief 此函数返回成员 offset 的引用
175 * @return 成员 offset 的引用
176 */
177 eProsima_user_DllExport uint32_t& offset();
178
179 /*!
180 * @brief 此函数设置成员 datatype 的值
181 * @param _datatype 成员 datatype 的新值
182 */
184 uint8_t _datatype);
185
186 /*!
187 * @brief 此函数返回成员 datatype 的值
188 * @return 成员 datatype 的值
189 */
190 eProsima_user_DllExport uint8_t datatype() const;
191
192 /*!
193 * @brief 此函数返回成员 datatype 的引用
194 * @return 成员 datatype 的引用
195 */
197
198 /*!
199 * @brief 此函数设置成员 count 的值
200 * @param _count 成员 count 的新值
201 */
203 uint32_t _count);
204
205 /*!
206 * @brief 此函数返回成员 count 的值
207 * @return 成员 count 的值
208 */
209 eProsima_user_DllExport uint32_t count() const;
210
211 /*!
212 * @brief 此函数返回成员 count 的引用
213 * @return 成员 count 的引用
214 */
215 eProsima_user_DllExport uint32_t& count();
216
217 /*!
218 * @brief 此函数返回对象的最大序列化大小
219 * 取决于缓冲区对齐。
220 * @param current_alignment 缓冲区对齐。
221 * @return 最大序列化大小。
222 */
224 size_t current_alignment = 0);
225
226 /*!
227 * @brief 此函数返回数据的序列化大小
228 * 取决于缓冲区对齐。
229 * @param data 要计算其序列化大小的数据。
230 * @param current_alignment 缓冲区对齐。
231 * @return 序列化大小。
232 */
234 const sensor_msgs::msg::PointField& data,
235 size_t current_alignment = 0);
236
237 /*!
238 * @brief 此函数使用 CDR 序列化序列化对象。
239 * @param cdr CDR 序列化对象。
240 */
242 eprosima::fastcdr::Cdr& cdr) const;
243
244 /*!
245 * @brief 此函数使用 CDR 序列化反序列化对象。
246 * @param cdr CDR 序列化对象。
247 */
249 eprosima::fastcdr::Cdr& cdr);
250
251 /*!
252 * @brief 此函数返回对象键的最大序列化大小
253 * 取决于缓冲区对齐。
254 * @param current_alignment 缓冲区对齐。
255 * @return 最大序列化大小。
256 */
258 size_t current_alignment = 0);
259
260 /*!
261 * @brief 此函数告诉您此类型的键是否已定义
262 */
264
265 /*!
266 * @brief 此函数使用 CDR 序列化序列化对象的键成员。
267 * @param cdr CDR 序列化对象。
268 */
270 eprosima::fastcdr::Cdr& cdr) const;
271
272 private:
273 std::string m_name; // 名称
274 uint32_t m_offset; // 偏移量
275 uint8_t m_datatype; // 数据类型
276 uint32_t m_count; // 计数
277
278 };
279 } // namespace msg
280} // namespace sensor_msgs
281
282#endif // _FAST_DDS_GENERATED_SENSOR_MSGS_MSG_POINTFIELD_H_
#define eProsima_user_DllExport
Definition CameraInfo.h:44
此类表示用户在 IDL 文件中定义的结构 PointField。 <>
Definition PointField.h:79
eProsima_user_DllExport uint32_t offset() const
此函数返回成员 offset 的值
static eProsima_user_DllExport bool isKeyDefined()
此函数告诉您此类型的键是否已定义
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
此函数使用 CDR 序列化反序列化对象。
eProsima_user_DllExport PointField & operator=(const PointField &x)
复制赋值运算符。
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize(size_t current_alignment=0)
此函数返回对象键的最大序列化大小 取决于缓冲区对齐。
eProsima_user_DllExport bool operator!=(const PointField &x) const
比较运算符。
eProsima_user_DllExport uint32_t count() const
此函数返回成员 count 的值
eProsima_user_DllExport PointField()
默认构造函数。
static eProsima_user_DllExport size_t getMaxCdrSerializedSize(size_t current_alignment=0)
此函数返回对象的最大序列化大小 取决于缓冲区对齐。
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::PointField &data, size_t current_alignment=0)
此函数返回数据的序列化大小 取决于缓冲区对齐。
eProsima_user_DllExport bool operator==(const PointField &x) const
比较运算符。
eProsima_user_DllExport const std::string & name() const
此函数返回成员 name 的常量引用
eProsima_user_DllExport uint8_t datatype() const
此函数返回成员 datatype 的值
eProsima_user_DllExport ~PointField()
默认析构函数。
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
此函数使用 CDR 序列化序列化对象。
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
此函数使用 CDR 序列化序列化对象的键成员。
const uint8_t PointField__FLOAT32
Definition PointField.h:71
const uint8_t PointField__UINT16
Definition PointField.h:68
const uint8_t PointField__INT32
Definition PointField.h:69
const uint8_t PointField__INT16
Definition PointField.h:67
const uint8_t PointField__INT8
Definition PointField.h:65
const uint8_t PointField__UINT32
Definition PointField.h:70
const uint8_t PointField__UINT8
Definition PointField.h:66
const uint8_t PointField__FLOAT64
Definition PointField.h:72