| 117 | } |
| 118 | |
| 119 | void |
| 120 | ReaderProfile::copyToReaderQos(::DDS::DataReaderQos& dds_qos) |
| 121 | { |
| 122 | if( this->mask & SetDurabilityQos) { |
| 123 | dds_qos.durability.kind = this->qos.durability.kind; |
| 124 | } |
| 125 | if( this->mask & SetDeadlineQos) { |
| 126 | dds_qos.deadline.period.sec = this->qos.deadline.period.sec; |
| 127 | dds_qos.deadline.period.nanosec = this->qos.deadline.period.nanosec; |
| 128 | } |
| 129 | if( this->mask & SetLatencyBudgetQos) { |
| 130 | dds_qos.latency_budget.duration.sec |
| 131 | = this->qos.latency_budget.duration.sec; |
| 132 | dds_qos.latency_budget.duration.nanosec |
| 133 | = this->qos.latency_budget.duration.nanosec; |
| 134 | } |
| 135 | if( this->mask & SetLivelinessKindQos) { |
| 136 | dds_qos.liveliness.kind = this->qos.liveliness.kind; |
| 137 | } |
| 138 | if( this->mask & SetLivelinessDurationQos) { |
| 139 | dds_qos.liveliness.lease_duration.sec |
| 140 | = this->qos.liveliness.lease_duration.sec; |
| 141 | dds_qos.liveliness.lease_duration.nanosec |
| 142 | = this->qos.liveliness.lease_duration.nanosec; |
| 143 | } |
| 144 | if( this->mask & SetReliabilityKindQos) { |
| 145 | dds_qos.reliability.kind = this->qos.reliability.kind; |
| 146 | } |
| 147 | if( this->mask & SetReliabilityMaxBlockingQos) { |
| 148 | dds_qos.reliability.max_blocking_time.sec |
| 149 | = this->qos.reliability.max_blocking_time.sec; |
| 150 | dds_qos.reliability.max_blocking_time.nanosec |
| 151 | = this->qos.reliability.max_blocking_time.nanosec; |
| 152 | } |
| 153 | if( this->mask & SetDestinationOrderQos) { |
| 154 | dds_qos.destination_order.kind = this->qos.destination_order.kind; |
| 155 | } |
| 156 | if( this->mask & SetHistoryKindQos) { |
| 157 | dds_qos.history.kind = this->qos.history.kind; |
| 158 | } |
| 159 | if( this->mask & SetHistoryDepthQos) { |
| 160 | dds_qos.history.depth = this->qos.history.depth; |
| 161 | } |
| 162 | if( this->mask & SetResourceMaxSamplesQos) { |
| 163 | dds_qos.resource_limits.max_samples = this->qos.resource_limits.max_samples; |
| 164 | } |
| 165 | if( this->mask & SetResourceMaxInstancesQos) { |
| 166 | dds_qos.resource_limits.max_instances = this->qos.resource_limits.max_instances; |
| 167 | } |
| 168 | if( this->mask & SetResourceMaxSamplesPerInstanceQos) { |
| 169 | dds_qos.resource_limits.max_samples_per_instance |
| 170 | = this->qos.resource_limits.max_samples_per_instance; |
| 171 | } |
| 172 | if( this->mask & SetUserDataQos) { |
| 173 | dds_qos.user_data.value = this->qos.user_data.value; |
| 174 | // dds_qos.user_data.value.length( this->qos.user_data.value.length()); |
| 175 | // dds_qos.user_data.value.replace( |
| 176 | // this->qos.user_data.value.length(), |