30#include <fastcdr/Cdr.h>
32#include <fastcdr/exceptions/BadParamException.h>
33using namespace eprosima::fastcdr::exception;
37#define builtin_interfaces_msg_Time_max_cdr_typesize 8ULL;
38#define builtin_interfaces_msg_Time_max_key_cdr_typesize 0ULL;
63 m_nanosec = x.m_nanosec;
79 m_nanosec = x.m_nanosec;
97 size_t current_alignment)
99 static_cast<void>(current_alignment);
105 size_t current_alignment)
108 size_t initial_alignment = current_alignment;
109 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
110 current_alignment += 4 + eprosima::fastcdr::Cdr::alignment(current_alignment, 4);
112 return current_alignment - initial_alignment;
116 eprosima::fastcdr::Cdr& scdr)
const
123 eprosima::fastcdr::Cdr& dcdr)
164 m_nanosec = _nanosec;
186 size_t current_alignment)
188 static_cast<void>(current_alignment);
198 eprosima::fastcdr::Cdr& scdr)
const
#define builtin_interfaces_msg_Time_max_cdr_typesize
#define builtin_interfaces_msg_Time_max_key_cdr_typesize
This class represents the structure Time defined by the user in the IDL file.
static eProsima_user_DllExport bool isKeyDefined()
This function tells you if the Key has been defined for this type
eProsima_user_DllExport Time()
Default constructor.
eProsima_user_DllExport bool operator!=(const Time &x) const
Comparison operator.
eProsima_user_DllExport void serialize(eprosima::fastcdr::Cdr &cdr) const
This function serializes an object using CDR serialization.
eProsima_user_DllExport int32_t sec() const
This function returns the value of member sec
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 uint32_t nanosec() const
This function returns the value of member nanosec
eProsima_user_DllExport bool operator==(const Time &x) const
Comparison operator.
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 ~Time()
Default destructor.
eProsima_user_DllExport Time & operator=(const Time &x)
Copy assignment.
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.
eProsima_user_DllExport void deserialize(eprosima::fastcdr::Cdr &cdr)
This function deserializes an object using CDR serialization.
eProsima_user_DllExport void serializeKey(eprosima::fastcdr::Cdr &cdr) const
This function serializes the key members of an object using CDR serialization.