Contains the data representations supported by entities.
More...
#include <dds/core/policy/CorePolicy.hpp>
Detailed Description
Contains the data representations supported by entities.
- Entity:
- dds::topic::Topic, dds::sub::DataReader, dds::pub::DataWriter
- Status:
- dds::core::status::StatusMask::offered_incompatible_qos(), dds::core::status::StatusMask::requested_incompatible_qos()
- Properties:
- RxO = YES
Changeable = UNTIL ENABLE
- See Also
- DATA_REPRESENTATION
This policy has request-offer semantics. A dds::pub::DataWriter may only offer a single representation. Attempting to put multiple representations in a dds::pub::DataWriter will result in dds::core::InconsistentPolicyError. A dds::pub::DataWriter will use its offered policy to communicate with its matched dds::sub::DataReader entities. A dds::sub::DataReader requests one or more representations. If a dds::pub::DataWriter offers a representation that is contained within the sequence of the dds::sub::DataReader, the offer satisfies the request and the policies are compatible. Otherwise, they are incompatible.
When representations are specified in the dds::topic::qos::TopicQos, dds::pub::qos::DataWriterQos::operator=(const dds::topic::qos::TopicQos&) copies the first element of the sequence, and dds::sub::qos::DataReaderQos::operator=(const dds::topic::qos::TopicQos&) copies the whole sequence.
Constructor & Destructor Documentation
dds::core::policy::DataRepresentation::DataRepresentation |
( |
| ) |
|
|
inline |
Creates an instance with one element, auto_id().
Creates an instance with a sequence of DataRepresentationId.
- Parameters
-
Creates an instance with a sequence of DataRepresentationId.
- Parameters
-
value_begin | Beginning of a range of DataRepresentationId |
value_end | End of the range |
Member Function Documentation
template<typename ShortIter >
DataRepresentation& dds::core::policy::DataRepresentation::value |
( |
ShortIter |
the_begin, |
|
|
ShortIter |
the_end |
|
) |
| |
|
inline |
Sets the DataRepresentationId sequence.
- Template Parameters
-
ShortIter | An input iterator of DataRepresentationId. |
- Parameters
-
the_begin | Beginning of the range |
the_end | End of the range |
Gets the DataRepresentation.
- Returns
- the sequence of DataRepresentationId representing the data representations
Gets the data representation.
- Parameters
-
dest | The vector where the DataRepresentationId will be copied |
- Returns
- A reference to
dest