20#ifndef _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_POINT_PUBSUBTYPES_H_
21#define _FAST_DDS_GENERATED_GEOMETRY_MSGS_MSG_POINT_PUBSUBTYPES_H_
23#include <fastdds/dds/topic/TopicDataType.hpp>
24#include <fastrtps/utils/md5.h>
29#if !defined(GEN_API_VER) || (GEN_API_VER != 1)
31 生成的 Point 与当前安装的 Fast DDS 不兼容。请使用 fastddsgen 重新生成。
42 template<
typename Tag,
typename Tag::type M>
45 friend constexpr typename Tag::type
get(
64 template <
typename T,
typename Tag>
66 return ((
::size_t) &
reinterpret_cast<char const volatile&
>((((T*)0)->*get(Tag()))));
88 eprosima::fastrtps::rtps::SerializedPayload_t* payload)
override;
92 eprosima::fastrtps::rtps::SerializedPayload_t* payload,
102 eprosima::fastrtps::rtps::InstanceHandle_t* ihandle,
103 bool force_md5 =
false)
override;
110 void* data)
override;
112 #ifdef TOPIC_DATA_TYPE_API_HAS_IS_BOUNDED
121 #ifdef TOPIC_DATA_TYPE_API_HAS_IS_PLAIN
125 return is_plain_impl();
130 #ifdef TOPIC_DATA_TYPE_API_HAS_CONSTRUCT_SAMPLE
133 void* memory)
const override
135 new (memory) Point();
149 return 24ULL == (detail::Point_offset_of<Point, detail::Point_f>() +
sizeof(double));
#define eProsima_user_DllExport
此类表示用户在 IDL 文件中定义的 Point 类型的 TopicDataType。 <>
static constexpr bool is_plain_impl()
unsigned char * m_keyBuffer
This class represents the structure Point defined by the user in the IDL file.
size_t constexpr Point_offset_of()
friend constexpr type get(Point_f)
friend constexpr Tag::type get(Tag)