Description

This class represents the structure SynDDSMessage defined by the user in the IDL file.

#include <SynDDSMessage.h>

Public Member Functions

eProsima_user_DllExport SynDDSMessage ()
 Default constructor.
 
eProsima_user_DllExport ~SynDDSMessage ()
 Default destructor.
 
eProsima_user_DllExport SynDDSMessage (const SynDDSMessage &x)
 Copy constructor. More...
 
eProsima_user_DllExport SynDDSMessage (SynDDSMessage &&x)
 Move constructor. More...
 
eProsima_user_DllExport SynDDSMessageoperator= (const SynDDSMessage &x)
 Copy assignment. More...
 
eProsima_user_DllExport SynDDSMessageoperator= (SynDDSMessage &&x)
 Move assignment. More...
 
eProsima_user_DllExport void rank (uint32_t _rank)
 This function sets a value in member rank. More...
 
eProsima_user_DllExport uint32_t rank () const
 This function returns the value of member rank. More...
 
eProsima_user_DllExport uint32_t & rank ()
 This function returns a reference to member rank. More...
 
eProsima_user_DllExport void data (const std::vector< uint8_t > &_data)
 This function copies the value in member data. More...
 
eProsima_user_DllExport void data (std::vector< uint8_t > &&_data)
 This function moves the value in member data. More...
 
const eProsima_user_DllExport std::vector< uint8_t > & data () const
 This function returns a constant reference to member data. More...
 
eProsima_user_DllExport std::vector< uint8_t > & data ()
 This function returns a reference to member data. More...
 
eProsima_user_DllExport void serialize (eprosima::fastcdr::Cdr &cdr) const
 This function serializes an object using CDR serialization. More...
 
eProsima_user_DllExport void deserialize (eprosima::fastcdr::Cdr &cdr)
 This function deserializes 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...
 

Static Public Member Functions

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 size_t getCdrSerializedSize (const SynDDSMessage &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 bool isKeyDefined ()
 This function tells you if the Key has been defined for this type.
 

Constructor & Destructor Documentation

◆ SynDDSMessage() [1/2]

SynDDSMessage::SynDDSMessage ( const SynDDSMessage x)

Copy constructor.

Parameters
xReference to the object SynDDSMessage that will be copied.

◆ SynDDSMessage() [2/2]

SynDDSMessage::SynDDSMessage ( SynDDSMessage &&  x)

Move constructor.

Parameters
xReference to the object SynDDSMessage that will be copied.

Member Function Documentation

◆ data() [1/4]

std::vector< uint8_t > & SynDDSMessage::data ( )

This function returns a reference to member data.

Returns
Reference to member data

◆ data() [2/4]

const std::vector< uint8_t > & SynDDSMessage::data ( ) const

This function returns a constant reference to member data.

Returns
Constant reference to member data

◆ data() [3/4]

void SynDDSMessage::data ( const std::vector< uint8_t > &  _data)

This function copies the value in member data.

Parameters
_dataNew value to be copied in member data

◆ data() [4/4]

void SynDDSMessage::data ( std::vector< uint8_t > &&  _data)

This function moves the value in member data.

Parameters
_dataNew value to be moved in member data

◆ deserialize()

void SynDDSMessage::deserialize ( eprosima::fastcdr::Cdr &  cdr)

This function deserializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

◆ getCdrSerializedSize()

size_t SynDDSMessage::getCdrSerializedSize ( const SynDDSMessage data,
size_t  current_alignment = 0 
)
static

This function returns the serialized size of a data depending on the buffer alignment.

Parameters
dataData which is calculated its serialized size.
current_alignmentBuffer alignment.
Returns
Serialized size.

◆ getKeyMaxCdrSerializedSize()

size_t SynDDSMessage::getKeyMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of the Key of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

◆ getMaxCdrSerializedSize()

size_t SynDDSMessage::getMaxCdrSerializedSize ( size_t  current_alignment = 0)
static

This function returns the maximum serialized size of an object depending on the buffer alignment.

Parameters
current_alignmentBuffer alignment.
Returns
Maximum serialized size.

◆ operator=() [1/2]

SynDDSMessage & SynDDSMessage::operator= ( const SynDDSMessage x)

Copy assignment.

Parameters
xReference to the object SynDDSMessage that will be copied.

◆ operator=() [2/2]

SynDDSMessage & SynDDSMessage::operator= ( SynDDSMessage &&  x)

Move assignment.

Parameters
xReference to the object SynDDSMessage that will be copied.

◆ rank() [1/3]

uint32_t & SynDDSMessage::rank ( )

This function returns a reference to member rank.

Returns
Reference to member rank

◆ rank() [2/3]

uint32_t SynDDSMessage::rank ( ) const

This function returns the value of member rank.

Returns
Value of member rank

◆ rank() [3/3]

void SynDDSMessage::rank ( uint32_t  _rank)

This function sets a value in member rank.

Parameters
_rankNew value for member rank

◆ serialize()

void SynDDSMessage::serialize ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes an object using CDR serialization.

Parameters
cdrCDR serialization object.

◆ serializeKey()

void SynDDSMessage::serializeKey ( eprosima::fastcdr::Cdr &  cdr) const

This function serializes the key members of an object using CDR serialization.

Parameters
cdrCDR serialization object.

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_synchrono/communication/dds/idl/SynDDSMessage.h
  • /builds/uwsbel/chrono/src/chrono_synchrono/communication/dds/idl/SynDDSMessage.cxx