30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define tf2_msgs_msg_TF2Error_max_cdr_typesize 264ULL; 38 #define tf2_msgs_msg_TF2Error_max_key_cdr_typesize 0ULL; 63 m_error_string = std::move(x.m_error_string);
79 m_error_string = std::move(x.m_error_string);
97 size_t current_alignment)
99 static_cast<void>(current_alignment);
105 size_t current_alignment)
107 size_t initial_alignment = current_alignment;
108 current_alignment += 1 + eprosima::fastcdr::Cdr::alignment(current_alignment, 1);
109 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.
error_string().size() + 1;
111 return current_alignment - initial_alignment;
115 eprosima::fastcdr::Cdr& scdr)
const 118 scdr << m_error_string.c_str();
122 eprosima::fastcdr::Cdr& dcdr)
125 dcdr >> m_error_string;
161 const std::string& _error_string)
163 m_error_string = _error_string;
171 std::string&& _error_string)
173 m_error_string = std::move(_error_string);
182 return m_error_string;
191 return m_error_string;
196 size_t current_alignment)
198 static_cast<void>(current_alignment);
208 eprosima::fastcdr::Cdr& scdr)
const eProsima_user_DllExport ~TF2Error()
Default destructor.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
#define tf2_msgs_msg_TF2Error_max_key_cdr_typesize
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
std::string m_error_string
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
eProsima_user_DllExport bool operator==(const TF2Error &x) const
Comparison operator.
static eProsima_user_DllExport size_t getCdrSerializedSize(const tf2_msgs::msg::TF2Error &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
This class represents the structure TF2Error defined by the user in the IDL file. ...
eProsima_user_DllExport bool operator!=(const TF2Error &x) const
Comparison operator.
eProsima_user_DllExport TF2Error()
Default constructor.
eProsima_user_DllExport void error_string(const std::string &_error_string)
This function copies the value in member error_string.
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 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 const std::string & error_string() const
This function returns a constant reference to member error_string.
eProsima_user_DllExport TF2Error & operator=(const TF2Error &x)
Copy assignment.
#define tf2_msgs_msg_TF2Error_max_cdr_typesize
eProsima_user_DllExport uint8_t error() const
This function returns the value of member error.