30#include <fastcdr/Cdr.h>
32#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
37#define sensor_msgs_msg_PointField_max_cdr_typesize 272ULL;
38#define sensor_msgs_msg_PointField_max_key_cdr_typesize 0ULL;
68 m_name = std::move(x.m_name);
69 m_offset = x.m_offset;
70 m_datatype = x.m_datatype;
88 m_name = std::move(x.m_name);
89 m_offset = x.m_offset;
90 m_datatype = x.m_datatype;
105 return !(*
this == x);
109 size_t current_alignment)
111 static_cast<void>(current_alignment);
117 size_t current_alignment)
119 size_t initial_alignment = current_alignment;
120 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.
name().size() + 1;
121 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
122 current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
123 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
125 return current_alignment - initial_alignment;
129 eprosima::fastcdr::Cdr& scdr)
const
131 scdr << m_name.c_str();
138 eprosima::fastcdr::Cdr& dcdr)
151 const std::string& _name)
163 m_name = std::move(_name);
219 m_datatype = _datatype;
269 size_t current_alignment)
271 static_cast<void>(current_alignment);
281 eprosima::fastcdr::Cdr& scdr)
const
#define sensor_msgs_msg_PointField_max_cdr_typesize
#define sensor_msgs_msg_PointField_max_key_cdr_typesize
This class represents the structure PointField defined by the user in the IDL file.
eProsima_user_DllExport uint32_t offset() const
This function returns the value of member offset
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport PointField & operator=(const PointField &x)
Copy assignment.
static eProsima_user_DllExport size_t getKeyMaxCdrSerializedSize(size_t current_alignment=0)
This function returns the maximum serialized size of the Key of an object depending on the buffer ali...
eProsima_user_DllExport bool operator!=(const PointField &x) const
Comparison operator.
eProsima_user_DllExport uint32_t count() const
This function returns the value of member count
eProsima_user_DllExport PointField()
Default constructor.
static eProsima_user_DllExport size_t getMaxCdrSerializedSize(size_t current_alignment=0)
This function returns the maximum serialized size of an object depending on the buffer alignment.
static eProsima_user_DllExport size_t getCdrSerializedSize(const sensor_msgs::msg::PointField &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport bool operator==(const PointField &x) const
Comparison operator.
eProsima_user_DllExport void name(const std::string &_name)
This function copies the value in member name
eProsima_user_DllExport const std::string & name() const
This function returns a constant reference to member name
eProsima_user_DllExport uint8_t datatype() const
This function returns the value of member datatype
eProsima_user_DllExport ~PointField()
Default destructor.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.