30#include <fastcdr/Cdr.h>
31#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
38#define Time_max_cdr_typesize 0ULL;
39#define rosgraph_msg_Clock_max_cdr_typesize 0ULL;
40#define Time_max_key_cdr_typesize 0ULL;
41#define rosgraph_msg_Clock_max_key_cdr_typesize 0ULL;
121 eprosima::fastcdr::Cdr& scdr)
const
128 eprosima::fastcdr::Cdr& dcdr)
150 m_clock = std::move(_clock);
187 eprosima::fastcdr::Cdr& scdr)
const
#define rosgraph_msg_Clock_max_cdr_typesize
#define rosgraph_msg_Clock_max_key_cdr_typesize
return current_alignment initial_alignment
static eProsima_user_DllExport size_t getCdrSerializedSize(const builtin_interfaces::msg::Time &data, size_t current_alignment=0)
此函数根据缓冲区对齐方式返回数据的序列化大小。
This class represents the structure Clock defined by the user in the IDL file.
eProsima_user_DllExport Clock & operator=(const Clock &x)
Copy assignment.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.
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...
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.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport const builtin_interfaces::msg::Time & clock() const
This function returns a constant reference to member clock
eProsima_user_DllExport ~Clock()
Default destructor.
builtin_interfaces::msg::Time m_clock
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
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 Clock &x) const
Comparison operator.
eProsima_user_DllExport Clock()
Default constructor.
static eProsima_user_DllExport size_t getCdrSerializedSize(const rosgraph::msg::Clock &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 Clock &x) const
Comparison operator.
eProsima_user_DllExport void clock(const builtin_interfaces::msg::Time &_clock)
This function copies the value in member clock