Skip to content

Commit

Permalink
Fixed comment order.
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Ayers committed Nov 8, 2024
1 parent 9b9768a commit 09c1e96
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/qos_dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,18 +196,18 @@ DDS::DestinationOrderQosPolicyKind QosDictionary::getTimestampPolicy()
return retval;
}

DDS::DataRepresentationId_t QosDictionary::getDataRepresentationType()
{
return DDS::XCDR2_DATA_REPRESENTATION;
}

/**
* @brief Get the encoding for DataWriters
* @details Snippet from the OpenDDS 3.16 developers guide:
* For the rtps_udp transport, the default encoding of DataWriters changed from classic CDR to XCDR2. To maintain interoperability with pre-3.16 OpenDDS and other DDS implementations, the first element of representation.value of DataWriterQos must be set to DDS::XCDR_DATA_REPRESENTATION or the non-OpenDDS 3.16 DataReader must be set up with DDS::XCDR2_DATA_REPRESENTATION if supported. DataReaders will continue to be interoperable by default
* We default to XCDR2, but if $DDS_USE_OLD_CDR is set, CDR is used for compatilility with versions before 3.16.0
* @return QosPolicy for destination order.
*/
DDS::DataRepresentationId_t QosDictionary::getDataRepresentationType()
{
return DDS::XCDR2_DATA_REPRESENTATION;
}

OpenDDS::DCPS::Encoding::Kind QosDictionary::getEncodingKind()
{
if (QosDictionary::getDataRepresentationType() == DDS::XCDR_DATA_REPRESENTATION)
Expand Down

0 comments on commit 09c1e96

Please sign in to comment.