30 #include <fastcdr/Cdr.h> 32 #include <fastcdr/exceptions/BadParamException.h> 37 #define std_msgs_msg_String_max_cdr_typesize 260ULL; 38 #define std_msgs_msg_String_max_key_cdr_typesize 0ULL; 59 m_data = std::move(x.m_data);
73 m_data = std::move(x.m_data);
81 return (m_data == x.
m_data);
91 size_t current_alignment)
93 static_cast<void>(current_alignment);
99 size_t current_alignment)
101 size_t initial_alignment = current_alignment;
102 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4) + data.
data().size() + 1;
104 return current_alignment - initial_alignment;
108 eprosima::fastcdr::Cdr& scdr)
const 110 scdr << m_data.c_str();
114 eprosima::fastcdr::Cdr& dcdr)
124 const std::string& _data)
136 m_data = std::move(_data);
158 size_t current_alignment)
160 static_cast<void>(current_alignment);
170 eprosima::fastcdr::Cdr& scdr)
const
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 String()
Default constructor.
eProsima_user_DllExport ~String()
Default destructor.
eProsima_user_DllExport const std::string & data() const
This function returns a constant reference to member data.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type.
This class represents the structure String defined by the user in the IDL file.
#define std_msgs_msg_String_max_cdr_typesize
static eProsima_user_DllExport size_t getCdrSerializedSize(const std_msgs::msg::String &data, size_t current_alignment=0)
This function returns the serialized size of a data depending on the buffer alignment.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport bool operator==(const String &x) const
Comparison operator.
eProsima_user_DllExport String & operator=(const String &x)
Copy assignment.
eProsima_user_DllExport void data(const std::string &_data)
This function copies the value in member data.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport bool operator!=(const String &x) const
Comparison operator.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
#define std_msgs_msg_String_max_key_cdr_typesize
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...