This class represents the structure NavSatStatus defined by the user in the IDL file. More...
#include <NavSatStatus.h>
Public Member Functions | |
eProsima_user_DllExport void | deserialize (eprosima::fastcdr::Cdr &cdr) |
This function deserializes an object using CDR serialization. More... | |
eProsima_user_DllExport | NavSatStatus () |
Default constructor. More... | |
eProsima_user_DllExport | NavSatStatus (const NavSatStatus &x) |
Copy constructor. More... | |
eProsima_user_DllExport | NavSatStatus (NavSatStatus &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport bool | operator!= (const NavSatStatus &x) const |
Comparison operator. More... | |
eProsima_user_DllExport NavSatStatus & | operator= (const NavSatStatus &x) |
Copy assignment. More... | |
eProsima_user_DllExport NavSatStatus & | operator= (NavSatStatus &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const NavSatStatus &x) const |
Comparison operator. More... | |
eProsima_user_DllExport void | serialize (eprosima::fastcdr::Cdr &cdr) const |
This function serializes an object using CDR serialization. More... | |
eProsima_user_DllExport void | serializeKey (eprosima::fastcdr::Cdr &cdr) const |
This function serializes the key members of an object using CDR serialization. More... | |
eProsima_user_DllExport void | service (uint16_t _service) |
This function sets a value in member service. More... | |
eProsima_user_DllExport uint16_t | service () const |
This function returns the value of member service. More... | |
eProsima_user_DllExport uint16_t & | service () |
This function returns a reference to member service. More... | |
eProsima_user_DllExport void | status (uint8_t _status) |
This function sets a value in member status. More... | |
eProsima_user_DllExport uint8_t | status () const |
This function returns the value of member status. More... | |
eProsima_user_DllExport uint8_t & | status () |
This function returns a reference to member status. More... | |
eProsima_user_DllExport | ~NavSatStatus () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const sensor_msgs::msg::NavSatStatus &data, size_t current_alignment=0) |
This function returns the serialized size of a data depending on the buffer alignment. More... | |
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 alignment. More... | |
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. More... | |
static eProsima_user_DllExport bool | isKeyDefined () |
This function tells you if the Key has been defined for this type. More... | |
Private Attributes | |
uint16_t | m_service |
uint8_t | m_status |
This class represents the structure NavSatStatus defined by the user in the IDL file.
Definition at line 78 of file NavSatStatus.h.
sensor_msgs::msg::NavSatStatus::NavSatStatus | ( | ) |
Default constructor.
Definition at line 40 of file NavSatStatus.cpp.
sensor_msgs::msg::NavSatStatus::~NavSatStatus | ( | ) |
Default destructor.
Definition at line 48 of file NavSatStatus.cpp.
sensor_msgs::msg::NavSatStatus::NavSatStatus | ( | const NavSatStatus & | x | ) |
Copy constructor.
x | Reference to the object sensor_msgs::msg::NavSatStatus that will be copied. |
Definition at line 52 of file NavSatStatus.cpp.
|
noexcept |
Move constructor.
x | Reference to the object sensor_msgs::msg::NavSatStatus that will be copied. |
Definition at line 59 of file NavSatStatus.cpp.
void sensor_msgs::msg::NavSatStatus::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 122 of file NavSatStatus.cpp.
Referenced by sensor_msgs::msg::NavSatStatusPubSubType::deserialize().
|
static |
This function returns the serialized size of a data depending on the buffer alignment.
data | Data which is calculated its serialized size. |
current_alignment | Buffer alignment. |
Definition at line 103 of file NavSatStatus.cpp.
Referenced by sensor_msgs::msg::NavSatFix::getCdrSerializedSize(), and sensor_msgs::msg::NavSatStatusPubSubType::getSerializedSizeProvider().
|
static |
This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 185 of file NavSatStatus.cpp.
References sensor_msgs_msg_NavSatStatus_max_key_cdr_typesize.
Referenced by sensor_msgs::msg::NavSatStatusPubSubType::getKey(), and sensor_msgs::msg::NavSatStatusPubSubType::NavSatStatusPubSubType().
|
static |
This function returns the maximum serialized size of an object depending on the buffer alignment.
current_alignment | Buffer alignment. |
Definition at line 96 of file NavSatStatus.cpp.
References sensor_msgs_msg_NavSatStatus_max_cdr_typesize.
Referenced by sensor_msgs::msg::NavSatStatusPubSubType::NavSatStatusPubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 192 of file NavSatStatus.cpp.
Referenced by sensor_msgs::msg::NavSatStatusPubSubType::NavSatStatusPubSubType().
bool sensor_msgs::msg::NavSatStatus::operator!= | ( | const NavSatStatus & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::NavSatStatus object to compare. |
Definition at line 90 of file NavSatStatus.cpp.
sensor_msgs::msg::NavSatStatus & sensor_msgs::msg::NavSatStatus::operator= | ( | const NavSatStatus & | x | ) |
Copy assignment.
x | Reference to the object sensor_msgs::msg::NavSatStatus that will be copied. |
Definition at line 66 of file NavSatStatus.cpp.
|
noexcept |
Move assignment.
x | Reference to the object sensor_msgs::msg::NavSatStatus that will be copied. |
Definition at line 75 of file NavSatStatus.cpp.
References m_status.
bool sensor_msgs::msg::NavSatStatus::operator== | ( | const NavSatStatus & | x | ) | const |
Comparison operator.
x | sensor_msgs::msg::NavSatStatus object to compare. |
Definition at line 84 of file NavSatStatus.cpp.
void sensor_msgs::msg::NavSatStatus::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 115 of file NavSatStatus.cpp.
Referenced by sensor_msgs::msg::NavSatStatusPubSubType::serialize().
void sensor_msgs::msg::NavSatStatus::serializeKey | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes the key members of an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 197 of file NavSatStatus.cpp.
Referenced by sensor_msgs::msg::NavSatStatusPubSubType::getKey().
void sensor_msgs::msg::NavSatStatus::service | ( | uint16_t | _service | ) |
This function sets a value in member service.
_service | New value for member service |
Definition at line 161 of file NavSatStatus.cpp.
uint16_t sensor_msgs::msg::NavSatStatus::service | ( | ) | const |
This function returns the value of member service.
Definition at line 171 of file NavSatStatus.cpp.
uint16_t & sensor_msgs::msg::NavSatStatus::service | ( | ) |
This function returns a reference to member service.
Definition at line 180 of file NavSatStatus.cpp.
void sensor_msgs::msg::NavSatStatus::status | ( | uint8_t | _status | ) |
This function sets a value in member status.
_status | New value for member status |
Definition at line 133 of file NavSatStatus.cpp.
uint8_t sensor_msgs::msg::NavSatStatus::status | ( | ) | const |
This function returns the value of member status.
Definition at line 143 of file NavSatStatus.cpp.
uint8_t & sensor_msgs::msg::NavSatStatus::status | ( | ) |
This function returns a reference to member status.
Definition at line 152 of file NavSatStatus.cpp.
|
private |
Definition at line 228 of file NavSatStatus.h.
Referenced by NavSatStatus(), operator=(), and operator==().
|
private |
Definition at line 227 of file NavSatStatus.h.
Referenced by NavSatStatus(), operator=(), and operator==().