This class represents the structure TF2Error defined by the user in the IDL file. More...
#include <TF2Error.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 void | error (uint8_t _error) |
This function sets a value in member error. More... | |
eProsima_user_DllExport uint8_t | error () const |
This function returns the value of member error. More... | |
eProsima_user_DllExport uint8_t & | error () |
This function returns a reference to member error. More... | |
eProsima_user_DllExport void | error_string (const std::string &_error_string) |
This function copies the value in member error_string. More... | |
eProsima_user_DllExport void | error_string (std::string &&_error_string) |
This function moves the value in member error_string. More... | |
eProsima_user_DllExport const std::string & | error_string () const |
This function returns a constant reference to member error_string. More... | |
eProsima_user_DllExport std::string & | error_string () |
This function returns a reference to member error_string. More... | |
eProsima_user_DllExport bool | operator!= (const TF2Error &x) const |
Comparison operator. More... | |
eProsima_user_DllExport TF2Error & | operator= (const TF2Error &x) |
Copy assignment. More... | |
eProsima_user_DllExport TF2Error & | operator= (TF2Error &&x) noexcept |
Move assignment. More... | |
eProsima_user_DllExport bool | operator== (const TF2Error &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 | TF2Error () |
Default constructor. More... | |
eProsima_user_DllExport | TF2Error (const TF2Error &x) |
Copy constructor. More... | |
eProsima_user_DllExport | TF2Error (TF2Error &&x) noexcept |
Move constructor. More... | |
eProsima_user_DllExport | ~TF2Error () |
Default destructor. More... | |
Static Public Member Functions | |
static eProsima_user_DllExport size_t | getCdrSerializedSize (const tf2_msgs::msg::TF2Error &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 | |
uint8_t | m_error |
std::string | m_error_string |
This class represents the structure TF2Error defined by the user in the IDL file.
Definition at line 78 of file TF2Error.h.
tf2_msgs::msg::TF2Error::TF2Error | ( | ) |
Default constructor.
Definition at line 40 of file TF2Error.cpp.
tf2_msgs::msg::TF2Error::~TF2Error | ( | ) |
Default destructor.
Definition at line 48 of file TF2Error.cpp.
tf2_msgs::msg::TF2Error::TF2Error | ( | const TF2Error & | x | ) |
Copy constructor.
x | Reference to the object tf2_msgs::msg::TF2Error that will be copied. |
Definition at line 52 of file TF2Error.cpp.
References m_error, and m_error_string.
|
noexcept |
Move constructor.
x | Reference to the object tf2_msgs::msg::TF2Error that will be copied. |
Definition at line 59 of file TF2Error.cpp.
void tf2_msgs::msg::TF2Error::deserialize | ( | eprosima::fastcdr::Cdr & | cdr | ) |
This function deserializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 121 of file TF2Error.cpp.
Referenced by tf2_msgs::msg::TF2ErrorPubSubType::deserialize().
void tf2_msgs::msg::TF2Error::error | ( | uint8_t | _error | ) |
This function sets a value in member error.
_error | New value for member error |
Definition at line 132 of file TF2Error.cpp.
uint8_t tf2_msgs::msg::TF2Error::error | ( | ) | const |
This function returns the value of member error.
Definition at line 142 of file TF2Error.cpp.
uint8_t & tf2_msgs::msg::TF2Error::error | ( | ) |
This function returns a reference to member error.
Definition at line 151 of file TF2Error.cpp.
void tf2_msgs::msg::TF2Error::error_string | ( | const std::string & | _error_string | ) |
This function copies the value in member error_string.
_error_string | New value to be copied in member error_string |
Definition at line 160 of file TF2Error.cpp.
Referenced by getCdrSerializedSize().
void tf2_msgs::msg::TF2Error::error_string | ( | std::string && | _error_string | ) |
This function moves the value in member error_string.
_error_string | New value to be moved in member error_string |
Definition at line 170 of file TF2Error.cpp.
const std::string & tf2_msgs::msg::TF2Error::error_string | ( | ) | const |
This function returns a constant reference to member error_string.
Definition at line 180 of file TF2Error.cpp.
std::string & tf2_msgs::msg::TF2Error::error_string | ( | ) |
This function returns a reference to member error_string.
Definition at line 189 of file TF2Error.cpp.
|
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 TF2Error.cpp.
References error_string().
Referenced by tf2_msgs::msg::TF2ErrorPubSubType::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 195 of file TF2Error.cpp.
References tf2_msgs_msg_TF2Error_max_key_cdr_typesize.
Referenced by tf2_msgs::msg::TF2ErrorPubSubType::getKey(), and tf2_msgs::msg::TF2ErrorPubSubType::TF2ErrorPubSubType().
|
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 TF2Error.cpp.
References tf2_msgs_msg_TF2Error_max_cdr_typesize.
Referenced by tf2_msgs::msg::TF2ErrorPubSubType::TF2ErrorPubSubType().
|
static |
This function tells you if the Key has been defined for this type.
Definition at line 202 of file TF2Error.cpp.
Referenced by tf2_msgs::msg::TF2ErrorPubSubType::TF2ErrorPubSubType().
bool tf2_msgs::msg::TF2Error::operator!= | ( | const TF2Error & | x | ) | const |
Comparison operator.
x | tf2_msgs::msg::TF2Error object to compare. |
Definition at line 90 of file TF2Error.cpp.
tf2_msgs::msg::TF2Error & tf2_msgs::msg::TF2Error::operator= | ( | const TF2Error & | x | ) |
Copy assignment.
x | Reference to the object tf2_msgs::msg::TF2Error that will be copied. |
Definition at line 66 of file TF2Error.cpp.
References m_error, and m_error_string.
|
noexcept |
Move assignment.
x | Reference to the object tf2_msgs::msg::TF2Error that will be copied. |
Definition at line 75 of file TF2Error.cpp.
References m_error.
bool tf2_msgs::msg::TF2Error::operator== | ( | const TF2Error & | x | ) | const |
Comparison operator.
x | tf2_msgs::msg::TF2Error object to compare. |
Definition at line 84 of file TF2Error.cpp.
References m_error, and m_error_string.
void tf2_msgs::msg::TF2Error::serialize | ( | eprosima::fastcdr::Cdr & | cdr | ) | const |
This function serializes an object using CDR serialization.
cdr | CDR serialization object. |
Definition at line 114 of file TF2Error.cpp.
Referenced by tf2_msgs::msg::TF2ErrorPubSubType::serialize().
void tf2_msgs::msg::TF2Error::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 207 of file TF2Error.cpp.
Referenced by tf2_msgs::msg::TF2ErrorPubSubType::getKey().
|
private |
Definition at line 234 of file TF2Error.h.
Referenced by operator=(), operator==(), and TF2Error().
|
private |
Definition at line 235 of file TF2Error.h.
Referenced by operator=(), operator==(), and TF2Error().