| 8 | namespace OpenDDS { namespace Model { |
| 9 | |
| 10 | void |
| 11 | WriterProfile::copyToWriterQos(::DDS::DataWriterQos& dds_qos) |
| 12 | { |
| 13 | if( this->mask & SetDurabilityQos) { |
| 14 | dds_qos.durability.kind = this->qos.durability.kind; |
| 15 | } |
| 16 | if( this->mask & SetDurabilityServiceDurationQos) { |
| 17 | dds_qos.durability_service.service_cleanup_delay.sec |
| 18 | = this->qos.durability_service.service_cleanup_delay.sec; |
| 19 | dds_qos.durability_service.service_cleanup_delay.nanosec |
| 20 | = this->qos.durability_service.service_cleanup_delay.nanosec; |
| 21 | } |
| 22 | if( this->mask & SetDurabilityServiceHistoryKindQos) { |
| 23 | dds_qos.durability_service.history_kind |
| 24 | = this->qos.durability_service.history_kind; |
| 25 | } |
| 26 | if( this->mask & SetDurabilityServiceHistoryDepthQos) { |
| 27 | dds_qos.durability_service.history_depth |
| 28 | = this->qos.durability_service.history_depth; |
| 29 | } |
| 30 | if( this->mask & SetDurabilityServiceSamplesQos) { |
| 31 | dds_qos.durability_service.max_samples |
| 32 | = this->qos.durability_service.max_samples; |
| 33 | } |
| 34 | if( this->mask & SetDurabilityServiceInstancesQos) { |
| 35 | dds_qos.durability_service.max_instances |
| 36 | = this->qos.durability_service.max_instances; |
| 37 | } |
| 38 | if( this->mask & SetDurabilityServiceSamplesPerInstanceQos) { |
| 39 | dds_qos.durability_service.max_samples_per_instance |
| 40 | = this->qos.durability_service.max_samples_per_instance; |
| 41 | } |
| 42 | if( this->mask & SetDeadlineQos) { |
| 43 | dds_qos.deadline.period.sec = this->qos.deadline.period.sec; |
| 44 | dds_qos.deadline.period.nanosec = this->qos.deadline.period.nanosec; |
| 45 | } |
| 46 | if( this->mask & SetLatencyBudgetQos) { |
| 47 | dds_qos.latency_budget.duration.sec |
| 48 | = this->qos.latency_budget.duration.sec; |
| 49 | dds_qos.latency_budget.duration.nanosec |
| 50 | = this->qos.latency_budget.duration.nanosec; |
| 51 | } |
| 52 | if( this->mask & SetLivelinessKindQos) { |
| 53 | dds_qos.liveliness.kind = this->qos.liveliness.kind; |
| 54 | } |
| 55 | if( this->mask & SetLivelinessDurationQos) { |
| 56 | dds_qos.liveliness.lease_duration.sec |
| 57 | = this->qos.liveliness.lease_duration.sec; |
| 58 | dds_qos.liveliness.lease_duration.nanosec |
| 59 | = this->qos.liveliness.lease_duration.nanosec; |
| 60 | } |
| 61 | if( this->mask & SetReliabilityKindQos) { |
| 62 | dds_qos.reliability.kind = this->qos.reliability.kind; |
| 63 | } |
| 64 | if( this->mask & SetReliabilityMaxBlockingQos) { |
| 65 | dds_qos.reliability.max_blocking_time.sec |
| 66 | = this->qos.reliability.max_blocking_time.sec; |
| 67 | dds_qos.reliability.max_blocking_time.nanosec |