30#include <fastcdr/Cdr.h>
32#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
37#define Time_max_cdr_typesize 0ULL;
38#define rosgraph_msg_Clock_max_cdr_typesize 0ULL;
39#define Time_max_key_cdr_typesize 0ULL;
40#define rosgraph_msg_Clock_max_key_cdr_typesize 0ULL;
89 size_t current_alignment)
91 static_cast<void>(current_alignment);
97 size_t current_alignment)
100 size_t initial_alignment = current_alignment;
105 return current_alignment - initial_alignment;
109 eprosima::fastcdr::Cdr& scdr)
const
115 eprosima::fastcdr::Cdr& dcdr)
137 m_clock = std::move(_clock);
159 size_t current_alignment)
161 static_cast<void>(current_alignment);
171 eprosima::fastcdr::Cdr& scdr)
const
#define rosgraph_msg_Clock_max_cdr_typesize
#define rosgraph_msg_Clock_max_key_cdr_typesize
This class represents the structure Time defined by the user in the IDL file.
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 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