@@ -126,45 +126,6 @@ class ReaderResourceLimitsQos
126126 int32_t max_samples_per_read = 32 ;
127127};
128128
129- // ! Qos Policy to configure the XTypes Qos associated to the DataReader
130- class TypeConsistencyQos : public QosPolicy
131- {
132- public:
133-
134- /* *
135- * @brief Constructor
136- */
137- FASTDDS_EXPORTED_API TypeConsistencyQos ()
138- : QosPolicy(false )
139- {
140- }
141-
142- /* *
143- * @brief Destructor
144- */
145- virtual FASTDDS_EXPORTED_API ~TypeConsistencyQos () = default ;
146-
147- bool operator ==(
148- const TypeConsistencyQos& b) const
149- {
150- return (this ->type_consistency == b.type_consistency ) &&
151- (this ->representation == b.representation ) &&
152- QosPolicy::operator ==(b);
153- }
154-
155- inline void clear () override
156- {
157- TypeConsistencyQos reset = TypeConsistencyQos ();
158- std::swap (*this , reset);
159- }
160-
161- // !Type consistency enforcement Qos.
162- TypeConsistencyEnforcementQosPolicy type_consistency;
163-
164- // !Data Representation Qos.
165- DataRepresentationQosPolicy representation;
166- };
167-
168129/* *
169130 * Class DataReaderQos, containing all the possible Qos that can be set for a determined DataReader.
170131 * Although these values can be set and are transmitted
@@ -203,6 +164,7 @@ class DataReaderQos
203164 (durability_service_ == b.durability_service ()) &&
204165 (reliable_reader_qos_ == b.reliable_reader_qos ()) &&
205166 (type_consistency_ == b.type_consistency ()) &&
167+ (representation_ == b.representation ()) &&
206168 (expects_inline_qos_ == b.expects_inline_qos ()) &&
207169 (properties_ == b.properties ()) &&
208170 (endpoint_ == b.endpoint ()) &&
@@ -679,36 +641,67 @@ class DataReaderQos
679641 }
680642
681643 /* *
682- * Getter for TypeConsistencyQos
644+ * Getter for TypeConsistencyEnforcementQosPolicy
683645 *
684- * @return TypeConsistencyQos reference
646+ * @return TypeConsistencyEnforcementQosPolicy reference
685647 */
686- FASTDDS_EXPORTED_API TypeConsistencyQos & type_consistency ()
648+ FASTDDS_EXPORTED_API TypeConsistencyEnforcementQosPolicy & type_consistency ()
687649 {
688650 return type_consistency_;
689651 }
690652
691653 /* *
692- * Getter for TypeConsistencyQos
654+ * Getter for TypeConsistencyEnforcementQosPolicy
693655 *
694- * @return TypeConsistencyQos const reference
656+ * @return TypeConsistencyEnforcementQosPolicy const reference
695657 */
696- FASTDDS_EXPORTED_API const TypeConsistencyQos & type_consistency () const
658+ FASTDDS_EXPORTED_API const TypeConsistencyEnforcementQosPolicy & type_consistency () const
697659 {
698660 return type_consistency_;
699661 }
700662
701663 /* *
702- * Setter for TypeConsistencyQos
664+ * Setter for TypeConsistencyEnforcementQosPolicy
703665 *
704- * @param new_value new value for the TypeConsistencyQos
666+ * @param new_value new value for the TypeConsistencyEnforcementQosPolicy
705667 */
706668 FASTDDS_EXPORTED_API void type_consistency (
707- const TypeConsistencyQos & new_value)
669+ const TypeConsistencyEnforcementQosPolicy & new_value)
708670 {
709671 type_consistency_ = new_value;
710672 }
711673
674+ /* *
675+ * Getter for DataRepresentationQosPolicy
676+ *
677+ * @return DataRepresentationQosPolicy reference
678+ */
679+ FASTDDS_EXPORTED_API const DataRepresentationQosPolicy& representation () const
680+ {
681+ return representation_;
682+ }
683+
684+ /* *
685+ * Getter for DataRepresentationQosPolicy
686+ *
687+ * @return DataRepresentationQosPolicy reference
688+ */
689+ FASTDDS_EXPORTED_API DataRepresentationQosPolicy& representation ()
690+ {
691+ return representation_;
692+ }
693+
694+ /* *
695+ * Setter for DataRepresentationQosPolicy
696+ *
697+ * @param representation new value for the DataRepresentationQosPolicy
698+ */
699+ FASTDDS_EXPORTED_API void representation (
700+ const DataRepresentationQosPolicy& representation)
701+ {
702+ representation_ = representation;
703+ }
704+
712705 /* *
713706 * Getter for expectsInlineQos
714707 *
@@ -901,8 +894,11 @@ class DataReaderQos
901894 // !Reliable reader configuration (Extension)
902895 RTPSReliableReaderQos reliable_reader_qos_;
903896
904- // ! Tipe consistency (Extension)
905- TypeConsistencyQos type_consistency_;
897+ // ! Type consistency (Extension)
898+ TypeConsistencyEnforcementQosPolicy type_consistency_;
899+
900+ // ! Data representation (Extension)
901+ DataRepresentationQosPolicy representation_;
906902
907903 // !Expects Inline QOS (Extension).
908904 bool expects_inline_qos_;
0 commit comments