22#ifndef FAST_DDS_GENERATED__STD_MSGS_MSG_HEADERCDRAUX_IPP
23#define FAST_DDS_GENERATED__STD_MSGS_MSG_HEADERCDRAUX_IPP
41 size_t& current_alignment)
45 static_cast<void>(data);
56 data.stamp(), current_alignment);
59 data.frame_id(), current_alignment);
64 return calculated_size;
99 bool ret_value =
true;
103 dcdr >> data.stamp();
107 dcdr >> data.frame_id();
129 static_cast<void>(scdr);
130 static_cast<void>(data);
133 scdr << data.frame_id();
This class offers an interface to calculate the encoded size of a type serialized using a support enc...
Cdr_DllAPI EncodingAlgorithmFlag get_encoding() const
Retrieves the current encoding algorithm used by the instance.
Cdr_DllAPI CdrVersion get_cdr_version() const
Retrieves the version of the encoding algorithm used by the instance.
Cdr_DllAPI size_t begin_calculate_type_serialized_size(EncodingAlgorithmFlag new_encoding, size_t ¤t_alignment)
Indicates a new constructed type will be calculated.
Cdr_DllAPI size_t end_calculate_type_serialized_size(EncodingAlgorithmFlag new_encoding, size_t ¤t_alignment)
Indicates the ending of a constructed type.
size_t calculate_member_serialized_size(const MemberId &id, const _T &data, size_t ¤t_alignment)
Generic template which calculates the encoded size of the constructed type's member of a unknown type...
This class stores the current state of a CDR serialization.
This class offers an interface to serialize/deserialize some basic types using CDR protocol inside an...
Cdr_DllAPI Cdr & begin_serialize_type(Cdr::state ¤t_state, EncodingAlgorithmFlag type_encoding)
Tells to the encoder a new type and its members starts to be encoded.
Cdr_DllAPI Cdr & deserialize_type(EncodingAlgorithmFlag type_encoding, std::function< bool(Cdr &, const MemberId &)> functor)
Tells to the encoder a new type and its members starts to be decoded.
Cdr_DllAPI CdrVersion get_cdr_version() const
Retrieves the CdrVersion used by the instance.
Cdr_DllAPI Cdr & end_serialize_type(Cdr::state ¤t_state)
Tells to the encoder the encoding of the type finishes.
void serialize(Cdr &, const _T &)
size_t calculate_serialized_size(CdrSizeCalculator &, const _T &, size_t &)
EncodingAlgorithmFlag
This enumeration represents the supported XCDR encoding algorithms.
@ PLAIN_CDR
Specifies that the content is PLAIN_CDR.
@ PLAIN_CDR2
Specifies that the content is PLAIN_CDR2.
void deserialize(Cdr &, _T &)
eProsima_user_DllExport void serialize_key(eprosima::fastcdr::Cdr &scdr, const std_msgs::msg::Header &data)
@ XCDRv2
XCDRv2 encoding defined by standard DDS X-Types 1.3.
This class represents the structure Time defined by the user in the IDL file.