30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define builtin_interfaces_msg_Time_max_cdr_typesize 8ULL; 38 #define std_msgs_msg_Header_max_cdr_typesize 268ULL; 39 #define builtin_interfaces_msg_Time_max_key_cdr_typesize 0ULL; 40 #define std_msgs_msg_Header_max_key_cdr_typesize 0ULL; 61 m_stamp = std::move(x.m_stamp);
62 m_frame_id = std::move(x.m_frame_id);
77 m_stamp = std::move(x.m_stamp);
78 m_frame_id = std::move(x.m_frame_id);
96 size_t current_alignment)
98 static_cast<void>(current_alignment);
104 size_t current_alignment)
106 size_t initial_alignment = current_alignment;
108 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.
frame_id().size() + 1;
110 return current_alignment - initial_alignment;
114 eprosima::fastcdr::Cdr& scdr)
const 117 scdr << m_frame_id.c_str();
121 eprosima::fastcdr::Cdr& dcdr)
144 m_stamp = std::move(_stamp);
169 const std::string& _frame_id)
171 m_frame_id = _frame_id;
179 std::string&& _frame_id)
181 m_frame_id = std::move(_frame_id);
204 size_t current_alignment)
206 static_cast<void>(current_alignment);
216 eprosima::fastcdr::Cdr& scdr)
const
static eProsima_user_DllExport size_t getCdrSerializedSize(const builtin_interfaces::msg::Time &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
This class represents the structure Time defined by the user in the IDL file.