OpenDDS  Snapshot(2023/04/28-20:55)
dds_qos.cpp
Go to the documentation of this file.
1 /*
2  * This code was generated by the XML Schema Compiler.
3  *
4  * Changes made to this code will most likely be overwritten
5  * when the handlers are recompiled.
6  *
7  * If you find errors or feel that there are bugfixes to be made,
8  * please report this to the XSC project at
9  * https://github.com/DOCGroup/XSC
10  */
11 #include "dds_qos.hpp"
12 
13 #include "ace/ace_wchar.h"
14 #include "ace/Null_Mutex.h"
15 #include "ace/TSS_T.h"
16 #include "ace/Singleton.h"
17 
18 namespace dds
19 {
20  // destinationOrderKind
21 
22  destinationOrderKind::Value destinationOrderKind::
23  integral () const
24  {
25  return v_;
26  }
27 
28  bool
29  operator== (::dds::destinationOrderKind const& a, ::dds::destinationOrderKind const& b)
30  {
31  return a.v_ == b.v_;
32  }
33 
34  bool
35  operator!= (::dds::destinationOrderKind const& a, ::dds::destinationOrderKind const& b)
36  {
37  return a.v_ != b.v_;
38  }
39 
40  destinationOrderKind::
41  destinationOrderKind (destinationOrderKind::Value v)
42  : v_ (v)
43  {
44  }
45 
46  // durabilityKind
47 
48  durabilityKind::Value durabilityKind::
49  integral () const
50  {
51  return v_;
52  }
53 
54  bool
55  operator== (::dds::durabilityKind const& a, ::dds::durabilityKind const& b)
56  {
57  return a.v_ == b.v_;
58  }
59 
60  bool
61  operator!= (::dds::durabilityKind const& a, ::dds::durabilityKind const& b)
62  {
63  return a.v_ != b.v_;
64  }
65 
66  durabilityKind::
67  durabilityKind (durabilityKind::Value v)
68  : v_ (v)
69  {
70  }
71 
72  // historyKind
73 
74  historyKind::Value historyKind::
75  integral () const
76  {
77  return v_;
78  }
79 
80  bool
81  operator== (::dds::historyKind const& a, ::dds::historyKind const& b)
82  {
83  return a.v_ == b.v_;
84  }
85 
86  bool
87  operator!= (::dds::historyKind const& a, ::dds::historyKind const& b)
88  {
89  return a.v_ != b.v_;
90  }
91 
92  historyKind::
93  historyKind (historyKind::Value v)
94  : v_ (v)
95  {
96  }
97 
98  // livelinessKind
99 
100  livelinessKind::Value livelinessKind::
101  integral () const
102  {
103  return v_;
104  }
105 
106  bool
107  operator== (::dds::livelinessKind const& a, ::dds::livelinessKind const& b)
108  {
109  return a.v_ == b.v_;
110  }
111 
112  bool
113  operator!= (::dds::livelinessKind const& a, ::dds::livelinessKind const& b)
114  {
115  return a.v_ != b.v_;
116  }
117 
118  livelinessKind::
119  livelinessKind (livelinessKind::Value v)
120  : v_ (v)
121  {
122  }
123 
124  // presentationAccessScopeKind
125 
126  presentationAccessScopeKind::Value presentationAccessScopeKind::
127  integral () const
128  {
129  return v_;
130  }
131 
132  bool
133  operator== (::dds::presentationAccessScopeKind const& a, ::dds::presentationAccessScopeKind const& b)
134  {
135  return a.v_ == b.v_;
136  }
137 
138  bool
139  operator!= (::dds::presentationAccessScopeKind const& a, ::dds::presentationAccessScopeKind const& b)
140  {
141  return a.v_ != b.v_;
142  }
143 
144  presentationAccessScopeKind::
145  presentationAccessScopeKind (presentationAccessScopeKind::Value v)
146  : v_ (v)
147  {
148  }
149 
150  // reliabilityKind
151 
152  reliabilityKind::Value reliabilityKind::
153  integral () const
154  {
155  return v_;
156  }
157 
158  bool
159  operator== (::dds::reliabilityKind const& a, ::dds::reliabilityKind const& b)
160  {
161  return a.v_ == b.v_;
162  }
163 
164  bool
165  operator!= (::dds::reliabilityKind const& a, ::dds::reliabilityKind const& b)
166  {
167  return a.v_ != b.v_;
168  }
169 
170  reliabilityKind::
171  reliabilityKind (reliabilityKind::Value v)
172  : v_ (v)
173  {
174  }
175 
176  // ownershipKind
177 
178  ownershipKind::Value ownershipKind::
179  integral () const
180  {
181  return v_;
182  }
183 
184  bool
185  operator== (::dds::ownershipKind const& a, ::dds::ownershipKind const& b)
186  {
187  return a.v_ == b.v_;
188  }
189 
190  bool
191  operator!= (::dds::ownershipKind const& a, ::dds::ownershipKind const& b)
192  {
193  return a.v_ != b.v_;
194  }
195 
196  ownershipKind::
197  ownershipKind (ownershipKind::Value v)
198  : v_ (v)
199  {
200  }
201 
202  // dataRepresentationIdKind
203 
204  dataRepresentationIdKind::Value dataRepresentationIdKind::
205  integral () const
206  {
207  return v_;
208  }
209 
210  bool
211  operator== (::dds::dataRepresentationIdKind const& a, ::dds::dataRepresentationIdKind const& b)
212  {
213  return a.v_ == b.v_;
214  }
215 
216  bool
217  operator!= (::dds::dataRepresentationIdKind const& a, ::dds::dataRepresentationIdKind const& b)
218  {
219  return a.v_ != b.v_;
220  }
221 
222  dataRepresentationIdKind::
223  dataRepresentationIdKind (dataRepresentationIdKind::Value v)
224  : v_ (v)
225  {
226  }
227 
228  // typeConsistencyKind
229 
230  typeConsistencyKind::Value typeConsistencyKind::
231  integral () const
232  {
233  return v_;
234  }
235 
236  bool
237  operator== (::dds::typeConsistencyKind const& a, ::dds::typeConsistencyKind const& b)
238  {
239  return a.v_ == b.v_;
240  }
241 
242  bool
243  operator!= (::dds::typeConsistencyKind const& a, ::dds::typeConsistencyKind const& b)
244  {
245  return a.v_ != b.v_;
246  }
247 
248  typeConsistencyKind::
249  typeConsistencyKind (typeConsistencyKind::Value v)
250  : v_ (v)
251  {
252  }
253 
254  // duration
255 
256  duration::duration ()
257  : ::XSCRT::Type ()
258  {
259  }
260 
261  duration::duration (duration const& s) :
262  ::XSCRT::Type (s)
263  , sec_ (s.sec_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.sec_) : 0)
264  , nanosec_ (s.nanosec_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.nanosec_) : 0)
265  {
266  if (sec_.get ()) sec_->container (this);
267  if (nanosec_.get ()) nanosec_->container (this);
268  }
269 
270  duration&
271  duration::operator= (duration const& s)
272  {
273  if (&s != this)
274  {
275  if (s.sec_.get ())
276  sec (*(s.sec_));
277  else
278  sec_.reset (0);
279 
280  if (s.nanosec_.get ())
281  nanosec (*(s.nanosec_));
282  else
283  nanosec_.reset (0);
284  }
285 
286  return *this;
287  }
288 
289 
290  // duration
291  bool duration::
292  sec_p () const
293  {
294  return sec_.get () != 0;
295  }
296 
297  ::XMLSchema::string<ACE_TCHAR> const& duration::
298  sec () const
299  {
300  return *sec_;
301  }
302 
303  void duration::
304  sec (::XMLSchema::string<ACE_TCHAR> const& e)
305  {
306  if (sec_.get ())
307  {
308  *sec_ = e;
309  }
310 
311  else
312  {
313  sec_ = duration::sec_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
314  sec_->container (this);
315  }
316  }
317 
318  // duration
319  bool duration::
320  nanosec_p () const
321  {
322  return nanosec_.get () != 0;
323  }
324 
325  ::XMLSchema::string<ACE_TCHAR> const& duration::
326  nanosec () const
327  {
328  return *nanosec_;
329  }
330 
331  void duration::
332  nanosec (::XMLSchema::string<ACE_TCHAR> const& e)
333  {
334  if (nanosec_.get ())
335  {
336  *nanosec_ = e;
337  }
338 
339  else
340  {
341  nanosec_ = duration::nanosec_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
342  nanosec_->container (this);
343  }
344  }
345 
346 
347  // stringSeq
348 
349  stringSeq::stringSeq ()
350  : ::XSCRT::Type ()
351  {
352  }
353 
354  stringSeq::stringSeq (stringSeq const& s) :
355  ::XSCRT::Type (s)
356  , element_ (s.element_)
357  {
358  }
359 
360  stringSeq&
361  stringSeq::operator= (stringSeq const& s)
362  {
363  if (&s != this)
364  {
365  element_ = s.element_;
366  }
367 
368  return *this;
369  }
370 
371 
372  // stringSeq
373  stringSeq::element_iterator stringSeq::
374  begin_element ()
375  {
376  return element_.begin ();
377  }
378 
379  stringSeq::element_iterator stringSeq::
380  end_element ()
381  {
382  return element_.end ();
383  }
384 
385  stringSeq::element_const_iterator stringSeq::
386  begin_element () const
387  {
388  return element_.begin ();
389  }
390 
391  stringSeq::element_const_iterator stringSeq::
392  end_element () const
393  {
394  return element_.end ();
395  }
396 
397  void stringSeq::
398  add_element (stringSeq::element_value_type const& e)
399  {
400  element_.push_back (e);
401  }
402 
403  size_t stringSeq::
404  count_element() const
405  {
406  return element_.size ();
407  }
408 
409 
410  // dataRepresentationIdSeq
411 
412  dataRepresentationIdSeq::dataRepresentationIdSeq ()
413  : ::XSCRT::Type ()
414  {
415  }
416 
417  dataRepresentationIdSeq::dataRepresentationIdSeq (dataRepresentationIdSeq const& s) :
418  ::XSCRT::Type (s)
419  , element_ (s.element_)
420  {
421  }
422 
423  dataRepresentationIdSeq&
424  dataRepresentationIdSeq::operator= (dataRepresentationIdSeq const& s)
425  {
426  if (&s != this)
427  {
428  element_ = s.element_;
429  }
430 
431  return *this;
432  }
433 
434 
435  // dataRepresentationIdSeq
436  dataRepresentationIdSeq::element_iterator dataRepresentationIdSeq::
437  begin_element ()
438  {
439  return element_.begin ();
440  }
441 
442  dataRepresentationIdSeq::element_iterator dataRepresentationIdSeq::
443  end_element ()
444  {
445  return element_.end ();
446  }
447 
448  dataRepresentationIdSeq::element_const_iterator dataRepresentationIdSeq::
449  begin_element () const
450  {
451  return element_.begin ();
452  }
453 
454  dataRepresentationIdSeq::element_const_iterator dataRepresentationIdSeq::
455  end_element () const
456  {
457  return element_.end ();
458  }
459 
460  void dataRepresentationIdSeq::
461  add_element (dataRepresentationIdSeq::element_value_type const& e)
462  {
463  element_.push_back (e);
464  }
465 
466  size_t dataRepresentationIdSeq::
467  count_element() const
468  {
469  return element_.size ();
470  }
471 
472 
473  // deadlineQosPolicy
474 
475  deadlineQosPolicy::deadlineQosPolicy ()
476  : ::XSCRT::Type ()
477  {
478  }
479 
480  deadlineQosPolicy::deadlineQosPolicy (deadlineQosPolicy const& s) :
481  ::XSCRT::Type (s)
482  , period_ (s.period_.get () ? new ::dds::duration (*s.period_) : 0)
483  {
484  if (period_.get ()) period_->container (this);
485  }
486 
487  deadlineQosPolicy&
488  deadlineQosPolicy::operator= (deadlineQosPolicy const& s)
489  {
490  if (&s != this)
491  {
492  if (s.period_.get ())
493  period (*(s.period_));
494  else
495  period_.reset (0);
496  }
497 
498  return *this;
499  }
500 
501 
502  // deadlineQosPolicy
503  bool deadlineQosPolicy::
504  period_p () const
505  {
506  return period_.get () != 0;
507  }
508 
509  ::dds::duration const& deadlineQosPolicy::
510  period () const
511  {
512  return *period_;
513  }
514 
515  void deadlineQosPolicy::
516  period (::dds::duration const& e)
517  {
518  if (period_.get ())
519  {
520  *period_ = e;
521  }
522 
523  else
524  {
525  period_ = deadlineQosPolicy::period_auto_ptr_type (new ::dds::duration (e));
526  period_->container (this);
527  }
528  }
529 
530 
531  // destinationOrderQosPolicy
532 
533  destinationOrderQosPolicy::destinationOrderQosPolicy ()
534  : ::XSCRT::Type ()
535  {
536  }
537 
538  destinationOrderQosPolicy::destinationOrderQosPolicy (destinationOrderQosPolicy const& s) :
539  ::XSCRT::Type (s)
540  , kind_ (s.kind_.get () ? new ::dds::destinationOrderKind (*s.kind_) : 0)
541  {
542  if (kind_.get ()) kind_->container (this);
543  }
544 
545  destinationOrderQosPolicy&
546  destinationOrderQosPolicy::operator= (destinationOrderQosPolicy const& s)
547  {
548  if (&s != this)
549  {
550  if (s.kind_.get ())
551  kind (*(s.kind_));
552  else
553  kind_.reset (0);
554  }
555 
556  return *this;
557  }
558 
559 
560  // destinationOrderQosPolicy
561  bool destinationOrderQosPolicy::
562  kind_p () const
563  {
564  return kind_.get () != 0;
565  }
566 
567  ::dds::destinationOrderKind const& destinationOrderQosPolicy::
568  kind () const
569  {
570  return *kind_;
571  }
572 
573  void destinationOrderQosPolicy::
574  kind (::dds::destinationOrderKind const& e)
575  {
576  if (kind_.get ())
577  {
578  *kind_ = e;
579  }
580 
581  else
582  {
583  kind_ = destinationOrderQosPolicy::kind_auto_ptr_type (new ::dds::destinationOrderKind (e));
584  kind_->container (this);
585  }
586  }
587 
588 
589  // durabilityQosPolicy
590 
591  durabilityQosPolicy::durabilityQosPolicy ()
592  : ::XSCRT::Type ()
593  {
594  }
595 
596  durabilityQosPolicy::durabilityQosPolicy (durabilityQosPolicy const& s) :
597  ::XSCRT::Type (s)
598  , kind_ (s.kind_.get () ? new ::dds::durabilityKind (*s.kind_) : 0)
599  {
600  if (kind_.get ()) kind_->container (this);
601  }
602 
603  durabilityQosPolicy&
604  durabilityQosPolicy::operator= (durabilityQosPolicy const& s)
605  {
606  if (&s != this)
607  {
608  if (s.kind_.get ())
609  kind (*(s.kind_));
610  else
611  kind_.reset (0);
612  }
613 
614  return *this;
615  }
616 
617 
618  // durabilityQosPolicy
619  bool durabilityQosPolicy::
620  kind_p () const
621  {
622  return kind_.get () != 0;
623  }
624 
625  ::dds::durabilityKind const& durabilityQosPolicy::
626  kind () const
627  {
628  return *kind_;
629  }
630 
631  void durabilityQosPolicy::
632  kind (::dds::durabilityKind const& e)
633  {
634  if (kind_.get ())
635  {
636  *kind_ = e;
637  }
638 
639  else
640  {
641  kind_ = durabilityQosPolicy::kind_auto_ptr_type (new ::dds::durabilityKind (e));
642  kind_->container (this);
643  }
644  }
645 
646 
647  // durabilityServiceQosPolicy
648 
649  durabilityServiceQosPolicy::durabilityServiceQosPolicy ()
650  : ::XSCRT::Type ()
651  {
652  }
653 
654  durabilityServiceQosPolicy::durabilityServiceQosPolicy (durabilityServiceQosPolicy const& s) :
655  ::XSCRT::Type (s)
656  , service_cleanup_delay_ (s.service_cleanup_delay_.get () ? new ::dds::duration (*s.service_cleanup_delay_) : 0)
657  , history_kind_ (s.history_kind_.get () ? new ::dds::historyKind (*s.history_kind_) : 0)
658  , history_depth_ (s.history_depth_.get () ? new ::XMLSchema::positiveInteger (*s.history_depth_) : 0)
659  , max_samples_ (s.max_samples_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.max_samples_) : 0)
660  , max_instances_ (s.max_instances_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.max_instances_) : 0)
661  , max_samples_per_instance_ (s.max_samples_per_instance_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.max_samples_per_instance_) : 0)
662  {
663  if (service_cleanup_delay_.get ()) service_cleanup_delay_->container (this);
664  if (history_kind_.get ()) history_kind_->container (this);
665  if (history_depth_.get ()) history_depth_->container (this);
666  if (max_samples_.get ()) max_samples_->container (this);
667  if (max_instances_.get ()) max_instances_->container (this);
668  if (max_samples_per_instance_.get ()) max_samples_per_instance_->container (this);
669  }
670 
671  durabilityServiceQosPolicy&
672  durabilityServiceQosPolicy::operator= (durabilityServiceQosPolicy const& s)
673  {
674  if (&s != this)
675  {
676  if (s.service_cleanup_delay_.get ())
677  service_cleanup_delay (*(s.service_cleanup_delay_));
678  else
679  service_cleanup_delay_.reset (0);
680 
681  if (s.history_kind_.get ())
682  history_kind (*(s.history_kind_));
683  else
684  history_kind_.reset (0);
685 
686  if (s.history_depth_.get ())
687  history_depth (*(s.history_depth_));
688  else
689  history_depth_.reset (0);
690 
691  if (s.max_samples_.get ())
692  max_samples (*(s.max_samples_));
693  else
694  max_samples_.reset (0);
695 
696  if (s.max_instances_.get ())
697  max_instances (*(s.max_instances_));
698  else
699  max_instances_.reset (0);
700 
701  if (s.max_samples_per_instance_.get ())
702  max_samples_per_instance (*(s.max_samples_per_instance_));
703  else
704  max_samples_per_instance_.reset (0);
705  }
706 
707  return *this;
708  }
709 
710 
711  // durabilityServiceQosPolicy
712  bool durabilityServiceQosPolicy::
713  service_cleanup_delay_p () const
714  {
715  return service_cleanup_delay_.get () != 0;
716  }
717 
718  ::dds::duration const& durabilityServiceQosPolicy::
719  service_cleanup_delay () const
720  {
721  return *service_cleanup_delay_;
722  }
723 
724  void durabilityServiceQosPolicy::
725  service_cleanup_delay (::dds::duration const& e)
726  {
727  if (service_cleanup_delay_.get ())
728  {
729  *service_cleanup_delay_ = e;
730  }
731 
732  else
733  {
734  service_cleanup_delay_ = durabilityServiceQosPolicy::service_cleanup_delay_auto_ptr_type (new ::dds::duration (e));
735  service_cleanup_delay_->container (this);
736  }
737  }
738 
739  // durabilityServiceQosPolicy
740  bool durabilityServiceQosPolicy::
741  history_kind_p () const
742  {
743  return history_kind_.get () != 0;
744  }
745 
746  ::dds::historyKind const& durabilityServiceQosPolicy::
747  history_kind () const
748  {
749  return *history_kind_;
750  }
751 
752  void durabilityServiceQosPolicy::
753  history_kind (::dds::historyKind const& e)
754  {
755  if (history_kind_.get ())
756  {
757  *history_kind_ = e;
758  }
759 
760  else
761  {
762  history_kind_ = durabilityServiceQosPolicy::history_kind_auto_ptr_type (new ::dds::historyKind (e));
763  history_kind_->container (this);
764  }
765  }
766 
767  // durabilityServiceQosPolicy
768  bool durabilityServiceQosPolicy::
769  history_depth_p () const
770  {
771  return history_depth_.get () != 0;
772  }
773 
774  ::XMLSchema::positiveInteger const& durabilityServiceQosPolicy::
775  history_depth () const
776  {
777  return *history_depth_;
778  }
779 
780  void durabilityServiceQosPolicy::
781  history_depth (::XMLSchema::positiveInteger const& e)
782  {
783  if (history_depth_.get ())
784  {
785  *history_depth_ = e;
786  }
787 
788  else
789  {
790  history_depth_ = durabilityServiceQosPolicy::history_depth_auto_ptr_type (new ::XMLSchema::positiveInteger (e));
791  history_depth_->container (this);
792  }
793  }
794 
795  // durabilityServiceQosPolicy
796  bool durabilityServiceQosPolicy::
797  max_samples_p () const
798  {
799  return max_samples_.get () != 0;
800  }
801 
802  ::XMLSchema::string<ACE_TCHAR> const& durabilityServiceQosPolicy::
803  max_samples () const
804  {
805  return *max_samples_;
806  }
807 
809  max_samples (::XMLSchema::string<ACE_TCHAR> const& e)
810  {
811  if (max_samples_.get ())
812  {
813  *max_samples_ = e;
814  }
815 
816  else
817  {
818  max_samples_ = durabilityServiceQosPolicy::max_samples_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
819  max_samples_->container (this);
820  }
821  }
822 
823  // durabilityServiceQosPolicy
824  bool durabilityServiceQosPolicy::
825  max_instances_p () const
826  {
827  return max_instances_.get () != 0;
828  }
829 
830  ::XMLSchema::string<ACE_TCHAR> const& durabilityServiceQosPolicy::
831  max_instances () const
832  {
833  return *max_instances_;
834  }
835 
836  void durabilityServiceQosPolicy::
837  max_instances (::XMLSchema::string<ACE_TCHAR> const& e)
838  {
839  if (max_instances_.get ())
840  {
841  *max_instances_ = e;
842  }
843 
844  else
845  {
846  max_instances_ = durabilityServiceQosPolicy::max_instances_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
847  max_instances_->container (this);
848  }
849  }
850 
851  // durabilityServiceQosPolicy
852  bool durabilityServiceQosPolicy::
853  max_samples_per_instance_p () const
854  {
855  return max_samples_per_instance_.get () != 0;
856  }
857 
858  ::XMLSchema::string<ACE_TCHAR> const& durabilityServiceQosPolicy::
859  max_samples_per_instance () const
860  {
861  return *max_samples_per_instance_;
862  }
863 
864  void durabilityServiceQosPolicy::
865  max_samples_per_instance (::XMLSchema::string<ACE_TCHAR> const& e)
866  {
867  if (max_samples_per_instance_.get ())
868  {
869  *max_samples_per_instance_ = e;
870  }
871 
872  else
873  {
874  max_samples_per_instance_ = durabilityServiceQosPolicy::max_samples_per_instance_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
875  max_samples_per_instance_->container (this);
876  }
877  }
878 
879 
880  // entityFactoryQosPolicy
881 
882  entityFactoryQosPolicy::entityFactoryQosPolicy ()
883  : ::XSCRT::Type ()
884  {
885  }
886 
887  entityFactoryQosPolicy::entityFactoryQosPolicy (entityFactoryQosPolicy const& s) :
888  ::XSCRT::Type (s)
889  , autoenable_created_entities_ (s.autoenable_created_entities_.get () ? new ::XMLSchema::boolean (*s.autoenable_created_entities_) : 0)
890  {
891  if (autoenable_created_entities_.get ()) autoenable_created_entities_->container (this);
892  }
893 
894  entityFactoryQosPolicy&
895  entityFactoryQosPolicy::operator= (entityFactoryQosPolicy const& s)
896  {
897  if (&s != this)
898  {
899  if (s.autoenable_created_entities_.get ())
900  autoenable_created_entities (*(s.autoenable_created_entities_));
901  else
902  autoenable_created_entities_.reset (0);
903  }
904 
905  return *this;
906  }
907 
908 
909  // entityFactoryQosPolicy
910  bool entityFactoryQosPolicy::
911  autoenable_created_entities_p () const
912  {
913  return autoenable_created_entities_.get () != 0;
914  }
915 
916  ::XMLSchema::boolean const& entityFactoryQosPolicy::
917  autoenable_created_entities () const
918  {
919  return *autoenable_created_entities_;
920  }
921 
922  void entityFactoryQosPolicy::
923  autoenable_created_entities (::XMLSchema::boolean const& e)
924  {
925  if (autoenable_created_entities_.get ())
926  {
927  *autoenable_created_entities_ = e;
928  }
929 
930  else
931  {
932  autoenable_created_entities_ = entityFactoryQosPolicy::autoenable_created_entities_auto_ptr_type (new ::XMLSchema::boolean (e));
933  autoenable_created_entities_->container (this);
934  }
935  }
936 
937 
938  // groupDataQosPolicy
939 
940  groupDataQosPolicy::groupDataQosPolicy ()
941  : ::XSCRT::Type ()
942  {
943  }
944 
945  groupDataQosPolicy::groupDataQosPolicy (groupDataQosPolicy const& s) :
946  ::XSCRT::Type (s)
947  , value_ (s.value_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.value_) : 0)
948  {
949  if (value_.get ()) value_->container (this);
950  }
951 
952  groupDataQosPolicy&
953  groupDataQosPolicy::operator= (groupDataQosPolicy const& s)
954  {
955  if (&s != this)
956  {
957  if (s.value_.get ())
958  value (*(s.value_));
959  else
960  value_.reset (0);
961  }
962 
963  return *this;
964  }
965 
966 
967  // groupDataQosPolicy
968  bool groupDataQosPolicy::
969  value_p () const
970  {
971  return value_.get () != 0;
972  }
973 
974  ::XMLSchema::string<ACE_TCHAR> const& groupDataQosPolicy::
975  value () const
976  {
977  return *value_;
978  }
979 
981  value (::XMLSchema::string<ACE_TCHAR> const& e)
982  {
983  if (value_.get ())
984  {
985  *value_ = e;
986  }
987 
988  else
989  {
990  value_ = groupDataQosPolicy::value_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
991  value_->container (this);
992  }
993  }
994 
995 
996  // historyQosPolicy
997 
998  historyQosPolicy::historyQosPolicy ()
999  : ::XSCRT::Type ()
1000  {
1001  }
1002 
1003  historyQosPolicy::historyQosPolicy (historyQosPolicy const& s) :
1004  ::XSCRT::Type (s)
1005  , kind_ (s.kind_.get () ? new ::dds::historyKind (*s.kind_) : 0)
1006  , depth_ (s.depth_.get () ? new ::XMLSchema::positiveInteger (*s.depth_) : 0)
1007  {
1008  if (kind_.get ()) kind_->container (this);
1009  if (depth_.get ()) depth_->container (this);
1010  }
1011 
1012  historyQosPolicy&
1013  historyQosPolicy::operator= (historyQosPolicy const& s)
1014  {
1015  if (&s != this)
1016  {
1017  if (s.kind_.get ())
1018  kind (*(s.kind_));
1019  else
1020  kind_.reset (0);
1021 
1022  if (s.depth_.get ())
1023  depth (*(s.depth_));
1024  else
1025  depth_.reset (0);
1026  }
1027 
1028  return *this;
1029  }
1030 
1031 
1032  // historyQosPolicy
1033  bool historyQosPolicy::
1034  kind_p () const
1035  {
1036  return kind_.get () != 0;
1037  }
1038 
1039  ::dds::historyKind const& historyQosPolicy::
1040  kind () const
1041  {
1042  return *kind_;
1043  }
1044 
1045  void historyQosPolicy::
1046  kind (::dds::historyKind const& e)
1047  {
1048  if (kind_.get ())
1049  {
1050  *kind_ = e;
1051  }
1052 
1053  else
1054  {
1055  kind_ = historyQosPolicy::kind_auto_ptr_type (new ::dds::historyKind (e));
1056  kind_->container (this);
1057  }
1058  }
1059 
1060  // historyQosPolicy
1061  bool historyQosPolicy::
1062  depth_p () const
1063  {
1064  return depth_.get () != 0;
1065  }
1066 
1067  ::XMLSchema::positiveInteger const& historyQosPolicy::
1068  depth () const
1069  {
1070  return *depth_;
1071  }
1072 
1073  void historyQosPolicy::
1074  depth (::XMLSchema::positiveInteger const& e)
1075  {
1076  if (depth_.get ())
1077  {
1078  *depth_ = e;
1079  }
1080 
1081  else
1082  {
1083  depth_ = historyQosPolicy::depth_auto_ptr_type (new ::XMLSchema::positiveInteger (e));
1084  depth_->container (this);
1085  }
1086  }
1087 
1088 
1089  // latencyBudgetQosPolicy
1090 
1091  latencyBudgetQosPolicy::latencyBudgetQosPolicy ()
1092  : ::XSCRT::Type ()
1093  {
1094  }
1095 
1096  latencyBudgetQosPolicy::latencyBudgetQosPolicy (latencyBudgetQosPolicy const& s) :
1097  ::XSCRT::Type (s)
1098  , duration_ (s.duration_.get () ? new ::dds::duration (*s.duration_) : 0)
1099  {
1100  if (duration_.get ()) duration_->container (this);
1101  }
1102 
1103  latencyBudgetQosPolicy&
1104  latencyBudgetQosPolicy::operator= (latencyBudgetQosPolicy const& s)
1105  {
1106  if (&s != this)
1107  {
1108  if (s.duration_.get ())
1109  duration (*(s.duration_));
1110  else
1111  duration_.reset (0);
1112  }
1113 
1114  return *this;
1115  }
1116 
1117 
1118  // latencyBudgetQosPolicy
1119  bool latencyBudgetQosPolicy::
1120  duration_p () const
1121  {
1122  return duration_.get () != 0;
1123  }
1124 
1125  ::dds::duration const& latencyBudgetQosPolicy::
1126  duration () const
1127  {
1128  return *duration_;
1129  }
1130 
1131  void latencyBudgetQosPolicy::
1132  duration (::dds::duration const& e)
1133  {
1134  if (duration_.get ())
1135  {
1136  *duration_ = e;
1137  }
1138 
1139  else
1140  {
1141  duration_ = latencyBudgetQosPolicy::duration_auto_ptr_type (new ::dds::duration (e));
1142  duration_->container (this);
1143  }
1144  }
1145 
1146 
1147  // lifespanQosPolicy
1148 
1149  lifespanQosPolicy::lifespanQosPolicy ()
1150  : ::XSCRT::Type ()
1151  {
1152  }
1153 
1154  lifespanQosPolicy::lifespanQosPolicy (lifespanQosPolicy const& s) :
1155  ::XSCRT::Type (s)
1156  , duration_ (s.duration_.get () ? new ::dds::duration (*s.duration_) : 0)
1157  {
1158  if (duration_.get ()) duration_->container (this);
1159  }
1160 
1161  lifespanQosPolicy&
1162  lifespanQosPolicy::operator= (lifespanQosPolicy const& s)
1163  {
1164  if (&s != this)
1165  {
1166  if (s.duration_.get ())
1167  duration (*(s.duration_));
1168  else
1169  duration_.reset (0);
1170  }
1171 
1172  return *this;
1173  }
1174 
1175 
1176  // lifespanQosPolicy
1177  bool lifespanQosPolicy::
1178  duration_p () const
1179  {
1180  return duration_.get () != 0;
1181  }
1182 
1183  ::dds::duration const& lifespanQosPolicy::
1184  duration () const
1185  {
1186  return *duration_;
1187  }
1188 
1189  void lifespanQosPolicy::
1190  duration (::dds::duration const& e)
1191  {
1192  if (duration_.get ())
1193  {
1194  *duration_ = e;
1195  }
1196 
1197  else
1198  {
1199  duration_ = lifespanQosPolicy::duration_auto_ptr_type (new ::dds::duration (e));
1200  duration_->container (this);
1201  }
1202  }
1203 
1204 
1205  // livelinessQosPolicy
1206 
1207  livelinessQosPolicy::livelinessQosPolicy ()
1208  : ::XSCRT::Type ()
1209  {
1210  }
1211 
1212  livelinessQosPolicy::livelinessQosPolicy (livelinessQosPolicy const& s) :
1213  ::XSCRT::Type (s)
1214  , kind_ (s.kind_.get () ? new ::dds::livelinessKind (*s.kind_) : 0)
1215  , lease_duration_ (s.lease_duration_.get () ? new ::dds::duration (*s.lease_duration_) : 0)
1216  {
1217  if (kind_.get ()) kind_->container (this);
1218  if (lease_duration_.get ()) lease_duration_->container (this);
1219  }
1220 
1221  livelinessQosPolicy&
1222  livelinessQosPolicy::operator= (livelinessQosPolicy const& s)
1223  {
1224  if (&s != this)
1225  {
1226  if (s.kind_.get ())
1227  kind (*(s.kind_));
1228  else
1229  kind_.reset (0);
1230 
1231  if (s.lease_duration_.get ())
1232  lease_duration (*(s.lease_duration_));
1233  else
1234  lease_duration_.reset (0);
1235  }
1236 
1237  return *this;
1238  }
1239 
1240 
1241  // livelinessQosPolicy
1242  bool livelinessQosPolicy::
1243  kind_p () const
1244  {
1245  return kind_.get () != 0;
1246  }
1247 
1248  ::dds::livelinessKind const& livelinessQosPolicy::
1249  kind () const
1250  {
1251  return *kind_;
1252  }
1253 
1254  void livelinessQosPolicy::
1255  kind (::dds::livelinessKind const& e)
1256  {
1257  if (kind_.get ())
1258  {
1259  *kind_ = e;
1260  }
1261 
1262  else
1263  {
1264  kind_ = livelinessQosPolicy::kind_auto_ptr_type (new ::dds::livelinessKind (e));
1265  kind_->container (this);
1266  }
1267  }
1268 
1269  // livelinessQosPolicy
1270  bool livelinessQosPolicy::
1271  lease_duration_p () const
1272  {
1273  return lease_duration_.get () != 0;
1274  }
1275 
1276  ::dds::duration const& livelinessQosPolicy::
1277  lease_duration () const
1278  {
1279  return *lease_duration_;
1280  }
1281 
1282  void livelinessQosPolicy::
1283  lease_duration (::dds::duration const& e)
1284  {
1285  if (lease_duration_.get ())
1286  {
1287  *lease_duration_ = e;
1288  }
1289 
1290  else
1291  {
1292  lease_duration_ = livelinessQosPolicy::lease_duration_auto_ptr_type (new ::dds::duration (e));
1293  lease_duration_->container (this);
1294  }
1295  }
1296 
1297 
1298  // ownershipQosPolicy
1299 
1300  ownershipQosPolicy::ownershipQosPolicy ()
1301  : ::XSCRT::Type ()
1302  {
1303  }
1304 
1305  ownershipQosPolicy::ownershipQosPolicy (ownershipQosPolicy const& s) :
1306  ::XSCRT::Type (s)
1307  , kind_ (s.kind_.get () ? new ::dds::ownershipKind (*s.kind_) : 0)
1308  {
1309  if (kind_.get ()) kind_->container (this);
1310  }
1311 
1312  ownershipQosPolicy&
1313  ownershipQosPolicy::operator= (ownershipQosPolicy const& s)
1314  {
1315  if (&s != this)
1316  {
1317  if (s.kind_.get ())
1318  kind (*(s.kind_));
1319  else
1320  kind_.reset (0);
1321  }
1322 
1323  return *this;
1324  }
1325 
1326 
1327  // ownershipQosPolicy
1328  bool ownershipQosPolicy::
1329  kind_p () const
1330  {
1331  return kind_.get () != 0;
1332  }
1333 
1334  ::dds::ownershipKind const& ownershipQosPolicy::
1335  kind () const
1336  {
1337  return *kind_;
1338  }
1339 
1340  void ownershipQosPolicy::
1341  kind (::dds::ownershipKind const& e)
1342  {
1343  if (kind_.get ())
1344  {
1345  *kind_ = e;
1346  }
1347 
1348  else
1349  {
1350  kind_ = ownershipQosPolicy::kind_auto_ptr_type (new ::dds::ownershipKind (e));
1351  kind_->container (this);
1352  }
1353  }
1354 
1355 
1356  // ownershipStrengthQosPolicy
1357 
1358  ownershipStrengthQosPolicy::ownershipStrengthQosPolicy ()
1359  : ::XSCRT::Type ()
1360  {
1361  }
1362 
1363  ownershipStrengthQosPolicy::ownershipStrengthQosPolicy (ownershipStrengthQosPolicy const& s) :
1364  ::XSCRT::Type (s)
1365  , value_ (s.value_.get () ? new ::XMLSchema::nonNegativeInteger (*s.value_) : 0)
1366  {
1367  if (value_.get ()) value_->container (this);
1368  }
1369 
1370  ownershipStrengthQosPolicy&
1371  ownershipStrengthQosPolicy::operator= (ownershipStrengthQosPolicy const& s)
1372  {
1373  if (&s != this)
1374  {
1375  if (s.value_.get ())
1376  value (*(s.value_));
1377  else
1378  value_.reset (0);
1379  }
1380 
1381  return *this;
1382  }
1383 
1384 
1385  // ownershipStrengthQosPolicy
1386  bool ownershipStrengthQosPolicy::
1387  value_p () const
1388  {
1389  return value_.get () != 0;
1390  }
1391 
1392  ::XMLSchema::nonNegativeInteger const& ownershipStrengthQosPolicy::
1393  value () const
1394  {
1395  return *value_;
1396  }
1397 
1399  value (::XMLSchema::nonNegativeInteger const& e)
1400  {
1401  if (value_.get ())
1402  {
1403  *value_ = e;
1404  }
1405 
1406  else
1407  {
1408  value_ = ownershipStrengthQosPolicy::value_auto_ptr_type (new ::XMLSchema::nonNegativeInteger (e));
1409  value_->container (this);
1410  }
1411  }
1412 
1413 
1414  // partitionQosPolicy
1415 
1416  partitionQosPolicy::partitionQosPolicy ()
1417  : ::XSCRT::Type ()
1418  {
1419  }
1420 
1421  partitionQosPolicy::partitionQosPolicy (partitionQosPolicy const& s) :
1422  ::XSCRT::Type (s)
1423  , name_ (s.name_.get () ? new ::dds::stringSeq (*s.name_) : 0)
1424  {
1425  if (name_.get ()) name_->container (this);
1426  }
1427 
1428  partitionQosPolicy&
1429  partitionQosPolicy::operator= (partitionQosPolicy const& s)
1430  {
1431  if (&s != this)
1432  {
1433  if (s.name_.get ())
1434  name (*(s.name_));
1435  else
1436  name_.reset (0);
1437  }
1438 
1439  return *this;
1440  }
1441 
1442 
1443  // partitionQosPolicy
1444  bool partitionQosPolicy::
1445  name_p () const
1446  {
1447  return name_.get () != 0;
1448  }
1449 
1450  ::dds::stringSeq const& partitionQosPolicy::
1451  name () const
1452  {
1453  return *name_;
1454  }
1455 
1457  name (::dds::stringSeq const& e)
1458  {
1459  if (name_.get ())
1460  {
1461  *name_ = e;
1462  }
1463 
1464  else
1465  {
1466  name_ = partitionQosPolicy::name_auto_ptr_type (new ::dds::stringSeq (e));
1467  name_->container (this);
1468  }
1469  }
1470 
1471 
1472  // presentationQosPolicy
1473 
1474  presentationQosPolicy::presentationQosPolicy ()
1475  : ::XSCRT::Type ()
1476  {
1477  }
1478 
1479  presentationQosPolicy::presentationQosPolicy (presentationQosPolicy const& s) :
1480  ::XSCRT::Type (s)
1481  , access_scope_ (s.access_scope_.get () ? new ::dds::presentationAccessScopeKind (*s.access_scope_) : 0)
1482  , coherent_access_ (s.coherent_access_.get () ? new ::XMLSchema::boolean (*s.coherent_access_) : 0)
1483  , ordered_access_ (s.ordered_access_.get () ? new ::XMLSchema::boolean (*s.ordered_access_) : 0)
1484  {
1485  if (access_scope_.get ()) access_scope_->container (this);
1486  if (coherent_access_.get ()) coherent_access_->container (this);
1487  if (ordered_access_.get ()) ordered_access_->container (this);
1488  }
1489 
1490  presentationQosPolicy&
1491  presentationQosPolicy::operator= (presentationQosPolicy const& s)
1492  {
1493  if (&s != this)
1494  {
1495  if (s.access_scope_.get ())
1496  access_scope (*(s.access_scope_));
1497  else
1498  access_scope_.reset (0);
1499 
1500  if (s.coherent_access_.get ())
1501  coherent_access (*(s.coherent_access_));
1502  else
1503  coherent_access_.reset (0);
1504 
1505  if (s.ordered_access_.get ())
1506  ordered_access (*(s.ordered_access_));
1507  else
1508  ordered_access_.reset (0);
1509  }
1510 
1511  return *this;
1512  }
1513 
1514 
1515  // presentationQosPolicy
1516  bool presentationQosPolicy::
1517  access_scope_p () const
1518  {
1519  return access_scope_.get () != 0;
1520  }
1521 
1522  ::dds::presentationAccessScopeKind const& presentationQosPolicy::
1523  access_scope () const
1524  {
1525  return *access_scope_;
1526  }
1527 
1528  void presentationQosPolicy::
1529  access_scope (::dds::presentationAccessScopeKind const& e)
1530  {
1531  if (access_scope_.get ())
1532  {
1533  *access_scope_ = e;
1534  }
1535 
1536  else
1537  {
1538  access_scope_ = presentationQosPolicy::access_scope_auto_ptr_type (new ::dds::presentationAccessScopeKind (e));
1539  access_scope_->container (this);
1540  }
1541  }
1542 
1543  // presentationQosPolicy
1544  bool presentationQosPolicy::
1545  coherent_access_p () const
1546  {
1547  return coherent_access_.get () != 0;
1548  }
1549 
1550  ::XMLSchema::boolean const& presentationQosPolicy::
1551  coherent_access () const
1552  {
1553  return *coherent_access_;
1554  }
1555 
1556  void presentationQosPolicy::
1557  coherent_access (::XMLSchema::boolean const& e)
1558  {
1559  if (coherent_access_.get ())
1560  {
1561  *coherent_access_ = e;
1562  }
1563 
1564  else
1565  {
1566  coherent_access_ = presentationQosPolicy::coherent_access_auto_ptr_type (new ::XMLSchema::boolean (e));
1567  coherent_access_->container (this);
1568  }
1569  }
1570 
1571  // presentationQosPolicy
1572  bool presentationQosPolicy::
1573  ordered_access_p () const
1574  {
1575  return ordered_access_.get () != 0;
1576  }
1577 
1578  ::XMLSchema::boolean const& presentationQosPolicy::
1579  ordered_access () const
1580  {
1581  return *ordered_access_;
1582  }
1583 
1584  void presentationQosPolicy::
1585  ordered_access (::XMLSchema::boolean const& e)
1586  {
1587  if (ordered_access_.get ())
1588  {
1589  *ordered_access_ = e;
1590  }
1591 
1592  else
1593  {
1594  ordered_access_ = presentationQosPolicy::ordered_access_auto_ptr_type (new ::XMLSchema::boolean (e));
1595  ordered_access_->container (this);
1596  }
1597  }
1598 
1599 
1600  // readerDataLifecycleQosPolicy
1601 
1602  readerDataLifecycleQosPolicy::readerDataLifecycleQosPolicy ()
1603  : ::XSCRT::Type ()
1604  {
1605  }
1606 
1607  readerDataLifecycleQosPolicy::readerDataLifecycleQosPolicy (readerDataLifecycleQosPolicy const& s) :
1608  ::XSCRT::Type (s)
1609  , autopurge_nowriter_samples_delay_ (s.autopurge_nowriter_samples_delay_.get () ? new ::dds::duration (*s.autopurge_nowriter_samples_delay_) : 0)
1610  , autopurge_disposed_samples_delay_ (s.autopurge_disposed_samples_delay_.get () ? new ::dds::duration (*s.autopurge_disposed_samples_delay_) : 0)
1611  {
1612  if (autopurge_nowriter_samples_delay_.get ()) autopurge_nowriter_samples_delay_->container (this);
1613  if (autopurge_disposed_samples_delay_.get ()) autopurge_disposed_samples_delay_->container (this);
1614  }
1615 
1616  readerDataLifecycleQosPolicy&
1617  readerDataLifecycleQosPolicy::operator= (readerDataLifecycleQosPolicy const& s)
1618  {
1619  if (&s != this)
1620  {
1621  if (s.autopurge_nowriter_samples_delay_.get ())
1622  autopurge_nowriter_samples_delay (*(s.autopurge_nowriter_samples_delay_));
1623  else
1624  autopurge_nowriter_samples_delay_.reset (0);
1625 
1626  if (s.autopurge_disposed_samples_delay_.get ())
1627  autopurge_disposed_samples_delay (*(s.autopurge_disposed_samples_delay_));
1628  else
1629  autopurge_disposed_samples_delay_.reset (0);
1630  }
1631 
1632  return *this;
1633  }
1634 
1635 
1636  // readerDataLifecycleQosPolicy
1637  bool readerDataLifecycleQosPolicy::
1638  autopurge_nowriter_samples_delay_p () const
1639  {
1640  return autopurge_nowriter_samples_delay_.get () != 0;
1641  }
1642 
1643  ::dds::duration const& readerDataLifecycleQosPolicy::
1644  autopurge_nowriter_samples_delay () const
1645  {
1646  return *autopurge_nowriter_samples_delay_;
1647  }
1648 
1649  void readerDataLifecycleQosPolicy::
1650  autopurge_nowriter_samples_delay (::dds::duration const& e)
1651  {
1652  if (autopurge_nowriter_samples_delay_.get ())
1653  {
1654  *autopurge_nowriter_samples_delay_ = e;
1655  }
1656 
1657  else
1658  {
1659  autopurge_nowriter_samples_delay_ = readerDataLifecycleQosPolicy::autopurge_nowriter_samples_delay_auto_ptr_type (new ::dds::duration (e));
1660  autopurge_nowriter_samples_delay_->container (this);
1661  }
1662  }
1663 
1664  // readerDataLifecycleQosPolicy
1665  bool readerDataLifecycleQosPolicy::
1666  autopurge_disposed_samples_delay_p () const
1667  {
1668  return autopurge_disposed_samples_delay_.get () != 0;
1669  }
1670 
1671  ::dds::duration const& readerDataLifecycleQosPolicy::
1672  autopurge_disposed_samples_delay () const
1673  {
1674  return *autopurge_disposed_samples_delay_;
1675  }
1676 
1677  void readerDataLifecycleQosPolicy::
1678  autopurge_disposed_samples_delay (::dds::duration const& e)
1679  {
1680  if (autopurge_disposed_samples_delay_.get ())
1681  {
1682  *autopurge_disposed_samples_delay_ = e;
1683  }
1684 
1685  else
1686  {
1687  autopurge_disposed_samples_delay_ = readerDataLifecycleQosPolicy::autopurge_disposed_samples_delay_auto_ptr_type (new ::dds::duration (e));
1688  autopurge_disposed_samples_delay_->container (this);
1689  }
1690  }
1691 
1692 
1693  // reliabilityQosPolicy
1694 
1695  reliabilityQosPolicy::reliabilityQosPolicy ()
1696  : ::XSCRT::Type ()
1697  {
1698  }
1699 
1700  reliabilityQosPolicy::reliabilityQosPolicy (reliabilityQosPolicy const& s) :
1701  ::XSCRT::Type (s)
1702  , kind_ (s.kind_.get () ? new ::dds::reliabilityKind (*s.kind_) : 0)
1703  , max_blocking_time_ (s.max_blocking_time_.get () ? new ::dds::duration (*s.max_blocking_time_) : 0)
1704  {
1705  if (kind_.get ()) kind_->container (this);
1706  if (max_blocking_time_.get ()) max_blocking_time_->container (this);
1707  }
1708 
1709  reliabilityQosPolicy&
1710  reliabilityQosPolicy::operator= (reliabilityQosPolicy const& s)
1711  {
1712  if (&s != this)
1713  {
1714  if (s.kind_.get ())
1715  kind (*(s.kind_));
1716  else
1717  kind_.reset (0);
1718 
1719  if (s.max_blocking_time_.get ())
1720  max_blocking_time (*(s.max_blocking_time_));
1721  else
1722  max_blocking_time_.reset (0);
1723  }
1724 
1725  return *this;
1726  }
1727 
1728 
1729  // reliabilityQosPolicy
1730  bool reliabilityQosPolicy::
1731  kind_p () const
1732  {
1733  return kind_.get () != 0;
1734  }
1735 
1736  ::dds::reliabilityKind const& reliabilityQosPolicy::
1737  kind () const
1738  {
1739  return *kind_;
1740  }
1741 
1742  void reliabilityQosPolicy::
1743  kind (::dds::reliabilityKind const& e)
1744  {
1745  if (kind_.get ())
1746  {
1747  *kind_ = e;
1748  }
1749 
1750  else
1751  {
1752  kind_ = reliabilityQosPolicy::kind_auto_ptr_type (new ::dds::reliabilityKind (e));
1753  kind_->container (this);
1754  }
1755  }
1756 
1757  // reliabilityQosPolicy
1758  bool reliabilityQosPolicy::
1759  max_blocking_time_p () const
1760  {
1761  return max_blocking_time_.get () != 0;
1762  }
1763 
1764  ::dds::duration const& reliabilityQosPolicy::
1765  max_blocking_time () const
1766  {
1767  return *max_blocking_time_;
1768  }
1769 
1770  void reliabilityQosPolicy::
1771  max_blocking_time (::dds::duration const& e)
1772  {
1773  if (max_blocking_time_.get ())
1774  {
1775  *max_blocking_time_ = e;
1776  }
1777 
1778  else
1779  {
1780  max_blocking_time_ = reliabilityQosPolicy::max_blocking_time_auto_ptr_type (new ::dds::duration (e));
1781  max_blocking_time_->container (this);
1782  }
1783  }
1784 
1785 
1786  // resourceLimitsQosPolicy
1787 
1788  resourceLimitsQosPolicy::resourceLimitsQosPolicy ()
1789  : ::XSCRT::Type ()
1790  {
1791  }
1792 
1793  resourceLimitsQosPolicy::resourceLimitsQosPolicy (resourceLimitsQosPolicy const& s) :
1794  ::XSCRT::Type (s)
1795  , max_samples_ (s.max_samples_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.max_samples_) : 0)
1796  , max_instances_ (s.max_instances_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.max_instances_) : 0)
1797  , max_samples_per_instance_ (s.max_samples_per_instance_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.max_samples_per_instance_) : 0)
1798  , initial_samples_ (s.initial_samples_.get () ? new ::XMLSchema::positiveInteger (*s.initial_samples_) : 0)
1799  , initial_instances_ (s.initial_instances_.get () ? new ::XMLSchema::positiveInteger (*s.initial_instances_) : 0)
1800  {
1801  if (max_samples_.get ()) max_samples_->container (this);
1802  if (max_instances_.get ()) max_instances_->container (this);
1803  if (max_samples_per_instance_.get ()) max_samples_per_instance_->container (this);
1804  if (initial_samples_.get ()) initial_samples_->container (this);
1805  if (initial_instances_.get ()) initial_instances_->container (this);
1806  }
1807 
1808  resourceLimitsQosPolicy&
1809  resourceLimitsQosPolicy::operator= (resourceLimitsQosPolicy const& s)
1810  {
1811  if (&s != this)
1812  {
1813  if (s.max_samples_.get ())
1814  max_samples (*(s.max_samples_));
1815  else
1816  max_samples_.reset (0);
1817 
1818  if (s.max_instances_.get ())
1819  max_instances (*(s.max_instances_));
1820  else
1821  max_instances_.reset (0);
1822 
1823  if (s.max_samples_per_instance_.get ())
1824  max_samples_per_instance (*(s.max_samples_per_instance_));
1825  else
1826  max_samples_per_instance_.reset (0);
1827 
1828  if (s.initial_samples_.get ())
1829  initial_samples (*(s.initial_samples_));
1830  else
1831  initial_samples_.reset (0);
1832 
1833  if (s.initial_instances_.get ())
1834  initial_instances (*(s.initial_instances_));
1835  else
1836  initial_instances_.reset (0);
1837  }
1838 
1839  return *this;
1840  }
1841 
1842 
1843  // resourceLimitsQosPolicy
1844  bool resourceLimitsQosPolicy::
1845  max_samples_p () const
1846  {
1847  return max_samples_.get () != 0;
1848  }
1849 
1850  ::XMLSchema::string<ACE_TCHAR> const& resourceLimitsQosPolicy::
1851  max_samples () const
1852  {
1853  return *max_samples_;
1854  }
1855 
1857  max_samples (::XMLSchema::string<ACE_TCHAR> const& e)
1858  {
1859  if (max_samples_.get ())
1860  {
1861  *max_samples_ = e;
1862  }
1863 
1864  else
1865  {
1866  max_samples_ = resourceLimitsQosPolicy::max_samples_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
1867  max_samples_->container (this);
1868  }
1869  }
1870 
1871  // resourceLimitsQosPolicy
1872  bool resourceLimitsQosPolicy::
1873  max_instances_p () const
1874  {
1875  return max_instances_.get () != 0;
1876  }
1877 
1878  ::XMLSchema::string<ACE_TCHAR> const& resourceLimitsQosPolicy::
1879  max_instances () const
1880  {
1881  return *max_instances_;
1882  }
1883 
1884  void resourceLimitsQosPolicy::
1885  max_instances (::XMLSchema::string<ACE_TCHAR> const& e)
1886  {
1887  if (max_instances_.get ())
1888  {
1889  *max_instances_ = e;
1890  }
1891 
1892  else
1893  {
1894  max_instances_ = resourceLimitsQosPolicy::max_instances_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
1895  max_instances_->container (this);
1896  }
1897  }
1898 
1899  // resourceLimitsQosPolicy
1900  bool resourceLimitsQosPolicy::
1901  max_samples_per_instance_p () const
1902  {
1903  return max_samples_per_instance_.get () != 0;
1904  }
1905 
1906  ::XMLSchema::string<ACE_TCHAR> const& resourceLimitsQosPolicy::
1907  max_samples_per_instance () const
1908  {
1909  return *max_samples_per_instance_;
1910  }
1911 
1912  void resourceLimitsQosPolicy::
1913  max_samples_per_instance (::XMLSchema::string<ACE_TCHAR> const& e)
1914  {
1915  if (max_samples_per_instance_.get ())
1916  {
1917  *max_samples_per_instance_ = e;
1918  }
1919 
1920  else
1921  {
1922  max_samples_per_instance_ = resourceLimitsQosPolicy::max_samples_per_instance_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
1923  max_samples_per_instance_->container (this);
1924  }
1925  }
1926 
1927  // resourceLimitsQosPolicy
1928  bool resourceLimitsQosPolicy::
1929  initial_samples_p () const
1930  {
1931  return initial_samples_.get () != 0;
1932  }
1933 
1934  ::XMLSchema::positiveInteger const& resourceLimitsQosPolicy::
1935  initial_samples () const
1936  {
1937  return *initial_samples_;
1938  }
1939 
1940  void resourceLimitsQosPolicy::
1941  initial_samples (::XMLSchema::positiveInteger const& e)
1942  {
1943  if (initial_samples_.get ())
1944  {
1945  *initial_samples_ = e;
1946  }
1947 
1948  else
1949  {
1950  initial_samples_ = resourceLimitsQosPolicy::initial_samples_auto_ptr_type (new ::XMLSchema::positiveInteger (e));
1951  initial_samples_->container (this);
1952  }
1953  }
1954 
1955  // resourceLimitsQosPolicy
1956  bool resourceLimitsQosPolicy::
1957  initial_instances_p () const
1958  {
1959  return initial_instances_.get () != 0;
1960  }
1961 
1962  ::XMLSchema::positiveInteger const& resourceLimitsQosPolicy::
1963  initial_instances () const
1964  {
1965  return *initial_instances_;
1966  }
1967 
1968  void resourceLimitsQosPolicy::
1969  initial_instances (::XMLSchema::positiveInteger const& e)
1970  {
1971  if (initial_instances_.get ())
1972  {
1973  *initial_instances_ = e;
1974  }
1975 
1976  else
1977  {
1978  initial_instances_ = resourceLimitsQosPolicy::initial_instances_auto_ptr_type (new ::XMLSchema::positiveInteger (e));
1979  initial_instances_->container (this);
1980  }
1981  }
1982 
1983 
1984  // timeBasedFilterQosPolicy
1985 
1986  timeBasedFilterQosPolicy::timeBasedFilterQosPolicy ()
1987  : ::XSCRT::Type ()
1988  {
1989  }
1990 
1991  timeBasedFilterQosPolicy::timeBasedFilterQosPolicy (timeBasedFilterQosPolicy const& s) :
1992  ::XSCRT::Type (s)
1993  , minimum_separation_ (s.minimum_separation_.get () ? new ::dds::duration (*s.minimum_separation_) : 0)
1994  {
1995  if (minimum_separation_.get ()) minimum_separation_->container (this);
1996  }
1997 
1998  timeBasedFilterQosPolicy&
1999  timeBasedFilterQosPolicy::operator= (timeBasedFilterQosPolicy const& s)
2000  {
2001  if (&s != this)
2002  {
2003  if (s.minimum_separation_.get ())
2004  minimum_separation (*(s.minimum_separation_));
2005  else
2006  minimum_separation_.reset (0);
2007  }
2008 
2009  return *this;
2010  }
2011 
2012 
2013  // timeBasedFilterQosPolicy
2014  bool timeBasedFilterQosPolicy::
2015  minimum_separation_p () const
2016  {
2017  return minimum_separation_.get () != 0;
2018  }
2019 
2020  ::dds::duration const& timeBasedFilterQosPolicy::
2021  minimum_separation () const
2022  {
2023  return *minimum_separation_;
2024  }
2025 
2026  void timeBasedFilterQosPolicy::
2027  minimum_separation (::dds::duration const& e)
2028  {
2029  if (minimum_separation_.get ())
2030  {
2031  *minimum_separation_ = e;
2032  }
2033 
2034  else
2035  {
2036  minimum_separation_ = timeBasedFilterQosPolicy::minimum_separation_auto_ptr_type (new ::dds::duration (e));
2037  minimum_separation_->container (this);
2038  }
2039  }
2040 
2041 
2042  // topicDataQosPolicy
2043 
2044  topicDataQosPolicy::topicDataQosPolicy ()
2045  : ::XSCRT::Type ()
2046  {
2047  }
2048 
2049  topicDataQosPolicy::topicDataQosPolicy (topicDataQosPolicy const& s) :
2050  ::XSCRT::Type (s)
2051  , value_ (s.value_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.value_) : 0)
2052  {
2053  if (value_.get ()) value_->container (this);
2054  }
2055 
2056  topicDataQosPolicy&
2057  topicDataQosPolicy::operator= (topicDataQosPolicy const& s)
2058  {
2059  if (&s != this)
2060  {
2061  if (s.value_.get ())
2062  value (*(s.value_));
2063  else
2064  value_.reset (0);
2065  }
2066 
2067  return *this;
2068  }
2069 
2070 
2071  // topicDataQosPolicy
2072  bool topicDataQosPolicy::
2073  value_p () const
2074  {
2075  return value_.get () != 0;
2076  }
2077 
2078  ::XMLSchema::string<ACE_TCHAR> const& topicDataQosPolicy::
2079  value () const
2080  {
2081  return *value_;
2082  }
2083 
2085  value (::XMLSchema::string<ACE_TCHAR> const& e)
2086  {
2087  if (value_.get ())
2088  {
2089  *value_ = e;
2090  }
2091 
2092  else
2093  {
2094  value_ = topicDataQosPolicy::value_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
2095  value_->container (this);
2096  }
2097  }
2098 
2099 
2100  // transportPriorityQosPolicy
2101 
2102  transportPriorityQosPolicy::transportPriorityQosPolicy ()
2103  : ::XSCRT::Type ()
2104  {
2105  }
2106 
2107  transportPriorityQosPolicy::transportPriorityQosPolicy (transportPriorityQosPolicy const& s) :
2108  ::XSCRT::Type (s)
2109  , value_ (s.value_.get () ? new ::XMLSchema::nonNegativeInteger (*s.value_) : 0)
2110  {
2111  if (value_.get ()) value_->container (this);
2112  }
2113 
2114  transportPriorityQosPolicy&
2115  transportPriorityQosPolicy::operator= (transportPriorityQosPolicy const& s)
2116  {
2117  if (&s != this)
2118  {
2119  if (s.value_.get ())
2120  value (*(s.value_));
2121  else
2122  value_.reset (0);
2123  }
2124 
2125  return *this;
2126  }
2127 
2128 
2129  // transportPriorityQosPolicy
2130  bool transportPriorityQosPolicy::
2131  value_p () const
2132  {
2133  return value_.get () != 0;
2134  }
2135 
2136  ::XMLSchema::nonNegativeInteger const& transportPriorityQosPolicy::
2137  value () const
2138  {
2139  return *value_;
2140  }
2141 
2143  value (::XMLSchema::nonNegativeInteger const& e)
2144  {
2145  if (value_.get ())
2146  {
2147  *value_ = e;
2148  }
2149 
2150  else
2151  {
2152  value_ = transportPriorityQosPolicy::value_auto_ptr_type (new ::XMLSchema::nonNegativeInteger (e));
2153  value_->container (this);
2154  }
2155  }
2156 
2157 
2158  // userDataQosPolicy
2159 
2160  userDataQosPolicy::userDataQosPolicy ()
2161  : ::XSCRT::Type ()
2162  {
2163  }
2164 
2165  userDataQosPolicy::userDataQosPolicy (userDataQosPolicy const& s) :
2166  ::XSCRT::Type (s)
2167  , value_ (s.value_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.value_) : 0)
2168  {
2169  if (value_.get ()) value_->container (this);
2170  }
2171 
2172  userDataQosPolicy&
2173  userDataQosPolicy::operator= (userDataQosPolicy const& s)
2174  {
2175  if (&s != this)
2176  {
2177  if (s.value_.get ())
2178  value (*(s.value_));
2179  else
2180  value_.reset (0);
2181  }
2182 
2183  return *this;
2184  }
2185 
2186 
2187  // userDataQosPolicy
2188  bool userDataQosPolicy::
2189  value_p () const
2190  {
2191  return value_.get () != 0;
2192  }
2193 
2194  ::XMLSchema::string<ACE_TCHAR> const& userDataQosPolicy::
2195  value () const
2196  {
2197  return *value_;
2198  }
2199 
2200  void userDataQosPolicy::
2201  value (::XMLSchema::string<ACE_TCHAR> const& e)
2202  {
2203  if (value_.get ())
2204  {
2205  *value_ = e;
2206  }
2207 
2208  else
2209  {
2210  value_ = userDataQosPolicy::value_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
2211  value_->container (this);
2212  }
2213  }
2214 
2215 
2216  // writerDataLifecycleQosPolicy
2217 
2218  writerDataLifecycleQosPolicy::writerDataLifecycleQosPolicy ()
2219  : ::XSCRT::Type ()
2220  {
2221  }
2222 
2223  writerDataLifecycleQosPolicy::writerDataLifecycleQosPolicy (writerDataLifecycleQosPolicy const& s) :
2224  ::XSCRT::Type (s)
2225  , autodispose_unregistered_instances_ (s.autodispose_unregistered_instances_.get () ? new ::XMLSchema::boolean (*s.autodispose_unregistered_instances_) : 0)
2226  {
2227  if (autodispose_unregistered_instances_.get ()) autodispose_unregistered_instances_->container (this);
2228  }
2229 
2230  writerDataLifecycleQosPolicy&
2231  writerDataLifecycleQosPolicy::operator= (writerDataLifecycleQosPolicy const& s)
2232  {
2233  if (&s != this)
2234  {
2235  if (s.autodispose_unregistered_instances_.get ())
2236  autodispose_unregistered_instances (*(s.autodispose_unregistered_instances_));
2237  else
2238  autodispose_unregistered_instances_.reset (0);
2239  }
2240 
2241  return *this;
2242  }
2243 
2244 
2245  // writerDataLifecycleQosPolicy
2246  bool writerDataLifecycleQosPolicy::
2247  autodispose_unregistered_instances_p () const
2248  {
2249  return autodispose_unregistered_instances_.get () != 0;
2250  }
2251 
2252  ::XMLSchema::boolean const& writerDataLifecycleQosPolicy::
2253  autodispose_unregistered_instances () const
2254  {
2255  return *autodispose_unregistered_instances_;
2256  }
2257 
2258  void writerDataLifecycleQosPolicy::
2259  autodispose_unregistered_instances (::XMLSchema::boolean const& e)
2260  {
2261  if (autodispose_unregistered_instances_.get ())
2262  {
2263  *autodispose_unregistered_instances_ = e;
2264  }
2265 
2266  else
2267  {
2268  autodispose_unregistered_instances_ = writerDataLifecycleQosPolicy::autodispose_unregistered_instances_auto_ptr_type (new ::XMLSchema::boolean (e));
2269  autodispose_unregistered_instances_->container (this);
2270  }
2271  }
2272 
2273 
2274  // dataRepresentationQosPolicy
2275 
2276  dataRepresentationQosPolicy::dataRepresentationQosPolicy ()
2277  : ::XSCRT::Type ()
2278  {
2279  }
2280 
2281  dataRepresentationQosPolicy::dataRepresentationQosPolicy (dataRepresentationQosPolicy const& s) :
2282  ::XSCRT::Type (s)
2283  , value_ (s.value_.get () ? new ::dds::dataRepresentationIdSeq (*s.value_) : 0)
2284  {
2285  if (value_.get ()) value_->container (this);
2286  }
2287 
2288  dataRepresentationQosPolicy&
2289  dataRepresentationQosPolicy::operator= (dataRepresentationQosPolicy const& s)
2290  {
2291  if (&s != this)
2292  {
2293  if (s.value_.get ())
2294  value (*(s.value_));
2295  else
2296  value_.reset (0);
2297  }
2298 
2299  return *this;
2300  }
2301 
2302 
2303  // dataRepresentationQosPolicy
2304  bool dataRepresentationQosPolicy::
2305  value_p () const
2306  {
2307  return value_.get () != 0;
2308  }
2309 
2310  ::dds::dataRepresentationIdSeq const& dataRepresentationQosPolicy::
2311  value () const
2312  {
2313  return *value_;
2314  }
2315 
2317  value (::dds::dataRepresentationIdSeq const& e)
2318  {
2319  if (value_.get ())
2320  {
2321  *value_ = e;
2322  }
2323 
2324  else
2325  {
2326  value_ = dataRepresentationQosPolicy::value_auto_ptr_type (new ::dds::dataRepresentationIdSeq (e));
2327  value_->container (this);
2328  }
2329  }
2330 
2331 
2332  // typeConsistencyEnforcementQosPolicy
2333 
2334  typeConsistencyEnforcementQosPolicy::typeConsistencyEnforcementQosPolicy ()
2335  : ::XSCRT::Type ()
2336  {
2337  }
2338 
2339  typeConsistencyEnforcementQosPolicy::typeConsistencyEnforcementQosPolicy (typeConsistencyEnforcementQosPolicy const& s) :
2340  ::XSCRT::Type (s)
2341  , kind_ (s.kind_.get () ? new ::dds::typeConsistencyKind (*s.kind_) : 0)
2342  , ignore_sequence_bounds_ (s.ignore_sequence_bounds_.get () ? new ::XMLSchema::boolean (*s.ignore_sequence_bounds_) : 0)
2343  , ignore_string_bounds_ (s.ignore_string_bounds_.get () ? new ::XMLSchema::boolean (*s.ignore_string_bounds_) : 0)
2344  , ignore_member_names_ (s.ignore_member_names_.get () ? new ::XMLSchema::boolean (*s.ignore_member_names_) : 0)
2345  , prevent_type_widening_ (s.prevent_type_widening_.get () ? new ::XMLSchema::boolean (*s.prevent_type_widening_) : 0)
2346  , force_type_validation_ (s.force_type_validation_.get () ? new ::XMLSchema::boolean (*s.force_type_validation_) : 0)
2347  {
2348  if (kind_.get ()) kind_->container (this);
2349  if (ignore_sequence_bounds_.get ()) ignore_sequence_bounds_->container (this);
2350  if (ignore_string_bounds_.get ()) ignore_string_bounds_->container (this);
2351  if (ignore_member_names_.get ()) ignore_member_names_->container (this);
2352  if (prevent_type_widening_.get ()) prevent_type_widening_->container (this);
2353  if (force_type_validation_.get ()) force_type_validation_->container (this);
2354  }
2355 
2356  typeConsistencyEnforcementQosPolicy&
2357  typeConsistencyEnforcementQosPolicy::operator= (typeConsistencyEnforcementQosPolicy const& s)
2358  {
2359  if (&s != this)
2360  {
2361  if (s.kind_.get ())
2362  kind (*(s.kind_));
2363  else
2364  kind_.reset (0);
2365 
2366  if (s.ignore_sequence_bounds_.get ())
2367  ignore_sequence_bounds (*(s.ignore_sequence_bounds_));
2368  else
2369  ignore_sequence_bounds_.reset (0);
2370 
2371  if (s.ignore_string_bounds_.get ())
2372  ignore_string_bounds (*(s.ignore_string_bounds_));
2373  else
2374  ignore_string_bounds_.reset (0);
2375 
2376  if (s.ignore_member_names_.get ())
2377  ignore_member_names (*(s.ignore_member_names_));
2378  else
2379  ignore_member_names_.reset (0);
2380 
2381  if (s.prevent_type_widening_.get ())
2382  prevent_type_widening (*(s.prevent_type_widening_));
2383  else
2384  prevent_type_widening_.reset (0);
2385 
2386  if (s.force_type_validation_.get ())
2387  force_type_validation (*(s.force_type_validation_));
2388  else
2389  force_type_validation_.reset (0);
2390  }
2391 
2392  return *this;
2393  }
2394 
2395 
2396  // typeConsistencyEnforcementQosPolicy
2397  bool typeConsistencyEnforcementQosPolicy::
2398  kind_p () const
2399  {
2400  return kind_.get () != 0;
2401  }
2402 
2403  ::dds::typeConsistencyKind const& typeConsistencyEnforcementQosPolicy::
2404  kind () const
2405  {
2406  return *kind_;
2407  }
2408 
2409  void typeConsistencyEnforcementQosPolicy::
2410  kind (::dds::typeConsistencyKind const& e)
2411  {
2412  if (kind_.get ())
2413  {
2414  *kind_ = e;
2415  }
2416 
2417  else
2418  {
2419  kind_ = typeConsistencyEnforcementQosPolicy::kind_auto_ptr_type (new ::dds::typeConsistencyKind (e));
2420  kind_->container (this);
2421  }
2422  }
2423 
2424  // typeConsistencyEnforcementQosPolicy
2425  bool typeConsistencyEnforcementQosPolicy::
2426  ignore_sequence_bounds_p () const
2427  {
2428  return ignore_sequence_bounds_.get () != 0;
2429  }
2430 
2431  ::XMLSchema::boolean const& typeConsistencyEnforcementQosPolicy::
2432  ignore_sequence_bounds () const
2433  {
2434  return *ignore_sequence_bounds_;
2435  }
2436 
2437  void typeConsistencyEnforcementQosPolicy::
2438  ignore_sequence_bounds (::XMLSchema::boolean const& e)
2439  {
2440  if (ignore_sequence_bounds_.get ())
2441  {
2442  *ignore_sequence_bounds_ = e;
2443  }
2444 
2445  else
2446  {
2447  ignore_sequence_bounds_ = typeConsistencyEnforcementQosPolicy::ignore_sequence_bounds_auto_ptr_type (new ::XMLSchema::boolean (e));
2448  ignore_sequence_bounds_->container (this);
2449  }
2450  }
2451 
2452  // typeConsistencyEnforcementQosPolicy
2453  bool typeConsistencyEnforcementQosPolicy::
2454  ignore_string_bounds_p () const
2455  {
2456  return ignore_string_bounds_.get () != 0;
2457  }
2458 
2459  ::XMLSchema::boolean const& typeConsistencyEnforcementQosPolicy::
2460  ignore_string_bounds () const
2461  {
2462  return *ignore_string_bounds_;
2463  }
2464 
2465  void typeConsistencyEnforcementQosPolicy::
2466  ignore_string_bounds (::XMLSchema::boolean const& e)
2467  {
2468  if (ignore_string_bounds_.get ())
2469  {
2470  *ignore_string_bounds_ = e;
2471  }
2472 
2473  else
2474  {
2475  ignore_string_bounds_ = typeConsistencyEnforcementQosPolicy::ignore_string_bounds_auto_ptr_type (new ::XMLSchema::boolean (e));
2476  ignore_string_bounds_->container (this);
2477  }
2478  }
2479 
2480  // typeConsistencyEnforcementQosPolicy
2481  bool typeConsistencyEnforcementQosPolicy::
2482  ignore_member_names_p () const
2483  {
2484  return ignore_member_names_.get () != 0;
2485  }
2486 
2487  ::XMLSchema::boolean const& typeConsistencyEnforcementQosPolicy::
2488  ignore_member_names () const
2489  {
2490  return *ignore_member_names_;
2491  }
2492 
2493  void typeConsistencyEnforcementQosPolicy::
2494  ignore_member_names (::XMLSchema::boolean const& e)
2495  {
2496  if (ignore_member_names_.get ())
2497  {
2498  *ignore_member_names_ = e;
2499  }
2500 
2501  else
2502  {
2503  ignore_member_names_ = typeConsistencyEnforcementQosPolicy::ignore_member_names_auto_ptr_type (new ::XMLSchema::boolean (e));
2504  ignore_member_names_->container (this);
2505  }
2506  }
2507 
2508  // typeConsistencyEnforcementQosPolicy
2509  bool typeConsistencyEnforcementQosPolicy::
2510  prevent_type_widening_p () const
2511  {
2512  return prevent_type_widening_.get () != 0;
2513  }
2514 
2515  ::XMLSchema::boolean const& typeConsistencyEnforcementQosPolicy::
2516  prevent_type_widening () const
2517  {
2518  return *prevent_type_widening_;
2519  }
2520 
2521  void typeConsistencyEnforcementQosPolicy::
2522  prevent_type_widening (::XMLSchema::boolean const& e)
2523  {
2524  if (prevent_type_widening_.get ())
2525  {
2526  *prevent_type_widening_ = e;
2527  }
2528 
2529  else
2530  {
2531  prevent_type_widening_ = typeConsistencyEnforcementQosPolicy::prevent_type_widening_auto_ptr_type (new ::XMLSchema::boolean (e));
2532  prevent_type_widening_->container (this);
2533  }
2534  }
2535 
2536  // typeConsistencyEnforcementQosPolicy
2537  bool typeConsistencyEnforcementQosPolicy::
2538  force_type_validation_p () const
2539  {
2540  return force_type_validation_.get () != 0;
2541  }
2542 
2543  ::XMLSchema::boolean const& typeConsistencyEnforcementQosPolicy::
2544  force_type_validation () const
2545  {
2546  return *force_type_validation_;
2547  }
2548 
2549  void typeConsistencyEnforcementQosPolicy::
2550  force_type_validation (::XMLSchema::boolean const& e)
2551  {
2552  if (force_type_validation_.get ())
2553  {
2554  *force_type_validation_ = e;
2555  }
2556 
2557  else
2558  {
2559  force_type_validation_ = typeConsistencyEnforcementQosPolicy::force_type_validation_auto_ptr_type (new ::XMLSchema::boolean (e));
2560  force_type_validation_->container (this);
2561  }
2562  }
2563 
2564 
2565  // domainparticipantQos
2566 
2567  domainparticipantQos::domainparticipantQos ()
2568  : ::XSCRT::Type ()
2569  {
2570  }
2571 
2572  domainparticipantQos::domainparticipantQos (domainparticipantQos const& s) :
2573  ::XSCRT::Type (s)
2574  , user_data_ (s.user_data_.get () ? new ::dds::userDataQosPolicy (*s.user_data_) : 0)
2575  , entity_factory_ (s.entity_factory_.get () ? new ::dds::entityFactoryQosPolicy (*s.entity_factory_) : 0)
2576  , name_ (s.name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.name_) : 0)
2577  , base_name_ (s.base_name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.base_name_) : 0)
2578  {
2579  if (user_data_.get ()) user_data_->container (this);
2580  if (entity_factory_.get ()) entity_factory_->container (this);
2581  if (name_.get ()) name_->container (this);
2582  if (base_name_.get ()) base_name_->container (this);
2583  }
2584 
2585  domainparticipantQos&
2586  domainparticipantQos::operator= (domainparticipantQos const& s)
2587  {
2588  if (&s != this)
2589  {
2590  if (s.user_data_.get ())
2591  user_data (*(s.user_data_));
2592  else
2593  user_data_.reset (0);
2594 
2595  if (s.entity_factory_.get ())
2596  entity_factory (*(s.entity_factory_));
2597  else
2598  entity_factory_.reset (0);
2599 
2600  if (s.name_.get ()) name (*(s.name_));
2601  else name_.reset (0);
2602 
2603  if (s.base_name_.get ()) base_name (*(s.base_name_));
2604  else base_name_.reset (0);
2605  }
2606 
2607  return *this;
2608  }
2609 
2610 
2611  // domainparticipantQos
2612  bool domainparticipantQos::
2613  user_data_p () const
2614  {
2615  return user_data_.get () != 0;
2616  }
2617 
2618  ::dds::userDataQosPolicy const& domainparticipantQos::
2619  user_data () const
2620  {
2621  return *user_data_;
2622  }
2623 
2624  void domainparticipantQos::
2625  user_data (::dds::userDataQosPolicy const& e)
2626  {
2627  if (user_data_.get ())
2628  {
2629  *user_data_ = e;
2630  }
2631 
2632  else
2633  {
2634  user_data_ = domainparticipantQos::user_data_auto_ptr_type (new ::dds::userDataQosPolicy (e));
2635  user_data_->container (this);
2636  }
2637  }
2638 
2639  // domainparticipantQos
2640  bool domainparticipantQos::
2641  entity_factory_p () const
2642  {
2643  return entity_factory_.get () != 0;
2644  }
2645 
2646  ::dds::entityFactoryQosPolicy const& domainparticipantQos::
2647  entity_factory () const
2648  {
2649  return *entity_factory_;
2650  }
2651 
2652  void domainparticipantQos::
2653  entity_factory (::dds::entityFactoryQosPolicy const& e)
2654  {
2655  if (entity_factory_.get ())
2656  {
2657  *entity_factory_ = e;
2658  }
2659 
2660  else
2661  {
2662  entity_factory_ = domainparticipantQos::entity_factory_auto_ptr_type (new ::dds::entityFactoryQosPolicy (e));
2663  entity_factory_->container (this);
2664  }
2665  }
2666 
2667  // domainparticipantQos
2668  bool domainparticipantQos::
2669  name_p () const
2670  {
2671  return name_.get () != 0;
2672  }
2673 
2674  ::XMLSchema::string<ACE_TCHAR> const& domainparticipantQos::
2675  name () const
2676  {
2677  return *name_;
2678  }
2679 
2680  ::XMLSchema::string<ACE_TCHAR>& domainparticipantQos::
2681  name ()
2682  {
2683  return *name_;
2684  }
2685 
2687  name (::XMLSchema::string<ACE_TCHAR> const& e)
2688  {
2689  if (name_.get ())
2690  {
2691  *name_ = e;
2692  }
2693 
2694  else
2695  {
2696  name_ = domainparticipantQos::name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
2697  name_->container (this);
2698  }
2699  }
2700 
2701  // domainparticipantQos
2702  bool domainparticipantQos::
2703  base_name_p () const
2704  {
2705  return base_name_.get () != 0;
2706  }
2707 
2708  ::XMLSchema::string<ACE_TCHAR> const& domainparticipantQos::
2709  base_name () const
2710  {
2711  return *base_name_;
2712  }
2713 
2714  ::XMLSchema::string<ACE_TCHAR>& domainparticipantQos::
2715  base_name ()
2716  {
2717  return *base_name_;
2718  }
2719 
2720  void domainparticipantQos::
2721  base_name (::XMLSchema::string<ACE_TCHAR> const& e)
2722  {
2723  if (base_name_.get ())
2724  {
2725  *base_name_ = e;
2726  }
2727 
2728  else
2729  {
2730  base_name_ = domainparticipantQos::base_name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
2731  base_name_->container (this);
2732  }
2733  }
2734 
2735 
2736  // publisherQos
2737 
2738  publisherQos::publisherQos ()
2739  : ::XSCRT::Type ()
2740  {
2741  }
2742 
2743  publisherQos::publisherQos (publisherQos const& s) :
2744  ::XSCRT::Type (s)
2745  , presentation_ (s.presentation_.get () ? new ::dds::presentationQosPolicy (*s.presentation_) : 0)
2746  , partition_ (s.partition_.get () ? new ::dds::partitionQosPolicy (*s.partition_) : 0)
2747  , group_data_ (s.group_data_.get () ? new ::dds::groupDataQosPolicy (*s.group_data_) : 0)
2748  , entity_factory_ (s.entity_factory_.get () ? new ::dds::entityFactoryQosPolicy (*s.entity_factory_) : 0)
2749  , name_ (s.name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.name_) : 0)
2750  , base_name_ (s.base_name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.base_name_) : 0)
2751  {
2752  if (presentation_.get ()) presentation_->container (this);
2753  if (partition_.get ()) partition_->container (this);
2754  if (group_data_.get ()) group_data_->container (this);
2755  if (entity_factory_.get ()) entity_factory_->container (this);
2756  if (name_.get ()) name_->container (this);
2757  if (base_name_.get ()) base_name_->container (this);
2758  }
2759 
2760  publisherQos&
2761  publisherQos::operator= (publisherQos const& s)
2762  {
2763  if (&s != this)
2764  {
2765  if (s.presentation_.get ())
2766  presentation (*(s.presentation_));
2767  else
2768  presentation_.reset (0);
2769 
2770  if (s.partition_.get ())
2771  partition (*(s.partition_));
2772  else
2773  partition_.reset (0);
2774 
2775  if (s.group_data_.get ())
2776  group_data (*(s.group_data_));
2777  else
2778  group_data_.reset (0);
2779 
2780  if (s.entity_factory_.get ())
2781  entity_factory (*(s.entity_factory_));
2782  else
2783  entity_factory_.reset (0);
2784 
2785  if (s.name_.get ()) name (*(s.name_));
2786  else name_.reset (0);
2787 
2788  if (s.base_name_.get ()) base_name (*(s.base_name_));
2789  else base_name_.reset (0);
2790  }
2791 
2792  return *this;
2793  }
2794 
2795 
2796  // publisherQos
2797  bool publisherQos::
2798  presentation_p () const
2799  {
2800  return presentation_.get () != 0;
2801  }
2802 
2803  ::dds::presentationQosPolicy const& publisherQos::
2804  presentation () const
2805  {
2806  return *presentation_;
2807  }
2808 
2809  void publisherQos::
2810  presentation (::dds::presentationQosPolicy const& e)
2811  {
2812  if (presentation_.get ())
2813  {
2814  *presentation_ = e;
2815  }
2816 
2817  else
2818  {
2819  presentation_ = publisherQos::presentation_auto_ptr_type (new ::dds::presentationQosPolicy (e));
2820  presentation_->container (this);
2821  }
2822  }
2823 
2824  // publisherQos
2825  bool publisherQos::
2826  partition_p () const
2827  {
2828  return partition_.get () != 0;
2829  }
2830 
2831  ::dds::partitionQosPolicy const& publisherQos::
2832  partition () const
2833  {
2834  return *partition_;
2835  }
2836 
2837  void publisherQos::
2838  partition (::dds::partitionQosPolicy const& e)
2839  {
2840  if (partition_.get ())
2841  {
2842  *partition_ = e;
2843  }
2844 
2845  else
2846  {
2847  partition_ = publisherQos::partition_auto_ptr_type (new ::dds::partitionQosPolicy (e));
2848  partition_->container (this);
2849  }
2850  }
2851 
2852  // publisherQos
2853  bool publisherQos::
2854  group_data_p () const
2855  {
2856  return group_data_.get () != 0;
2857  }
2858 
2859  ::dds::groupDataQosPolicy const& publisherQos::
2860  group_data () const
2861  {
2862  return *group_data_;
2863  }
2864 
2865  void publisherQos::
2866  group_data (::dds::groupDataQosPolicy const& e)
2867  {
2868  if (group_data_.get ())
2869  {
2870  *group_data_ = e;
2871  }
2872 
2873  else
2874  {
2875  group_data_ = publisherQos::group_data_auto_ptr_type (new ::dds::groupDataQosPolicy (e));
2876  group_data_->container (this);
2877  }
2878  }
2879 
2880  // publisherQos
2881  bool publisherQos::
2882  entity_factory_p () const
2883  {
2884  return entity_factory_.get () != 0;
2885  }
2886 
2887  ::dds::entityFactoryQosPolicy const& publisherQos::
2888  entity_factory () const
2889  {
2890  return *entity_factory_;
2891  }
2892 
2893  void publisherQos::
2894  entity_factory (::dds::entityFactoryQosPolicy const& e)
2895  {
2896  if (entity_factory_.get ())
2897  {
2898  *entity_factory_ = e;
2899  }
2900 
2901  else
2902  {
2903  entity_factory_ = publisherQos::entity_factory_auto_ptr_type (new ::dds::entityFactoryQosPolicy (e));
2904  entity_factory_->container (this);
2905  }
2906  }
2907 
2908  // publisherQos
2909  bool publisherQos::
2910  name_p () const
2911  {
2912  return name_.get () != 0;
2913  }
2914 
2915  ::XMLSchema::string<ACE_TCHAR> const& publisherQos::
2916  name () const
2917  {
2918  return *name_;
2919  }
2920 
2921  ::XMLSchema::string<ACE_TCHAR>& publisherQos::
2922  name ()
2923  {
2924  return *name_;
2925  }
2926 
2927  void publisherQos::
2928  name (::XMLSchema::string<ACE_TCHAR> const& e)
2929  {
2930  if (name_.get ())
2931  {
2932  *name_ = e;
2933  }
2934 
2935  else
2936  {
2937  name_ = publisherQos::name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
2938  name_->container (this);
2939  }
2940  }
2941 
2942  // publisherQos
2943  bool publisherQos::
2944  base_name_p () const
2945  {
2946  return base_name_.get () != 0;
2947  }
2948 
2949  ::XMLSchema::string<ACE_TCHAR> const& publisherQos::
2950  base_name () const
2951  {
2952  return *base_name_;
2953  }
2954 
2955  ::XMLSchema::string<ACE_TCHAR>& publisherQos::
2956  base_name ()
2957  {
2958  return *base_name_;
2959  }
2960 
2961  void publisherQos::
2962  base_name (::XMLSchema::string<ACE_TCHAR> const& e)
2963  {
2964  if (base_name_.get ())
2965  {
2966  *base_name_ = e;
2967  }
2968 
2969  else
2970  {
2971  base_name_ = publisherQos::base_name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
2972  base_name_->container (this);
2973  }
2974  }
2975 
2976 
2977  // subscriberQos
2978 
2979  subscriberQos::subscriberQos ()
2980  : ::XSCRT::Type ()
2981  {
2982  }
2983 
2984  subscriberQos::subscriberQos (subscriberQos const& s) :
2985  ::XSCRT::Type (s)
2986  , presentation_ (s.presentation_.get () ? new ::dds::presentationQosPolicy (*s.presentation_) : 0)
2987  , partition_ (s.partition_.get () ? new ::dds::partitionQosPolicy (*s.partition_) : 0)
2988  , group_data_ (s.group_data_.get () ? new ::dds::groupDataQosPolicy (*s.group_data_) : 0)
2989  , entity_factory_ (s.entity_factory_.get () ? new ::dds::entityFactoryQosPolicy (*s.entity_factory_) : 0)
2990  , name_ (s.name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.name_) : 0)
2991  , base_name_ (s.base_name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.base_name_) : 0)
2992  {
2993  if (presentation_.get ()) presentation_->container (this);
2994  if (partition_.get ()) partition_->container (this);
2995  if (group_data_.get ()) group_data_->container (this);
2996  if (entity_factory_.get ()) entity_factory_->container (this);
2997  if (name_.get ()) name_->container (this);
2998  if (base_name_.get ()) base_name_->container (this);
2999  }
3000 
3001  subscriberQos&
3002  subscriberQos::operator= (subscriberQos const& s)
3003  {
3004  if (&s != this)
3005  {
3006  if (s.presentation_.get ())
3007  presentation (*(s.presentation_));
3008  else
3009  presentation_.reset (0);
3010 
3011  if (s.partition_.get ())
3012  partition (*(s.partition_));
3013  else
3014  partition_.reset (0);
3015 
3016  if (s.group_data_.get ())
3017  group_data (*(s.group_data_));
3018  else
3019  group_data_.reset (0);
3020 
3021  if (s.entity_factory_.get ())
3022  entity_factory (*(s.entity_factory_));
3023  else
3024  entity_factory_.reset (0);
3025 
3026  if (s.name_.get ()) name (*(s.name_));
3027  else name_.reset (0);
3028 
3029  if (s.base_name_.get ()) base_name (*(s.base_name_));
3030  else base_name_.reset (0);
3031  }
3032 
3033  return *this;
3034  }
3035 
3036 
3037  // subscriberQos
3038  bool subscriberQos::
3039  presentation_p () const
3040  {
3041  return presentation_.get () != 0;
3042  }
3043 
3044  ::dds::presentationQosPolicy const& subscriberQos::
3045  presentation () const
3046  {
3047  return *presentation_;
3048  }
3049 
3050  void subscriberQos::
3051  presentation (::dds::presentationQosPolicy const& e)
3052  {
3053  if (presentation_.get ())
3054  {
3055  *presentation_ = e;
3056  }
3057 
3058  else
3059  {
3060  presentation_ = subscriberQos::presentation_auto_ptr_type (new ::dds::presentationQosPolicy (e));
3061  presentation_->container (this);
3062  }
3063  }
3064 
3065  // subscriberQos
3066  bool subscriberQos::
3067  partition_p () const
3068  {
3069  return partition_.get () != 0;
3070  }
3071 
3072  ::dds::partitionQosPolicy const& subscriberQos::
3073  partition () const
3074  {
3075  return *partition_;
3076  }
3077 
3078  void subscriberQos::
3079  partition (::dds::partitionQosPolicy const& e)
3080  {
3081  if (partition_.get ())
3082  {
3083  *partition_ = e;
3084  }
3085 
3086  else
3087  {
3088  partition_ = subscriberQos::partition_auto_ptr_type (new ::dds::partitionQosPolicy (e));
3089  partition_->container (this);
3090  }
3091  }
3092 
3093  // subscriberQos
3094  bool subscriberQos::
3095  group_data_p () const
3096  {
3097  return group_data_.get () != 0;
3098  }
3099 
3100  ::dds::groupDataQosPolicy const& subscriberQos::
3101  group_data () const
3102  {
3103  return *group_data_;
3104  }
3105 
3106  void subscriberQos::
3107  group_data (::dds::groupDataQosPolicy const& e)
3108  {
3109  if (group_data_.get ())
3110  {
3111  *group_data_ = e;
3112  }
3113 
3114  else
3115  {
3116  group_data_ = subscriberQos::group_data_auto_ptr_type (new ::dds::groupDataQosPolicy (e));
3117  group_data_->container (this);
3118  }
3119  }
3120 
3121  // subscriberQos
3122  bool subscriberQos::
3123  entity_factory_p () const
3124  {
3125  return entity_factory_.get () != 0;
3126  }
3127 
3128  ::dds::entityFactoryQosPolicy const& subscriberQos::
3129  entity_factory () const
3130  {
3131  return *entity_factory_;
3132  }
3133 
3134  void subscriberQos::
3135  entity_factory (::dds::entityFactoryQosPolicy const& e)
3136  {
3137  if (entity_factory_.get ())
3138  {
3139  *entity_factory_ = e;
3140  }
3141 
3142  else
3143  {
3144  entity_factory_ = subscriberQos::entity_factory_auto_ptr_type (new ::dds::entityFactoryQosPolicy (e));
3145  entity_factory_->container (this);
3146  }
3147  }
3148 
3149  // subscriberQos
3150  bool subscriberQos::
3151  name_p () const
3152  {
3153  return name_.get () != 0;
3154  }
3155 
3156  ::XMLSchema::string<ACE_TCHAR> const& subscriberQos::
3157  name () const
3158  {
3159  return *name_;
3160  }
3161 
3162  ::XMLSchema::string<ACE_TCHAR>& subscriberQos::
3163  name ()
3164  {
3165  return *name_;
3166  }
3167 
3168  void subscriberQos::
3169  name (::XMLSchema::string<ACE_TCHAR> const& e)
3170  {
3171  if (name_.get ())
3172  {
3173  *name_ = e;
3174  }
3175 
3176  else
3177  {
3178  name_ = subscriberQos::name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
3179  name_->container (this);
3180  }
3181  }
3182 
3183  // subscriberQos
3184  bool subscriberQos::
3185  base_name_p () const
3186  {
3187  return base_name_.get () != 0;
3188  }
3189 
3190  ::XMLSchema::string<ACE_TCHAR> const& subscriberQos::
3191  base_name () const
3192  {
3193  return *base_name_;
3194  }
3195 
3196  ::XMLSchema::string<ACE_TCHAR>& subscriberQos::
3197  base_name ()
3198  {
3199  return *base_name_;
3200  }
3201 
3202  void subscriberQos::
3203  base_name (::XMLSchema::string<ACE_TCHAR> const& e)
3204  {
3205  if (base_name_.get ())
3206  {
3207  *base_name_ = e;
3208  }
3209 
3210  else
3211  {
3212  base_name_ = subscriberQos::base_name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
3213  base_name_->container (this);
3214  }
3215  }
3216 
3217 
3218  // topicQos
3219 
3220  topicQos::topicQos ()
3221  : ::XSCRT::Type ()
3222  {
3223  }
3224 
3225  topicQos::topicQos (topicQos const& s) :
3226  ::XSCRT::Type (s)
3227  , topic_data_ (s.topic_data_.get () ? new ::dds::topicDataQosPolicy (*s.topic_data_) : 0)
3228  , durability_ (s.durability_.get () ? new ::dds::durabilityQosPolicy (*s.durability_) : 0)
3229  , durability_service_ (s.durability_service_.get () ? new ::dds::durabilityServiceQosPolicy (*s.durability_service_) : 0)
3230  , deadline_ (s.deadline_.get () ? new ::dds::deadlineQosPolicy (*s.deadline_) : 0)
3231  , latency_budget_ (s.latency_budget_.get () ? new ::dds::latencyBudgetQosPolicy (*s.latency_budget_) : 0)
3232  , liveliness_ (s.liveliness_.get () ? new ::dds::livelinessQosPolicy (*s.liveliness_) : 0)
3233  , reliability_ (s.reliability_.get () ? new ::dds::reliabilityQosPolicy (*s.reliability_) : 0)
3234  , destination_order_ (s.destination_order_.get () ? new ::dds::destinationOrderQosPolicy (*s.destination_order_) : 0)
3235  , history_ (s.history_.get () ? new ::dds::historyQosPolicy (*s.history_) : 0)
3236  , resource_limits_ (s.resource_limits_.get () ? new ::dds::resourceLimitsQosPolicy (*s.resource_limits_) : 0)
3237  , transport_priority_ (s.transport_priority_.get () ? new ::dds::transportPriorityQosPolicy (*s.transport_priority_) : 0)
3238  , lifespan_ (s.lifespan_.get () ? new ::dds::lifespanQosPolicy (*s.lifespan_) : 0)
3239  , ownership_ (s.ownership_.get () ? new ::dds::ownershipQosPolicy (*s.ownership_) : 0)
3240  , representation_ (s.representation_.get () ? new ::dds::dataRepresentationQosPolicy (*s.representation_) : 0)
3241  , name_ (s.name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.name_) : 0)
3242  , base_name_ (s.base_name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.base_name_) : 0)
3243  , topic_filter_ (s.topic_filter_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.topic_filter_) : 0)
3244  {
3245  if (topic_data_.get ()) topic_data_->container (this);
3246  if (durability_.get ()) durability_->container (this);
3247  if (durability_service_.get ()) durability_service_->container (this);
3248  if (deadline_.get ()) deadline_->container (this);
3249  if (latency_budget_.get ()) latency_budget_->container (this);
3250  if (liveliness_.get ()) liveliness_->container (this);
3251  if (reliability_.get ()) reliability_->container (this);
3252  if (destination_order_.get ()) destination_order_->container (this);
3253  if (history_.get ()) history_->container (this);
3254  if (resource_limits_.get ()) resource_limits_->container (this);
3255  if (transport_priority_.get ()) transport_priority_->container (this);
3256  if (lifespan_.get ()) lifespan_->container (this);
3257  if (ownership_.get ()) ownership_->container (this);
3258  if (representation_.get ()) representation_->container (this);
3259  if (name_.get ()) name_->container (this);
3260  if (base_name_.get ()) base_name_->container (this);
3261  if (topic_filter_.get ()) topic_filter_->container (this);
3262  }
3263 
3264  topicQos&
3265  topicQos::operator= (topicQos const& s)
3266  {
3267  if (&s != this)
3268  {
3269  if (s.topic_data_.get ())
3270  topic_data (*(s.topic_data_));
3271  else
3272  topic_data_.reset (0);
3273 
3274  if (s.durability_.get ())
3275  durability (*(s.durability_));
3276  else
3277  durability_.reset (0);
3278 
3279  if (s.durability_service_.get ())
3280  durability_service (*(s.durability_service_));
3281  else
3282  durability_service_.reset (0);
3283 
3284  if (s.deadline_.get ())
3285  deadline (*(s.deadline_));
3286  else
3287  deadline_.reset (0);
3288 
3289  if (s.latency_budget_.get ())
3290  latency_budget (*(s.latency_budget_));
3291  else
3292  latency_budget_.reset (0);
3293 
3294  if (s.liveliness_.get ())
3295  liveliness (*(s.liveliness_));
3296  else
3297  liveliness_.reset (0);
3298 
3299  if (s.reliability_.get ())
3300  reliability (*(s.reliability_));
3301  else
3302  reliability_.reset (0);
3303 
3304  if (s.destination_order_.get ())
3305  destination_order (*(s.destination_order_));
3306  else
3307  destination_order_.reset (0);
3308 
3309  if (s.history_.get ())
3310  history (*(s.history_));
3311  else
3312  history_.reset (0);
3313 
3314  if (s.resource_limits_.get ())
3315  resource_limits (*(s.resource_limits_));
3316  else
3317  resource_limits_.reset (0);
3318 
3319  if (s.transport_priority_.get ())
3320  transport_priority (*(s.transport_priority_));
3321  else
3322  transport_priority_.reset (0);
3323 
3324  if (s.lifespan_.get ())
3325  lifespan (*(s.lifespan_));
3326  else
3327  lifespan_.reset (0);
3328 
3329  if (s.ownership_.get ())
3330  ownership (*(s.ownership_));
3331  else
3332  ownership_.reset (0);
3333 
3334  if (s.representation_.get ())
3335  representation (*(s.representation_));
3336  else
3337  representation_.reset (0);
3338 
3339  if (s.name_.get ()) name (*(s.name_));
3340  else name_.reset (0);
3341 
3342  if (s.base_name_.get ()) base_name (*(s.base_name_));
3343  else base_name_.reset (0);
3344 
3345  if (s.topic_filter_.get ()) topic_filter (*(s.topic_filter_));
3346  else topic_filter_.reset (0);
3347  }
3348 
3349  return *this;
3350  }
3351 
3352 
3353  // topicQos
3354  bool topicQos::
3355  topic_data_p () const
3356  {
3357  return topic_data_.get () != 0;
3358  }
3359 
3360  ::dds::topicDataQosPolicy const& topicQos::
3361  topic_data () const
3362  {
3363  return *topic_data_;
3364  }
3365 
3366  void topicQos::
3367  topic_data (::dds::topicDataQosPolicy const& e)
3368  {
3369  if (topic_data_.get ())
3370  {
3371  *topic_data_ = e;
3372  }
3373 
3374  else
3375  {
3376  topic_data_ = topicQos::topic_data_auto_ptr_type (new ::dds::topicDataQosPolicy (e));
3377  topic_data_->container (this);
3378  }
3379  }
3380 
3381  // topicQos
3382  bool topicQos::
3383  durability_p () const
3384  {
3385  return durability_.get () != 0;
3386  }
3387 
3388  ::dds::durabilityQosPolicy const& topicQos::
3389  durability () const
3390  {
3391  return *durability_;
3392  }
3393 
3394  void topicQos::
3395  durability (::dds::durabilityQosPolicy const& e)
3396  {
3397  if (durability_.get ())
3398  {
3399  *durability_ = e;
3400  }
3401 
3402  else
3403  {
3404  durability_ = topicQos::durability_auto_ptr_type (new ::dds::durabilityQosPolicy (e));
3405  durability_->container (this);
3406  }
3407  }
3408 
3409  // topicQos
3410  bool topicQos::
3411  durability_service_p () const
3412  {
3413  return durability_service_.get () != 0;
3414  }
3415 
3416  ::dds::durabilityServiceQosPolicy const& topicQos::
3417  durability_service () const
3418  {
3419  return *durability_service_;
3420  }
3421 
3422  void topicQos::
3423  durability_service (::dds::durabilityServiceQosPolicy const& e)
3424  {
3425  if (durability_service_.get ())
3426  {
3427  *durability_service_ = e;
3428  }
3429 
3430  else
3431  {
3432  durability_service_ = topicQos::durability_service_auto_ptr_type (new ::dds::durabilityServiceQosPolicy (e));
3433  durability_service_->container (this);
3434  }
3435  }
3436 
3437  // topicQos
3438  bool topicQos::
3439  deadline_p () const
3440  {
3441  return deadline_.get () != 0;
3442  }
3443 
3444  ::dds::deadlineQosPolicy const& topicQos::
3445  deadline () const
3446  {
3447  return *deadline_;
3448  }
3449 
3450  void topicQos::
3451  deadline (::dds::deadlineQosPolicy const& e)
3452  {
3453  if (deadline_.get ())
3454  {
3455  *deadline_ = e;
3456  }
3457 
3458  else
3459  {
3460  deadline_ = topicQos::deadline_auto_ptr_type (new ::dds::deadlineQosPolicy (e));
3461  deadline_->container (this);
3462  }
3463  }
3464 
3465  // topicQos
3466  bool topicQos::
3467  latency_budget_p () const
3468  {
3469  return latency_budget_.get () != 0;
3470  }
3471 
3472  ::dds::latencyBudgetQosPolicy const& topicQos::
3473  latency_budget () const
3474  {
3475  return *latency_budget_;
3476  }
3477 
3478  void topicQos::
3479  latency_budget (::dds::latencyBudgetQosPolicy const& e)
3480  {
3481  if (latency_budget_.get ())
3482  {
3483  *latency_budget_ = e;
3484  }
3485 
3486  else
3487  {
3488  latency_budget_ = topicQos::latency_budget_auto_ptr_type (new ::dds::latencyBudgetQosPolicy (e));
3489  latency_budget_->container (this);
3490  }
3491  }
3492 
3493  // topicQos
3494  bool topicQos::
3495  liveliness_p () const
3496  {
3497  return liveliness_.get () != 0;
3498  }
3499 
3500  ::dds::livelinessQosPolicy const& topicQos::
3501  liveliness () const
3502  {
3503  return *liveliness_;
3504  }
3505 
3506  void topicQos::
3507  liveliness (::dds::livelinessQosPolicy const& e)
3508  {
3509  if (liveliness_.get ())
3510  {
3511  *liveliness_ = e;
3512  }
3513 
3514  else
3515  {
3516  liveliness_ = topicQos::liveliness_auto_ptr_type (new ::dds::livelinessQosPolicy (e));
3517  liveliness_->container (this);
3518  }
3519  }
3520 
3521  // topicQos
3522  bool topicQos::
3523  reliability_p () const
3524  {
3525  return reliability_.get () != 0;
3526  }
3527 
3528  ::dds::reliabilityQosPolicy const& topicQos::
3529  reliability () const
3530  {
3531  return *reliability_;
3532  }
3533 
3534  void topicQos::
3535  reliability (::dds::reliabilityQosPolicy const& e)
3536  {
3537  if (reliability_.get ())
3538  {
3539  *reliability_ = e;
3540  }
3541 
3542  else
3543  {
3544  reliability_ = topicQos::reliability_auto_ptr_type (new ::dds::reliabilityQosPolicy (e));
3545  reliability_->container (this);
3546  }
3547  }
3548 
3549  // topicQos
3550  bool topicQos::
3551  destination_order_p () const
3552  {
3553  return destination_order_.get () != 0;
3554  }
3555 
3556  ::dds::destinationOrderQosPolicy const& topicQos::
3557  destination_order () const
3558  {
3559  return *destination_order_;
3560  }
3561 
3562  void topicQos::
3563  destination_order (::dds::destinationOrderQosPolicy const& e)
3564  {
3565  if (destination_order_.get ())
3566  {
3567  *destination_order_ = e;
3568  }
3569 
3570  else
3571  {
3572  destination_order_ = topicQos::destination_order_auto_ptr_type (new ::dds::destinationOrderQosPolicy (e));
3573  destination_order_->container (this);
3574  }
3575  }
3576 
3577  // topicQos
3578  bool topicQos::
3579  history_p () const
3580  {
3581  return history_.get () != 0;
3582  }
3583 
3584  ::dds::historyQosPolicy const& topicQos::
3585  history () const
3586  {
3587  return *history_;
3588  }
3589 
3590  void topicQos::
3591  history (::dds::historyQosPolicy const& e)
3592  {
3593  if (history_.get ())
3594  {
3595  *history_ = e;
3596  }
3597 
3598  else
3599  {
3600  history_ = topicQos::history_auto_ptr_type (new ::dds::historyQosPolicy (e));
3601  history_->container (this);
3602  }
3603  }
3604 
3605  // topicQos
3606  bool topicQos::
3607  resource_limits_p () const
3608  {
3609  return resource_limits_.get () != 0;
3610  }
3611 
3612  ::dds::resourceLimitsQosPolicy const& topicQos::
3613  resource_limits () const
3614  {
3615  return *resource_limits_;
3616  }
3617 
3618  void topicQos::
3619  resource_limits (::dds::resourceLimitsQosPolicy const& e)
3620  {
3621  if (resource_limits_.get ())
3622  {
3623  *resource_limits_ = e;
3624  }
3625 
3626  else
3627  {
3628  resource_limits_ = topicQos::resource_limits_auto_ptr_type (new ::dds::resourceLimitsQosPolicy (e));
3629  resource_limits_->container (this);
3630  }
3631  }
3632 
3633  // topicQos
3634  bool topicQos::
3635  transport_priority_p () const
3636  {
3637  return transport_priority_.get () != 0;
3638  }
3639 
3640  ::dds::transportPriorityQosPolicy const& topicQos::
3641  transport_priority () const
3642  {
3643  return *transport_priority_;
3644  }
3645 
3646  void topicQos::
3647  transport_priority (::dds::transportPriorityQosPolicy const& e)
3648  {
3649  if (transport_priority_.get ())
3650  {
3651  *transport_priority_ = e;
3652  }
3653 
3654  else
3655  {
3656  transport_priority_ = topicQos::transport_priority_auto_ptr_type (new ::dds::transportPriorityQosPolicy (e));
3657  transport_priority_->container (this);
3658  }
3659  }
3660 
3661  // topicQos
3662  bool topicQos::
3663  lifespan_p () const
3664  {
3665  return lifespan_.get () != 0;
3666  }
3667 
3668  ::dds::lifespanQosPolicy const& topicQos::
3669  lifespan () const
3670  {
3671  return *lifespan_;
3672  }
3673 
3674  void topicQos::
3675  lifespan (::dds::lifespanQosPolicy const& e)
3676  {
3677  if (lifespan_.get ())
3678  {
3679  *lifespan_ = e;
3680  }
3681 
3682  else
3683  {
3684  lifespan_ = topicQos::lifespan_auto_ptr_type (new ::dds::lifespanQosPolicy (e));
3685  lifespan_->container (this);
3686  }
3687  }
3688 
3689  // topicQos
3690  bool topicQos::
3691  ownership_p () const
3692  {
3693  return ownership_.get () != 0;
3694  }
3695 
3696  ::dds::ownershipQosPolicy const& topicQos::
3697  ownership () const
3698  {
3699  return *ownership_;
3700  }
3701 
3702  void topicQos::
3703  ownership (::dds::ownershipQosPolicy const& e)
3704  {
3705  if (ownership_.get ())
3706  {
3707  *ownership_ = e;
3708  }
3709 
3710  else
3711  {
3712  ownership_ = topicQos::ownership_auto_ptr_type (new ::dds::ownershipQosPolicy (e));
3713  ownership_->container (this);
3714  }
3715  }
3716 
3717  // topicQos
3718  bool topicQos::
3719  representation_p () const
3720  {
3721  return representation_.get () != 0;
3722  }
3723 
3724  ::dds::dataRepresentationQosPolicy const& topicQos::
3725  representation () const
3726  {
3727  return *representation_;
3728  }
3729 
3730  void topicQos::
3731  representation (::dds::dataRepresentationQosPolicy const& e)
3732  {
3733  if (representation_.get ())
3734  {
3735  *representation_ = e;
3736  }
3737 
3738  else
3739  {
3740  representation_ = topicQos::representation_auto_ptr_type (new ::dds::dataRepresentationQosPolicy (e));
3741  representation_->container (this);
3742  }
3743  }
3744 
3745  // topicQos
3746  bool topicQos::
3747  name_p () const
3748  {
3749  return name_.get () != 0;
3750  }
3751 
3752  ::XMLSchema::string<ACE_TCHAR> const& topicQos::
3753  name () const
3754  {
3755  return *name_;
3756  }
3757 
3758  ::XMLSchema::string<ACE_TCHAR>& topicQos::
3759  name ()
3760  {
3761  return *name_;
3762  }
3763 
3764  void topicQos::
3765  name (::XMLSchema::string<ACE_TCHAR> const& e)
3766  {
3767  if (name_.get ())
3768  {
3769  *name_ = e;
3770  }
3771 
3772  else
3773  {
3774  name_ = topicQos::name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
3775  name_->container (this);
3776  }
3777  }
3778 
3779  // topicQos
3780  bool topicQos::
3781  base_name_p () const
3782  {
3783  return base_name_.get () != 0;
3784  }
3785 
3786  ::XMLSchema::string<ACE_TCHAR> const& topicQos::
3787  base_name () const
3788  {
3789  return *base_name_;
3790  }
3791 
3792  ::XMLSchema::string<ACE_TCHAR>& topicQos::
3793  base_name ()
3794  {
3795  return *base_name_;
3796  }
3797 
3798  void topicQos::
3799  base_name (::XMLSchema::string<ACE_TCHAR> const& e)
3800  {
3801  if (base_name_.get ())
3802  {
3803  *base_name_ = e;
3804  }
3805 
3806  else
3807  {
3808  base_name_ = topicQos::base_name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
3809  base_name_->container (this);
3810  }
3811  }
3812 
3813  // topicQos
3814  bool topicQos::
3815  topic_filter_p () const
3816  {
3817  return topic_filter_.get () != 0;
3818  }
3819 
3820  ::XMLSchema::string<ACE_TCHAR> const& topicQos::
3821  topic_filter () const
3822  {
3823  return *topic_filter_;
3824  }
3825 
3826  ::XMLSchema::string<ACE_TCHAR>& topicQos::
3827  topic_filter ()
3828  {
3829  return *topic_filter_;
3830  }
3831 
3832  void topicQos::
3833  topic_filter (::XMLSchema::string<ACE_TCHAR> const& e)
3834  {
3835  if (topic_filter_.get ())
3836  {
3837  *topic_filter_ = e;
3838  }
3839 
3840  else
3841  {
3842  topic_filter_ = topicQos::topic_filter_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
3843  topic_filter_->container (this);
3844  }
3845  }
3846 
3847 
3848  // datareaderQos
3849 
3850  datareaderQos::datareaderQos ()
3851  : ::XSCRT::Type ()
3852  {
3853  }
3854 
3855  datareaderQos::datareaderQos (datareaderQos const& s) :
3856  ::XSCRT::Type (s)
3857  , durability_ (s.durability_.get () ? new ::dds::durabilityQosPolicy (*s.durability_) : 0)
3858  , deadline_ (s.deadline_.get () ? new ::dds::deadlineQosPolicy (*s.deadline_) : 0)
3859  , latency_budget_ (s.latency_budget_.get () ? new ::dds::latencyBudgetQosPolicy (*s.latency_budget_) : 0)
3860  , liveliness_ (s.liveliness_.get () ? new ::dds::livelinessQosPolicy (*s.liveliness_) : 0)
3861  , reliability_ (s.reliability_.get () ? new ::dds::reliabilityQosPolicy (*s.reliability_) : 0)
3862  , destination_order_ (s.destination_order_.get () ? new ::dds::destinationOrderQosPolicy (*s.destination_order_) : 0)
3863  , history_ (s.history_.get () ? new ::dds::historyQosPolicy (*s.history_) : 0)
3864  , resource_limits_ (s.resource_limits_.get () ? new ::dds::resourceLimitsQosPolicy (*s.resource_limits_) : 0)
3865  , user_data_ (s.user_data_.get () ? new ::dds::userDataQosPolicy (*s.user_data_) : 0)
3866  , ownership_ (s.ownership_.get () ? new ::dds::ownershipQosPolicy (*s.ownership_) : 0)
3867  , time_based_filter_ (s.time_based_filter_.get () ? new ::dds::timeBasedFilterQosPolicy (*s.time_based_filter_) : 0)
3868  , reader_data_lifecycle_ (s.reader_data_lifecycle_.get () ? new ::dds::readerDataLifecycleQosPolicy (*s.reader_data_lifecycle_) : 0)
3869  , representation_ (s.representation_.get () ? new ::dds::dataRepresentationQosPolicy (*s.representation_) : 0)
3870  , type_consistency_ (s.type_consistency_.get () ? new ::dds::typeConsistencyEnforcementQosPolicy (*s.type_consistency_) : 0)
3871  , name_ (s.name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.name_) : 0)
3872  , base_name_ (s.base_name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.base_name_) : 0)
3873  , topic_filter_ (s.topic_filter_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.topic_filter_) : 0)
3874  {
3875  if (durability_.get ()) durability_->container (this);
3876  if (deadline_.get ()) deadline_->container (this);
3877  if (latency_budget_.get ()) latency_budget_->container (this);
3878  if (liveliness_.get ()) liveliness_->container (this);
3879  if (reliability_.get ()) reliability_->container (this);
3880  if (destination_order_.get ()) destination_order_->container (this);
3881  if (history_.get ()) history_->container (this);
3882  if (resource_limits_.get ()) resource_limits_->container (this);
3883  if (user_data_.get ()) user_data_->container (this);
3884  if (ownership_.get ()) ownership_->container (this);
3885  if (time_based_filter_.get ()) time_based_filter_->container (this);
3886  if (reader_data_lifecycle_.get ()) reader_data_lifecycle_->container (this);
3887  if (representation_.get ()) representation_->container (this);
3888  if (type_consistency_.get ()) type_consistency_->container (this);
3889  if (name_.get ()) name_->container (this);
3890  if (base_name_.get ()) base_name_->container (this);
3891  if (topic_filter_.get ()) topic_filter_->container (this);
3892  }
3893 
3894  datareaderQos&
3895  datareaderQos::operator= (datareaderQos const& s)
3896  {
3897  if (&s != this)
3898  {
3899  if (s.durability_.get ())
3900  durability (*(s.durability_));
3901  else
3902  durability_.reset (0);
3903 
3904  if (s.deadline_.get ())
3905  deadline (*(s.deadline_));
3906  else
3907  deadline_.reset (0);
3908 
3909  if (s.latency_budget_.get ())
3910  latency_budget (*(s.latency_budget_));
3911  else
3912  latency_budget_.reset (0);
3913 
3914  if (s.liveliness_.get ())
3915  liveliness (*(s.liveliness_));
3916  else
3917  liveliness_.reset (0);
3918 
3919  if (s.reliability_.get ())
3920  reliability (*(s.reliability_));
3921  else
3922  reliability_.reset (0);
3923 
3924  if (s.destination_order_.get ())
3925  destination_order (*(s.destination_order_));
3926  else
3927  destination_order_.reset (0);
3928 
3929  if (s.history_.get ())
3930  history (*(s.history_));
3931  else
3932  history_.reset (0);
3933 
3934  if (s.resource_limits_.get ())
3935  resource_limits (*(s.resource_limits_));
3936  else
3937  resource_limits_.reset (0);
3938 
3939  if (s.user_data_.get ())
3940  user_data (*(s.user_data_));
3941  else
3942  user_data_.reset (0);
3943 
3944  if (s.ownership_.get ())
3945  ownership (*(s.ownership_));
3946  else
3947  ownership_.reset (0);
3948 
3949  if (s.time_based_filter_.get ())
3950  time_based_filter (*(s.time_based_filter_));
3951  else
3952  time_based_filter_.reset (0);
3953 
3954  if (s.reader_data_lifecycle_.get ())
3955  reader_data_lifecycle (*(s.reader_data_lifecycle_));
3956  else
3957  reader_data_lifecycle_.reset (0);
3958 
3959  if (s.representation_.get ())
3960  representation (*(s.representation_));
3961  else
3962  representation_.reset (0);
3963 
3964  if (s.type_consistency_.get ())
3965  type_consistency (*(s.type_consistency_));
3966  else
3967  type_consistency_.reset (0);
3968 
3969  if (s.name_.get ()) name (*(s.name_));
3970  else name_.reset (0);
3971 
3972  if (s.base_name_.get ()) base_name (*(s.base_name_));
3973  else base_name_.reset (0);
3974 
3975  if (s.topic_filter_.get ()) topic_filter (*(s.topic_filter_));
3976  else topic_filter_.reset (0);
3977  }
3978 
3979  return *this;
3980  }
3981 
3982 
3983  // datareaderQos
3984  bool datareaderQos::
3985  durability_p () const
3986  {
3987  return durability_.get () != 0;
3988  }
3989 
3990  ::dds::durabilityQosPolicy const& datareaderQos::
3991  durability () const
3992  {
3993  return *durability_;
3994  }
3995 
3996  void datareaderQos::
3997  durability (::dds::durabilityQosPolicy const& e)
3998  {
3999  if (durability_.get ())
4000  {
4001  *durability_ = e;
4002  }
4003 
4004  else
4005  {
4006  durability_ = datareaderQos::durability_auto_ptr_type (new ::dds::durabilityQosPolicy (e));
4007  durability_->container (this);
4008  }
4009  }
4010 
4011  // datareaderQos
4012  bool datareaderQos::
4013  deadline_p () const
4014  {
4015  return deadline_.get () != 0;
4016  }
4017 
4018  ::dds::deadlineQosPolicy const& datareaderQos::
4019  deadline () const
4020  {
4021  return *deadline_;
4022  }
4023 
4024  void datareaderQos::
4025  deadline (::dds::deadlineQosPolicy const& e)
4026  {
4027  if (deadline_.get ())
4028  {
4029  *deadline_ = e;
4030  }
4031 
4032  else
4033  {
4034  deadline_ = datareaderQos::deadline_auto_ptr_type (new ::dds::deadlineQosPolicy (e));
4035  deadline_->container (this);
4036  }
4037  }
4038 
4039  // datareaderQos
4040  bool datareaderQos::
4041  latency_budget_p () const
4042  {
4043  return latency_budget_.get () != 0;
4044  }
4045 
4046  ::dds::latencyBudgetQosPolicy const& datareaderQos::
4047  latency_budget () const
4048  {
4049  return *latency_budget_;
4050  }
4051 
4052  void datareaderQos::
4053  latency_budget (::dds::latencyBudgetQosPolicy const& e)
4054  {
4055  if (latency_budget_.get ())
4056  {
4057  *latency_budget_ = e;
4058  }
4059 
4060  else
4061  {
4062  latency_budget_ = datareaderQos::latency_budget_auto_ptr_type (new ::dds::latencyBudgetQosPolicy (e));
4063  latency_budget_->container (this);
4064  }
4065  }
4066 
4067  // datareaderQos
4068  bool datareaderQos::
4069  liveliness_p () const
4070  {
4071  return liveliness_.get () != 0;
4072  }
4073 
4074  ::dds::livelinessQosPolicy const& datareaderQos::
4075  liveliness () const
4076  {
4077  return *liveliness_;
4078  }
4079 
4080  void datareaderQos::
4081  liveliness (::dds::livelinessQosPolicy const& e)
4082  {
4083  if (liveliness_.get ())
4084  {
4085  *liveliness_ = e;
4086  }
4087 
4088  else
4089  {
4090  liveliness_ = datareaderQos::liveliness_auto_ptr_type (new ::dds::livelinessQosPolicy (e));
4091  liveliness_->container (this);
4092  }
4093  }
4094 
4095  // datareaderQos
4096  bool datareaderQos::
4097  reliability_p () const
4098  {
4099  return reliability_.get () != 0;
4100  }
4101 
4102  ::dds::reliabilityQosPolicy const& datareaderQos::
4103  reliability () const
4104  {
4105  return *reliability_;
4106  }
4107 
4108  void datareaderQos::
4109  reliability (::dds::reliabilityQosPolicy const& e)
4110  {
4111  if (reliability_.get ())
4112  {
4113  *reliability_ = e;
4114  }
4115 
4116  else
4117  {
4118  reliability_ = datareaderQos::reliability_auto_ptr_type (new ::dds::reliabilityQosPolicy (e));
4119  reliability_->container (this);
4120  }
4121  }
4122 
4123  // datareaderQos
4124  bool datareaderQos::
4125  destination_order_p () const
4126  {
4127  return destination_order_.get () != 0;
4128  }
4129 
4130  ::dds::destinationOrderQosPolicy const& datareaderQos::
4131  destination_order () const
4132  {
4133  return *destination_order_;
4134  }
4135 
4136  void datareaderQos::
4137  destination_order (::dds::destinationOrderQosPolicy const& e)
4138  {
4139  if (destination_order_.get ())
4140  {
4141  *destination_order_ = e;
4142  }
4143 
4144  else
4145  {
4146  destination_order_ = datareaderQos::destination_order_auto_ptr_type (new ::dds::destinationOrderQosPolicy (e));
4147  destination_order_->container (this);
4148  }
4149  }
4150 
4151  // datareaderQos
4152  bool datareaderQos::
4153  history_p () const
4154  {
4155  return history_.get () != 0;
4156  }
4157 
4158  ::dds::historyQosPolicy const& datareaderQos::
4159  history () const
4160  {
4161  return *history_;
4162  }
4163 
4164  void datareaderQos::
4165  history (::dds::historyQosPolicy const& e)
4166  {
4167  if (history_.get ())
4168  {
4169  *history_ = e;
4170  }
4171 
4172  else
4173  {
4174  history_ = datareaderQos::history_auto_ptr_type (new ::dds::historyQosPolicy (e));
4175  history_->container (this);
4176  }
4177  }
4178 
4179  // datareaderQos
4180  bool datareaderQos::
4181  resource_limits_p () const
4182  {
4183  return resource_limits_.get () != 0;
4184  }
4185 
4186  ::dds::resourceLimitsQosPolicy const& datareaderQos::
4187  resource_limits () const
4188  {
4189  return *resource_limits_;
4190  }
4191 
4192  void datareaderQos::
4193  resource_limits (::dds::resourceLimitsQosPolicy const& e)
4194  {
4195  if (resource_limits_.get ())
4196  {
4197  *resource_limits_ = e;
4198  }
4199 
4200  else
4201  {
4202  resource_limits_ = datareaderQos::resource_limits_auto_ptr_type (new ::dds::resourceLimitsQosPolicy (e));
4203  resource_limits_->container (this);
4204  }
4205  }
4206 
4207  // datareaderQos
4208  bool datareaderQos::
4209  user_data_p () const
4210  {
4211  return user_data_.get () != 0;
4212  }
4213 
4214  ::dds::userDataQosPolicy const& datareaderQos::
4215  user_data () const
4216  {
4217  return *user_data_;
4218  }
4219 
4220  void datareaderQos::
4221  user_data (::dds::userDataQosPolicy const& e)
4222  {
4223  if (user_data_.get ())
4224  {
4225  *user_data_ = e;
4226  }
4227 
4228  else
4229  {
4230  user_data_ = datareaderQos::user_data_auto_ptr_type (new ::dds::userDataQosPolicy (e));
4231  user_data_->container (this);
4232  }
4233  }
4234 
4235  // datareaderQos
4236  bool datareaderQos::
4237  ownership_p () const
4238  {
4239  return ownership_.get () != 0;
4240  }
4241 
4242  ::dds::ownershipQosPolicy const& datareaderQos::
4243  ownership () const
4244  {
4245  return *ownership_;
4246  }
4247 
4248  void datareaderQos::
4249  ownership (::dds::ownershipQosPolicy const& e)
4250  {
4251  if (ownership_.get ())
4252  {
4253  *ownership_ = e;
4254  }
4255 
4256  else
4257  {
4258  ownership_ = datareaderQos::ownership_auto_ptr_type (new ::dds::ownershipQosPolicy (e));
4259  ownership_->container (this);
4260  }
4261  }
4262 
4263  // datareaderQos
4264  bool datareaderQos::
4265  time_based_filter_p () const
4266  {
4267  return time_based_filter_.get () != 0;
4268  }
4269 
4270  ::dds::timeBasedFilterQosPolicy const& datareaderQos::
4271  time_based_filter () const
4272  {
4273  return *time_based_filter_;
4274  }
4275 
4276  void datareaderQos::
4277  time_based_filter (::dds::timeBasedFilterQosPolicy const& e)
4278  {
4279  if (time_based_filter_.get ())
4280  {
4281  *time_based_filter_ = e;
4282  }
4283 
4284  else
4285  {
4286  time_based_filter_ = datareaderQos::time_based_filter_auto_ptr_type (new ::dds::timeBasedFilterQosPolicy (e));
4287  time_based_filter_->container (this);
4288  }
4289  }
4290 
4291  // datareaderQos
4292  bool datareaderQos::
4293  reader_data_lifecycle_p () const
4294  {
4295  return reader_data_lifecycle_.get () != 0;
4296  }
4297 
4298  ::dds::readerDataLifecycleQosPolicy const& datareaderQos::
4299  reader_data_lifecycle () const
4300  {
4301  return *reader_data_lifecycle_;
4302  }
4303 
4304  void datareaderQos::
4305  reader_data_lifecycle (::dds::readerDataLifecycleQosPolicy const& e)
4306  {
4307  if (reader_data_lifecycle_.get ())
4308  {
4309  *reader_data_lifecycle_ = e;
4310  }
4311 
4312  else
4313  {
4314  reader_data_lifecycle_ = datareaderQos::reader_data_lifecycle_auto_ptr_type (new ::dds::readerDataLifecycleQosPolicy (e));
4315  reader_data_lifecycle_->container (this);
4316  }
4317  }
4318 
4319  // datareaderQos
4320  bool datareaderQos::
4321  representation_p () const
4322  {
4323  return representation_.get () != 0;
4324  }
4325 
4326  ::dds::dataRepresentationQosPolicy const& datareaderQos::
4327  representation () const
4328  {
4329  return *representation_;
4330  }
4331 
4332  void datareaderQos::
4333  representation (::dds::dataRepresentationQosPolicy const& e)
4334  {
4335  if (representation_.get ())
4336  {
4337  *representation_ = e;
4338  }
4339 
4340  else
4341  {
4342  representation_ = datareaderQos::representation_auto_ptr_type (new ::dds::dataRepresentationQosPolicy (e));
4343  representation_->container (this);
4344  }
4345  }
4346 
4347  // datareaderQos
4348  bool datareaderQos::
4349  type_consistency_p () const
4350  {
4351  return type_consistency_.get () != 0;
4352  }
4353 
4354  ::dds::typeConsistencyEnforcementQosPolicy const& datareaderQos::
4355  type_consistency () const
4356  {
4357  return *type_consistency_;
4358  }
4359 
4360  void datareaderQos::
4361  type_consistency (::dds::typeConsistencyEnforcementQosPolicy const& e)
4362  {
4363  if (type_consistency_.get ())
4364  {
4365  *type_consistency_ = e;
4366  }
4367 
4368  else
4369  {
4370  type_consistency_ = datareaderQos::type_consistency_auto_ptr_type (new ::dds::typeConsistencyEnforcementQosPolicy (e));
4371  type_consistency_->container (this);
4372  }
4373  }
4374 
4375  // datareaderQos
4376  bool datareaderQos::
4377  name_p () const
4378  {
4379  return name_.get () != 0;
4380  }
4381 
4382  ::XMLSchema::string<ACE_TCHAR> const& datareaderQos::
4383  name () const
4384  {
4385  return *name_;
4386  }
4387 
4388  ::XMLSchema::string<ACE_TCHAR>& datareaderQos::
4389  name ()
4390  {
4391  return *name_;
4392  }
4393 
4394  void datareaderQos::
4395  name (::XMLSchema::string<ACE_TCHAR> const& e)
4396  {
4397  if (name_.get ())
4398  {
4399  *name_ = e;
4400  }
4401 
4402  else
4403  {
4404  name_ = datareaderQos::name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
4405  name_->container (this);
4406  }
4407  }
4408 
4409  // datareaderQos
4410  bool datareaderQos::
4411  base_name_p () const
4412  {
4413  return base_name_.get () != 0;
4414  }
4415 
4416  ::XMLSchema::string<ACE_TCHAR> const& datareaderQos::
4417  base_name () const
4418  {
4419  return *base_name_;
4420  }
4421 
4422  ::XMLSchema::string<ACE_TCHAR>& datareaderQos::
4423  base_name ()
4424  {
4425  return *base_name_;
4426  }
4427 
4428  void datareaderQos::
4429  base_name (::XMLSchema::string<ACE_TCHAR> const& e)
4430  {
4431  if (base_name_.get ())
4432  {
4433  *base_name_ = e;
4434  }
4435 
4436  else
4437  {
4438  base_name_ = datareaderQos::base_name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
4439  base_name_->container (this);
4440  }
4441  }
4442 
4443  // datareaderQos
4444  bool datareaderQos::
4445  topic_filter_p () const
4446  {
4447  return topic_filter_.get () != 0;
4448  }
4449 
4450  ::XMLSchema::string<ACE_TCHAR> const& datareaderQos::
4451  topic_filter () const
4452  {
4453  return *topic_filter_;
4454  }
4455 
4456  ::XMLSchema::string<ACE_TCHAR>& datareaderQos::
4457  topic_filter ()
4458  {
4459  return *topic_filter_;
4460  }
4461 
4462  void datareaderQos::
4463  topic_filter (::XMLSchema::string<ACE_TCHAR> const& e)
4464  {
4465  if (topic_filter_.get ())
4466  {
4467  *topic_filter_ = e;
4468  }
4469 
4470  else
4471  {
4472  topic_filter_ = datareaderQos::topic_filter_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
4473  topic_filter_->container (this);
4474  }
4475  }
4476 
4477 
4478  // datawriterQos
4479 
4480  datawriterQos::datawriterQos ()
4481  : ::XSCRT::Type ()
4482  {
4483  }
4484 
4485  datawriterQos::datawriterQos (datawriterQos const& s) :
4486  ::XSCRT::Type (s)
4487  , durability_ (s.durability_.get () ? new ::dds::durabilityQosPolicy (*s.durability_) : 0)
4488  , durability_service_ (s.durability_service_.get () ? new ::dds::durabilityServiceQosPolicy (*s.durability_service_) : 0)
4489  , deadline_ (s.deadline_.get () ? new ::dds::deadlineQosPolicy (*s.deadline_) : 0)
4490  , latency_budget_ (s.latency_budget_.get () ? new ::dds::latencyBudgetQosPolicy (*s.latency_budget_) : 0)
4491  , liveliness_ (s.liveliness_.get () ? new ::dds::livelinessQosPolicy (*s.liveliness_) : 0)
4492  , reliability_ (s.reliability_.get () ? new ::dds::reliabilityQosPolicy (*s.reliability_) : 0)
4493  , destination_order_ (s.destination_order_.get () ? new ::dds::destinationOrderQosPolicy (*s.destination_order_) : 0)
4494  , history_ (s.history_.get () ? new ::dds::historyQosPolicy (*s.history_) : 0)
4495  , resource_limits_ (s.resource_limits_.get () ? new ::dds::resourceLimitsQosPolicy (*s.resource_limits_) : 0)
4496  , transport_priority_ (s.transport_priority_.get () ? new ::dds::transportPriorityQosPolicy (*s.transport_priority_) : 0)
4497  , lifespan_ (s.lifespan_.get () ? new ::dds::lifespanQosPolicy (*s.lifespan_) : 0)
4498  , user_data_ (s.user_data_.get () ? new ::dds::userDataQosPolicy (*s.user_data_) : 0)
4499  , ownership_ (s.ownership_.get () ? new ::dds::ownershipQosPolicy (*s.ownership_) : 0)
4500  , ownership_strength_ (s.ownership_strength_.get () ? new ::dds::ownershipStrengthQosPolicy (*s.ownership_strength_) : 0)
4501  , writer_data_lifecycle_ (s.writer_data_lifecycle_.get () ? new ::dds::writerDataLifecycleQosPolicy (*s.writer_data_lifecycle_) : 0)
4502  , representation_ (s.representation_.get () ? new ::dds::dataRepresentationQosPolicy (*s.representation_) : 0)
4503  , name_ (s.name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.name_) : 0)
4504  , base_name_ (s.base_name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.base_name_) : 0)
4505  , topic_filter_ (s.topic_filter_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.topic_filter_) : 0)
4506  {
4507  if (durability_.get ()) durability_->container (this);
4508  if (durability_service_.get ()) durability_service_->container (this);
4509  if (deadline_.get ()) deadline_->container (this);
4510  if (latency_budget_.get ()) latency_budget_->container (this);
4511  if (liveliness_.get ()) liveliness_->container (this);
4512  if (reliability_.get ()) reliability_->container (this);
4513  if (destination_order_.get ()) destination_order_->container (this);
4514  if (history_.get ()) history_->container (this);
4515  if (resource_limits_.get ()) resource_limits_->container (this);
4516  if (transport_priority_.get ()) transport_priority_->container (this);
4517  if (lifespan_.get ()) lifespan_->container (this);
4518  if (user_data_.get ()) user_data_->container (this);
4519  if (ownership_.get ()) ownership_->container (this);
4520  if (ownership_strength_.get ()) ownership_strength_->container (this);
4521  if (writer_data_lifecycle_.get ()) writer_data_lifecycle_->container (this);
4522  if (representation_.get ()) representation_->container (this);
4523  if (name_.get ()) name_->container (this);
4524  if (base_name_.get ()) base_name_->container (this);
4525  if (topic_filter_.get ()) topic_filter_->container (this);
4526  }
4527 
4528  datawriterQos&
4529  datawriterQos::operator= (datawriterQos const& s)
4530  {
4531  if (&s != this)
4532  {
4533  if (s.durability_.get ())
4534  durability (*(s.durability_));
4535  else
4536  durability_.reset (0);
4537 
4538  if (s.durability_service_.get ())
4539  durability_service (*(s.durability_service_));
4540  else
4541  durability_service_.reset (0);
4542 
4543  if (s.deadline_.get ())
4544  deadline (*(s.deadline_));
4545  else
4546  deadline_.reset (0);
4547 
4548  if (s.latency_budget_.get ())
4549  latency_budget (*(s.latency_budget_));
4550  else
4551  latency_budget_.reset (0);
4552 
4553  if (s.liveliness_.get ())
4554  liveliness (*(s.liveliness_));
4555  else
4556  liveliness_.reset (0);
4557 
4558  if (s.reliability_.get ())
4559  reliability (*(s.reliability_));
4560  else
4561  reliability_.reset (0);
4562 
4563  if (s.destination_order_.get ())
4564  destination_order (*(s.destination_order_));
4565  else
4566  destination_order_.reset (0);
4567 
4568  if (s.history_.get ())
4569  history (*(s.history_));
4570  else
4571  history_.reset (0);
4572 
4573  if (s.resource_limits_.get ())
4574  resource_limits (*(s.resource_limits_));
4575  else
4576  resource_limits_.reset (0);
4577 
4578  if (s.transport_priority_.get ())
4579  transport_priority (*(s.transport_priority_));
4580  else
4581  transport_priority_.reset (0);
4582 
4583  if (s.lifespan_.get ())
4584  lifespan (*(s.lifespan_));
4585  else
4586  lifespan_.reset (0);
4587 
4588  if (s.user_data_.get ())
4589  user_data (*(s.user_data_));
4590  else
4591  user_data_.reset (0);
4592 
4593  if (s.ownership_.get ())
4594  ownership (*(s.ownership_));
4595  else
4596  ownership_.reset (0);
4597 
4598  if (s.ownership_strength_.get ())
4599  ownership_strength (*(s.ownership_strength_));
4600  else
4601  ownership_strength_.reset (0);
4602 
4603  if (s.writer_data_lifecycle_.get ())
4604  writer_data_lifecycle (*(s.writer_data_lifecycle_));
4605  else
4606  writer_data_lifecycle_.reset (0);
4607 
4608  if (s.representation_.get ())
4609  representation (*(s.representation_));
4610  else
4611  representation_.reset (0);
4612 
4613  if (s.name_.get ()) name (*(s.name_));
4614  else name_.reset (0);
4615 
4616  if (s.base_name_.get ()) base_name (*(s.base_name_));
4617  else base_name_.reset (0);
4618 
4619  if (s.topic_filter_.get ()) topic_filter (*(s.topic_filter_));
4620  else topic_filter_.reset (0);
4621  }
4622 
4623  return *this;
4624  }
4625 
4626 
4627  // datawriterQos
4628  bool datawriterQos::
4629  durability_p () const
4630  {
4631  return durability_.get () != 0;
4632  }
4633 
4634  ::dds::durabilityQosPolicy const& datawriterQos::
4635  durability () const
4636  {
4637  return *durability_;
4638  }
4639 
4640  void datawriterQos::
4641  durability (::dds::durabilityQosPolicy const& e)
4642  {
4643  if (durability_.get ())
4644  {
4645  *durability_ = e;
4646  }
4647 
4648  else
4649  {
4650  durability_ = datawriterQos::durability_auto_ptr_type (new ::dds::durabilityQosPolicy (e));
4651  durability_->container (this);
4652  }
4653  }
4654 
4655  // datawriterQos
4656  bool datawriterQos::
4657  durability_service_p () const
4658  {
4659  return durability_service_.get () != 0;
4660  }
4661 
4662  ::dds::durabilityServiceQosPolicy const& datawriterQos::
4663  durability_service () const
4664  {
4665  return *durability_service_;
4666  }
4667 
4668  void datawriterQos::
4669  durability_service (::dds::durabilityServiceQosPolicy const& e)
4670  {
4671  if (durability_service_.get ())
4672  {
4673  *durability_service_ = e;
4674  }
4675 
4676  else
4677  {
4678  durability_service_ = datawriterQos::durability_service_auto_ptr_type (new ::dds::durabilityServiceQosPolicy (e));
4679  durability_service_->container (this);
4680  }
4681  }
4682 
4683  // datawriterQos
4684  bool datawriterQos::
4685  deadline_p () const
4686  {
4687  return deadline_.get () != 0;
4688  }
4689 
4690  ::dds::deadlineQosPolicy const& datawriterQos::
4691  deadline () const
4692  {
4693  return *deadline_;
4694  }
4695 
4696  void datawriterQos::
4697  deadline (::dds::deadlineQosPolicy const& e)
4698  {
4699  if (deadline_.get ())
4700  {
4701  *deadline_ = e;
4702  }
4703 
4704  else
4705  {
4706  deadline_ = datawriterQos::deadline_auto_ptr_type (new ::dds::deadlineQosPolicy (e));
4707  deadline_->container (this);
4708  }
4709  }
4710 
4711  // datawriterQos
4712  bool datawriterQos::
4713  latency_budget_p () const
4714  {
4715  return latency_budget_.get () != 0;
4716  }
4717 
4718  ::dds::latencyBudgetQosPolicy const& datawriterQos::
4719  latency_budget () const
4720  {
4721  return *latency_budget_;
4722  }
4723 
4724  void datawriterQos::
4725  latency_budget (::dds::latencyBudgetQosPolicy const& e)
4726  {
4727  if (latency_budget_.get ())
4728  {
4729  *latency_budget_ = e;
4730  }
4731 
4732  else
4733  {
4734  latency_budget_ = datawriterQos::latency_budget_auto_ptr_type (new ::dds::latencyBudgetQosPolicy (e));
4735  latency_budget_->container (this);
4736  }
4737  }
4738 
4739  // datawriterQos
4740  bool datawriterQos::
4741  liveliness_p () const
4742  {
4743  return liveliness_.get () != 0;
4744  }
4745 
4746  ::dds::livelinessQosPolicy const& datawriterQos::
4747  liveliness () const
4748  {
4749  return *liveliness_;
4750  }
4751 
4752  void datawriterQos::
4753  liveliness (::dds::livelinessQosPolicy const& e)
4754  {
4755  if (liveliness_.get ())
4756  {
4757  *liveliness_ = e;
4758  }
4759 
4760  else
4761  {
4762  liveliness_ = datawriterQos::liveliness_auto_ptr_type (new ::dds::livelinessQosPolicy (e));
4763  liveliness_->container (this);
4764  }
4765  }
4766 
4767  // datawriterQos
4768  bool datawriterQos::
4769  reliability_p () const
4770  {
4771  return reliability_.get () != 0;
4772  }
4773 
4774  ::dds::reliabilityQosPolicy const& datawriterQos::
4775  reliability () const
4776  {
4777  return *reliability_;
4778  }
4779 
4780  void datawriterQos::
4781  reliability (::dds::reliabilityQosPolicy const& e)
4782  {
4783  if (reliability_.get ())
4784  {
4785  *reliability_ = e;
4786  }
4787 
4788  else
4789  {
4790  reliability_ = datawriterQos::reliability_auto_ptr_type (new ::dds::reliabilityQosPolicy (e));
4791  reliability_->container (this);
4792  }
4793  }
4794 
4795  // datawriterQos
4796  bool datawriterQos::
4797  destination_order_p () const
4798  {
4799  return destination_order_.get () != 0;
4800  }
4801 
4802  ::dds::destinationOrderQosPolicy const& datawriterQos::
4803  destination_order () const
4804  {
4805  return *destination_order_;
4806  }
4807 
4808  void datawriterQos::
4809  destination_order (::dds::destinationOrderQosPolicy const& e)
4810  {
4811  if (destination_order_.get ())
4812  {
4813  *destination_order_ = e;
4814  }
4815 
4816  else
4817  {
4818  destination_order_ = datawriterQos::destination_order_auto_ptr_type (new ::dds::destinationOrderQosPolicy (e));
4819  destination_order_->container (this);
4820  }
4821  }
4822 
4823  // datawriterQos
4824  bool datawriterQos::
4825  history_p () const
4826  {
4827  return history_.get () != 0;
4828  }
4829 
4830  ::dds::historyQosPolicy const& datawriterQos::
4831  history () const
4832  {
4833  return *history_;
4834  }
4835 
4836  void datawriterQos::
4837  history (::dds::historyQosPolicy const& e)
4838  {
4839  if (history_.get ())
4840  {
4841  *history_ = e;
4842  }
4843 
4844  else
4845  {
4846  history_ = datawriterQos::history_auto_ptr_type (new ::dds::historyQosPolicy (e));
4847  history_->container (this);
4848  }
4849  }
4850 
4851  // datawriterQos
4852  bool datawriterQos::
4853  resource_limits_p () const
4854  {
4855  return resource_limits_.get () != 0;
4856  }
4857 
4858  ::dds::resourceLimitsQosPolicy const& datawriterQos::
4859  resource_limits () const
4860  {
4861  return *resource_limits_;
4862  }
4863 
4864  void datawriterQos::
4865  resource_limits (::dds::resourceLimitsQosPolicy const& e)
4866  {
4867  if (resource_limits_.get ())
4868  {
4869  *resource_limits_ = e;
4870  }
4871 
4872  else
4873  {
4874  resource_limits_ = datawriterQos::resource_limits_auto_ptr_type (new ::dds::resourceLimitsQosPolicy (e));
4875  resource_limits_->container (this);
4876  }
4877  }
4878 
4879  // datawriterQos
4880  bool datawriterQos::
4881  transport_priority_p () const
4882  {
4883  return transport_priority_.get () != 0;
4884  }
4885 
4886  ::dds::transportPriorityQosPolicy const& datawriterQos::
4887  transport_priority () const
4888  {
4889  return *transport_priority_;
4890  }
4891 
4892  void datawriterQos::
4893  transport_priority (::dds::transportPriorityQosPolicy const& e)
4894  {
4895  if (transport_priority_.get ())
4896  {
4897  *transport_priority_ = e;
4898  }
4899 
4900  else
4901  {
4902  transport_priority_ = datawriterQos::transport_priority_auto_ptr_type (new ::dds::transportPriorityQosPolicy (e));
4903  transport_priority_->container (this);
4904  }
4905  }
4906 
4907  // datawriterQos
4908  bool datawriterQos::
4909  lifespan_p () const
4910  {
4911  return lifespan_.get () != 0;
4912  }
4913 
4914  ::dds::lifespanQosPolicy const& datawriterQos::
4915  lifespan () const
4916  {
4917  return *lifespan_;
4918  }
4919 
4920  void datawriterQos::
4921  lifespan (::dds::lifespanQosPolicy const& e)
4922  {
4923  if (lifespan_.get ())
4924  {
4925  *lifespan_ = e;
4926  }
4927 
4928  else
4929  {
4930  lifespan_ = datawriterQos::lifespan_auto_ptr_type (new ::dds::lifespanQosPolicy (e));
4931  lifespan_->container (this);
4932  }
4933  }
4934 
4935  // datawriterQos
4936  bool datawriterQos::
4937  user_data_p () const
4938  {
4939  return user_data_.get () != 0;
4940  }
4941 
4942  ::dds::userDataQosPolicy const& datawriterQos::
4943  user_data () const
4944  {
4945  return *user_data_;
4946  }
4947 
4948  void datawriterQos::
4949  user_data (::dds::userDataQosPolicy const& e)
4950  {
4951  if (user_data_.get ())
4952  {
4953  *user_data_ = e;
4954  }
4955 
4956  else
4957  {
4958  user_data_ = datawriterQos::user_data_auto_ptr_type (new ::dds::userDataQosPolicy (e));
4959  user_data_->container (this);
4960  }
4961  }
4962 
4963  // datawriterQos
4964  bool datawriterQos::
4965  ownership_p () const
4966  {
4967  return ownership_.get () != 0;
4968  }
4969 
4970  ::dds::ownershipQosPolicy const& datawriterQos::
4971  ownership () const
4972  {
4973  return *ownership_;
4974  }
4975 
4976  void datawriterQos::
4977  ownership (::dds::ownershipQosPolicy const& e)
4978  {
4979  if (ownership_.get ())
4980  {
4981  *ownership_ = e;
4982  }
4983 
4984  else
4985  {
4986  ownership_ = datawriterQos::ownership_auto_ptr_type (new ::dds::ownershipQosPolicy (e));
4987  ownership_->container (this);
4988  }
4989  }
4990 
4991  // datawriterQos
4992  bool datawriterQos::
4993  ownership_strength_p () const
4994  {
4995  return ownership_strength_.get () != 0;
4996  }
4997 
4998  ::dds::ownershipStrengthQosPolicy const& datawriterQos::
4999  ownership_strength () const
5000  {
5001  return *ownership_strength_;
5002  }
5003 
5004  void datawriterQos::
5005  ownership_strength (::dds::ownershipStrengthQosPolicy const& e)
5006  {
5007  if (ownership_strength_.get ())
5008  {
5009  *ownership_strength_ = e;
5010  }
5011 
5012  else
5013  {
5014  ownership_strength_ = datawriterQos::ownership_strength_auto_ptr_type (new ::dds::ownershipStrengthQosPolicy (e));
5015  ownership_strength_->container (this);
5016  }
5017  }
5018 
5019  // datawriterQos
5020  bool datawriterQos::
5021  writer_data_lifecycle_p () const
5022  {
5023  return writer_data_lifecycle_.get () != 0;
5024  }
5025 
5026  ::dds::writerDataLifecycleQosPolicy const& datawriterQos::
5027  writer_data_lifecycle () const
5028  {
5029  return *writer_data_lifecycle_;
5030  }
5031 
5032  void datawriterQos::
5033  writer_data_lifecycle (::dds::writerDataLifecycleQosPolicy const& e)
5034  {
5035  if (writer_data_lifecycle_.get ())
5036  {
5037  *writer_data_lifecycle_ = e;
5038  }
5039 
5040  else
5041  {
5042  writer_data_lifecycle_ = datawriterQos::writer_data_lifecycle_auto_ptr_type (new ::dds::writerDataLifecycleQosPolicy (e));
5043  writer_data_lifecycle_->container (this);
5044  }
5045  }
5046 
5047  // datawriterQos
5048  bool datawriterQos::
5049  representation_p () const
5050  {
5051  return representation_.get () != 0;
5052  }
5053 
5054  ::dds::dataRepresentationQosPolicy const& datawriterQos::
5055  representation () const
5056  {
5057  return *representation_;
5058  }
5059 
5060  void datawriterQos::
5061  representation (::dds::dataRepresentationQosPolicy const& e)
5062  {
5063  if (representation_.get ())
5064  {
5065  *representation_ = e;
5066  }
5067 
5068  else
5069  {
5070  representation_ = datawriterQos::representation_auto_ptr_type (new ::dds::dataRepresentationQosPolicy (e));
5071  representation_->container (this);
5072  }
5073  }
5074 
5075  // datawriterQos
5076  bool datawriterQos::
5077  name_p () const
5078  {
5079  return name_.get () != 0;
5080  }
5081 
5082  ::XMLSchema::string<ACE_TCHAR> const& datawriterQos::
5083  name () const
5084  {
5085  return *name_;
5086  }
5087 
5088  ::XMLSchema::string<ACE_TCHAR>& datawriterQos::
5089  name ()
5090  {
5091  return *name_;
5092  }
5093 
5094  void datawriterQos::
5095  name (::XMLSchema::string<ACE_TCHAR> const& e)
5096  {
5097  if (name_.get ())
5098  {
5099  *name_ = e;
5100  }
5101 
5102  else
5103  {
5104  name_ = datawriterQos::name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
5105  name_->container (this);
5106  }
5107  }
5108 
5109  // datawriterQos
5110  bool datawriterQos::
5111  base_name_p () const
5112  {
5113  return base_name_.get () != 0;
5114  }
5115 
5116  ::XMLSchema::string<ACE_TCHAR> const& datawriterQos::
5117  base_name () const
5118  {
5119  return *base_name_;
5120  }
5121 
5122  ::XMLSchema::string<ACE_TCHAR>& datawriterQos::
5123  base_name ()
5124  {
5125  return *base_name_;
5126  }
5127 
5128  void datawriterQos::
5129  base_name (::XMLSchema::string<ACE_TCHAR> const& e)
5130  {
5131  if (base_name_.get ())
5132  {
5133  *base_name_ = e;
5134  }
5135 
5136  else
5137  {
5138  base_name_ = datawriterQos::base_name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
5139  base_name_->container (this);
5140  }
5141  }
5142 
5143  // datawriterQos
5144  bool datawriterQos::
5145  topic_filter_p () const
5146  {
5147  return topic_filter_.get () != 0;
5148  }
5149 
5150  ::XMLSchema::string<ACE_TCHAR> const& datawriterQos::
5151  topic_filter () const
5152  {
5153  return *topic_filter_;
5154  }
5155 
5156  ::XMLSchema::string<ACE_TCHAR>& datawriterQos::
5157  topic_filter ()
5158  {
5159  return *topic_filter_;
5160  }
5161 
5162  void datawriterQos::
5163  topic_filter (::XMLSchema::string<ACE_TCHAR> const& e)
5164  {
5165  if (topic_filter_.get ())
5166  {
5167  *topic_filter_ = e;
5168  }
5169 
5170  else
5171  {
5172  topic_filter_ = datawriterQos::topic_filter_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
5173  topic_filter_->container (this);
5174  }
5175  }
5176 
5177 
5178  // qosProfile
5179 
5180  qosProfile::qosProfile (::XMLSchema::string<ACE_TCHAR> const& name__)
5181  : ::XSCRT::Type ()
5182  , name_ (new ::XMLSchema::string<ACE_TCHAR> (name__))
5183  {
5184  name_->container (this);
5185  }
5186 
5187  qosProfile::qosProfile (qosProfile const& s) :
5188  ::XSCRT::Type (s)
5189  , datareader_qos_ (s.datareader_qos_)
5190  , datawriter_qos_ (s.datawriter_qos_)
5191  , topic_qos_ (s.topic_qos_)
5192  , domainparticipant_qos_ (s.domainparticipant_qos_)
5193  , publisher_qos_ (s.publisher_qos_)
5194  , subscriber_qos_ (s.subscriber_qos_)
5195  , name_ (new ::XMLSchema::string<ACE_TCHAR> (*s.name_))
5196  , base_name_ (s.base_name_.get () ? new ::XMLSchema::string<ACE_TCHAR> (*s.base_name_) : 0)
5197  {
5198  name_->container (this);
5199  if (base_name_.get ()) base_name_->container (this);
5200  }
5201 
5202  qosProfile&
5203  qosProfile::operator= (qosProfile const& s)
5204  {
5205  if (&s != this)
5206  {
5207  datareader_qos_ = s.datareader_qos_;
5208 
5209  datawriter_qos_ = s.datawriter_qos_;
5210 
5211  topic_qos_ = s.topic_qos_;
5212 
5213  domainparticipant_qos_ = s.domainparticipant_qos_;
5214 
5215  publisher_qos_ = s.publisher_qos_;
5216 
5217  subscriber_qos_ = s.subscriber_qos_;
5218 
5219  name (s.name ());
5220 
5221  if (s.base_name_.get ()) base_name (*(s.base_name_));
5222  else base_name_.reset (0);
5223  }
5224 
5225  return *this;
5226  }
5227 
5228 
5229  // qosProfile
5230  qosProfile::datareader_qos_iterator qosProfile::
5231  begin_datareader_qos ()
5232  {
5233  return datareader_qos_.begin ();
5234  }
5235 
5236  qosProfile::datareader_qos_iterator qosProfile::
5237  end_datareader_qos ()
5238  {
5239  return datareader_qos_.end ();
5240  }
5241 
5242  qosProfile::datareader_qos_const_iterator qosProfile::
5243  begin_datareader_qos () const
5244  {
5245  return datareader_qos_.begin ();
5246  }
5247 
5248  qosProfile::datareader_qos_const_iterator qosProfile::
5249  end_datareader_qos () const
5250  {
5251  return datareader_qos_.end ();
5252  }
5253 
5254  void qosProfile::
5255  add_datareader_qos (qosProfile::datareader_qos_value_type const& e)
5256  {
5257  datareader_qos_.push_back (e);
5258  }
5259 
5260  size_t qosProfile::
5261  count_datareader_qos() const
5262  {
5263  return datareader_qos_.size ();
5264  }
5265 
5266  // qosProfile
5267  qosProfile::datawriter_qos_iterator qosProfile::
5268  begin_datawriter_qos ()
5269  {
5270  return datawriter_qos_.begin ();
5271  }
5272 
5273  qosProfile::datawriter_qos_iterator qosProfile::
5274  end_datawriter_qos ()
5275  {
5276  return datawriter_qos_.end ();
5277  }
5278 
5279  qosProfile::datawriter_qos_const_iterator qosProfile::
5280  begin_datawriter_qos () const
5281  {
5282  return datawriter_qos_.begin ();
5283  }
5284 
5285  qosProfile::datawriter_qos_const_iterator qosProfile::
5286  end_datawriter_qos () const
5287  {
5288  return datawriter_qos_.end ();
5289  }
5290 
5291  void qosProfile::
5292  add_datawriter_qos (qosProfile::datawriter_qos_value_type const& e)
5293  {
5294  datawriter_qos_.push_back (e);
5295  }
5296 
5297  size_t qosProfile::
5298  count_datawriter_qos() const
5299  {
5300  return datawriter_qos_.size ();
5301  }
5302 
5303  // qosProfile
5304  qosProfile::topic_qos_iterator qosProfile::
5305  begin_topic_qos ()
5306  {
5307  return topic_qos_.begin ();
5308  }
5309 
5310  qosProfile::topic_qos_iterator qosProfile::
5311  end_topic_qos ()
5312  {
5313  return topic_qos_.end ();
5314  }
5315 
5316  qosProfile::topic_qos_const_iterator qosProfile::
5317  begin_topic_qos () const
5318  {
5319  return topic_qos_.begin ();
5320  }
5321 
5322  qosProfile::topic_qos_const_iterator qosProfile::
5323  end_topic_qos () const
5324  {
5325  return topic_qos_.end ();
5326  }
5327 
5328  void qosProfile::
5329  add_topic_qos (qosProfile::topic_qos_value_type const& e)
5330  {
5331  topic_qos_.push_back (e);
5332  }
5333 
5334  size_t qosProfile::
5335  count_topic_qos() const
5336  {
5337  return topic_qos_.size ();
5338  }
5339 
5340  // qosProfile
5341  qosProfile::domainparticipant_qos_iterator qosProfile::
5342  begin_domainparticipant_qos ()
5343  {
5344  return domainparticipant_qos_.begin ();
5345  }
5346 
5347  qosProfile::domainparticipant_qos_iterator qosProfile::
5348  end_domainparticipant_qos ()
5349  {
5350  return domainparticipant_qos_.end ();
5351  }
5352 
5353  qosProfile::domainparticipant_qos_const_iterator qosProfile::
5354  begin_domainparticipant_qos () const
5355  {
5356  return domainparticipant_qos_.begin ();
5357  }
5358 
5359  qosProfile::domainparticipant_qos_const_iterator qosProfile::
5360  end_domainparticipant_qos () const
5361  {
5362  return domainparticipant_qos_.end ();
5363  }
5364 
5365  void qosProfile::
5366  add_domainparticipant_qos (qosProfile::domainparticipant_qos_value_type const& e)
5367  {
5368  domainparticipant_qos_.push_back (e);
5369  }
5370 
5371  size_t qosProfile::
5372  count_domainparticipant_qos() const
5373  {
5374  return domainparticipant_qos_.size ();
5375  }
5376 
5377  // qosProfile
5378  qosProfile::publisher_qos_iterator qosProfile::
5379  begin_publisher_qos ()
5380  {
5381  return publisher_qos_.begin ();
5382  }
5383 
5384  qosProfile::publisher_qos_iterator qosProfile::
5385  end_publisher_qos ()
5386  {
5387  return publisher_qos_.end ();
5388  }
5389 
5390  qosProfile::publisher_qos_const_iterator qosProfile::
5391  begin_publisher_qos () const
5392  {
5393  return publisher_qos_.begin ();
5394  }
5395 
5396  qosProfile::publisher_qos_const_iterator qosProfile::
5397  end_publisher_qos () const
5398  {
5399  return publisher_qos_.end ();
5400  }
5401 
5402  void qosProfile::
5403  add_publisher_qos (qosProfile::publisher_qos_value_type const& e)
5404  {
5405  publisher_qos_.push_back (e);
5406  }
5407 
5408  size_t qosProfile::
5409  count_publisher_qos() const
5410  {
5411  return publisher_qos_.size ();
5412  }
5413 
5414  // qosProfile
5415  qosProfile::subscriber_qos_iterator qosProfile::
5416  begin_subscriber_qos ()
5417  {
5418  return subscriber_qos_.begin ();
5419  }
5420 
5421  qosProfile::subscriber_qos_iterator qosProfile::
5422  end_subscriber_qos ()
5423  {
5424  return subscriber_qos_.end ();
5425  }
5426 
5427  qosProfile::subscriber_qos_const_iterator qosProfile::
5428  begin_subscriber_qos () const
5429  {
5430  return subscriber_qos_.begin ();
5431  }
5432 
5433  qosProfile::subscriber_qos_const_iterator qosProfile::
5434  end_subscriber_qos () const
5435  {
5436  return subscriber_qos_.end ();
5437  }
5438 
5439  void qosProfile::
5440  add_subscriber_qos (qosProfile::subscriber_qos_value_type const& e)
5441  {
5442  subscriber_qos_.push_back (e);
5443  }
5444 
5445  size_t qosProfile::
5446  count_subscriber_qos() const
5447  {
5448  return subscriber_qos_.size ();
5449  }
5450 
5451  // qosProfile
5452  ::XMLSchema::string<ACE_TCHAR> const& qosProfile::
5453  name () const
5454  {
5455  return *name_;
5456  }
5457 
5458  ::XMLSchema::string<ACE_TCHAR>& qosProfile::
5459  name ()
5460  {
5461  return *name_;
5462  }
5463 
5464  void qosProfile::
5465  name (::XMLSchema::string<ACE_TCHAR> const& e)
5466  {
5467  *name_ = e;
5468  }
5469 
5470  // qosProfile
5471  bool qosProfile::
5472  base_name_p () const
5473  {
5474  return base_name_.get () != 0;
5475  }
5476 
5477  ::XMLSchema::string<ACE_TCHAR> const& qosProfile::
5478  base_name () const
5479  {
5480  return *base_name_;
5481  }
5482 
5483  ::XMLSchema::string<ACE_TCHAR>& qosProfile::
5484  base_name ()
5485  {
5486  return *base_name_;
5487  }
5488 
5489  void qosProfile::
5490  base_name (::XMLSchema::string<ACE_TCHAR> const& e)
5491  {
5492  if (base_name_.get ())
5493  {
5494  *base_name_ = e;
5495  }
5496 
5497  else
5498  {
5499  base_name_ = qosProfile::base_name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (e));
5500  base_name_->container (this);
5501  }
5502  }
5503 
5504 
5505  // qosProfile_seq
5506 
5507  qosProfile_seq::qosProfile_seq ()
5508  : ::XSCRT::Type ()
5509  {
5510  }
5511 
5512  qosProfile_seq::qosProfile_seq (qosProfile_seq const& s) :
5513  ::XSCRT::Type (s)
5514  , qos_profile_ (s.qos_profile_)
5515  {
5516  }
5517 
5518  qosProfile_seq&
5519  qosProfile_seq::operator= (qosProfile_seq const& s)
5520  {
5521  if (&s != this)
5522  {
5523  qos_profile_ = s.qos_profile_;
5524  }
5525 
5526  return *this;
5527  }
5528 
5529 
5530  // qosProfile_seq
5531  qosProfile_seq::qos_profile_iterator qosProfile_seq::
5532  begin_qos_profile ()
5533  {
5534  return qos_profile_.begin ();
5535  }
5536 
5537  qosProfile_seq::qos_profile_iterator qosProfile_seq::
5538  end_qos_profile ()
5539  {
5540  return qos_profile_.end ();
5541  }
5542 
5543  qosProfile_seq::qos_profile_const_iterator qosProfile_seq::
5544  begin_qos_profile () const
5545  {
5546  return qos_profile_.begin ();
5547  }
5548 
5549  qosProfile_seq::qos_profile_const_iterator qosProfile_seq::
5550  end_qos_profile () const
5551  {
5552  return qos_profile_.end ();
5553  }
5554 
5555  void qosProfile_seq::
5556  add_qos_profile (qosProfile_seq::qos_profile_value_type const& e)
5557  {
5558  qos_profile_.push_back (e);
5559  }
5560 
5561  void qosProfile_seq::
5562  del_qos_profile(qosProfile_seq::qos_profile_value_type const& e)
5563  {
5564  qos_profile_.remove (e);
5565  }
5566 
5567  size_t qosProfile_seq::
5568  count_qos_profile() const
5569  {
5570  return qos_profile_.size ();
5571  }
5572 }
5573 
5574 namespace dds
5575 {
5576  // destinationOrderKind
5577 
5578  destinationOrderKind::
5579  destinationOrderKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5580  : ::XSCRT::Type (e)
5581  {
5582  std::basic_string<ACE_TCHAR> v (e.value ());
5583 
5584  if (v == ACE_TEXT ("BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS")) v_ = BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS_l;
5585  else if (v == ACE_TEXT ("BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS")) v_ = BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS_l;
5586  else
5587  {
5588  }
5589  }
5590 
5591  destinationOrderKind::
5592  destinationOrderKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5593  : ::XSCRT::Type (a)
5594  {
5595  std::basic_string<ACE_TCHAR> v (a.value ());
5596 
5597  if (v == ACE_TEXT ("BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS")) v_ = BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS_l;
5598  else if (v == ACE_TEXT ("BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS")) v_ = BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS_l;
5599  else
5600  {
5601  }
5602  }
5603 
5604  destinationOrderKind const destinationOrderKind::BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS (destinationOrderKind::BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS_l);
5605  destinationOrderKind const destinationOrderKind::BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS (destinationOrderKind::BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS_l);
5606 
5607  // durabilityKind
5608 
5609  durabilityKind::
5610  durabilityKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5611  : ::XSCRT::Type (e)
5612  {
5613  std::basic_string<ACE_TCHAR> v (e.value ());
5614 
5615  if (v == ACE_TEXT ("VOLATILE_DURABILITY_QOS")) v_ = VOLATILE_DURABILITY_QOS_l;
5616  else if (v == ACE_TEXT ("TRANSIENT_LOCAL_DURABILITY_QOS")) v_ = TRANSIENT_LOCAL_DURABILITY_QOS_l;
5617  else if (v == ACE_TEXT ("TRANSIENT_DURABILITY_QOS")) v_ = TRANSIENT_DURABILITY_QOS_l;
5618  else if (v == ACE_TEXT ("PERSISTENT_DURABILITY_QOS")) v_ = PERSISTENT_DURABILITY_QOS_l;
5619  else
5620  {
5621  }
5622  }
5623 
5624  durabilityKind::
5625  durabilityKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5626  : ::XSCRT::Type (a)
5627  {
5628  std::basic_string<ACE_TCHAR> v (a.value ());
5629 
5630  if (v == ACE_TEXT ("VOLATILE_DURABILITY_QOS")) v_ = VOLATILE_DURABILITY_QOS_l;
5631  else if (v == ACE_TEXT ("TRANSIENT_LOCAL_DURABILITY_QOS")) v_ = TRANSIENT_LOCAL_DURABILITY_QOS_l;
5632  else if (v == ACE_TEXT ("TRANSIENT_DURABILITY_QOS")) v_ = TRANSIENT_DURABILITY_QOS_l;
5633  else if (v == ACE_TEXT ("PERSISTENT_DURABILITY_QOS")) v_ = PERSISTENT_DURABILITY_QOS_l;
5634  else
5635  {
5636  }
5637  }
5638 
5639  durabilityKind const durabilityKind::VOLATILE_DURABILITY_QOS (durabilityKind::VOLATILE_DURABILITY_QOS_l);
5640  durabilityKind const durabilityKind::TRANSIENT_LOCAL_DURABILITY_QOS (durabilityKind::TRANSIENT_LOCAL_DURABILITY_QOS_l);
5641  durabilityKind const durabilityKind::TRANSIENT_DURABILITY_QOS (durabilityKind::TRANSIENT_DURABILITY_QOS_l);
5642  durabilityKind const durabilityKind::PERSISTENT_DURABILITY_QOS (durabilityKind::PERSISTENT_DURABILITY_QOS_l);
5643 
5644  // historyKind
5645 
5646  historyKind::
5647  historyKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5648  : ::XSCRT::Type (e)
5649  {
5650  std::basic_string<ACE_TCHAR> v (e.value ());
5651 
5652  if (v == ACE_TEXT ("KEEP_LAST_HISTORY_QOS")) v_ = KEEP_LAST_HISTORY_QOS_l;
5653  else if (v == ACE_TEXT ("KEEP_ALL_HISTORY_QOS")) v_ = KEEP_ALL_HISTORY_QOS_l;
5654  else
5655  {
5656  }
5657  }
5658 
5659  historyKind::
5660  historyKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5661  : ::XSCRT::Type (a)
5662  {
5663  std::basic_string<ACE_TCHAR> v (a.value ());
5664 
5665  if (v == ACE_TEXT ("KEEP_LAST_HISTORY_QOS")) v_ = KEEP_LAST_HISTORY_QOS_l;
5666  else if (v == ACE_TEXT ("KEEP_ALL_HISTORY_QOS")) v_ = KEEP_ALL_HISTORY_QOS_l;
5667  else
5668  {
5669  }
5670  }
5671 
5672  historyKind const historyKind::KEEP_LAST_HISTORY_QOS (historyKind::KEEP_LAST_HISTORY_QOS_l);
5673  historyKind const historyKind::KEEP_ALL_HISTORY_QOS (historyKind::KEEP_ALL_HISTORY_QOS_l);
5674 
5675  // livelinessKind
5676 
5677  livelinessKind::
5678  livelinessKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5679  : ::XSCRT::Type (e)
5680  {
5681  std::basic_string<ACE_TCHAR> v (e.value ());
5682 
5683  if (v == ACE_TEXT ("AUTOMATIC_LIVELINESS_QOS")) v_ = AUTOMATIC_LIVELINESS_QOS_l;
5684  else if (v == ACE_TEXT ("MANUAL_BY_PARTICIPANT_LIVELINESS_QOS")) v_ = MANUAL_BY_PARTICIPANT_LIVELINESS_QOS_l;
5685  else if (v == ACE_TEXT ("MANUAL_BY_TOPIC_LIVELINESS_QOS")) v_ = MANUAL_BY_TOPIC_LIVELINESS_QOS_l;
5686  else
5687  {
5688  }
5689  }
5690 
5691  livelinessKind::
5692  livelinessKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5693  : ::XSCRT::Type (a)
5694  {
5695  std::basic_string<ACE_TCHAR> v (a.value ());
5696 
5697  if (v == ACE_TEXT ("AUTOMATIC_LIVELINESS_QOS")) v_ = AUTOMATIC_LIVELINESS_QOS_l;
5698  else if (v == ACE_TEXT ("MANUAL_BY_PARTICIPANT_LIVELINESS_QOS")) v_ = MANUAL_BY_PARTICIPANT_LIVELINESS_QOS_l;
5699  else if (v == ACE_TEXT ("MANUAL_BY_TOPIC_LIVELINESS_QOS")) v_ = MANUAL_BY_TOPIC_LIVELINESS_QOS_l;
5700  else
5701  {
5702  }
5703  }
5704 
5705  livelinessKind const livelinessKind::AUTOMATIC_LIVELINESS_QOS (livelinessKind::AUTOMATIC_LIVELINESS_QOS_l);
5706  livelinessKind const livelinessKind::MANUAL_BY_PARTICIPANT_LIVELINESS_QOS (livelinessKind::MANUAL_BY_PARTICIPANT_LIVELINESS_QOS_l);
5707  livelinessKind const livelinessKind::MANUAL_BY_TOPIC_LIVELINESS_QOS (livelinessKind::MANUAL_BY_TOPIC_LIVELINESS_QOS_l);
5708 
5709  // presentationAccessScopeKind
5710 
5711  presentationAccessScopeKind::
5712  presentationAccessScopeKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5713  : ::XSCRT::Type (e)
5714  {
5715  std::basic_string<ACE_TCHAR> v (e.value ());
5716 
5717  if (v == ACE_TEXT ("INSTANCE_PRESENTATION_QOS")) v_ = INSTANCE_PRESENTATION_QOS_l;
5718  else if (v == ACE_TEXT ("TOPIC_PRESENTATION_QOS")) v_ = TOPIC_PRESENTATION_QOS_l;
5719  else if (v == ACE_TEXT ("GROUP_PRESENTATION_QOS")) v_ = GROUP_PRESENTATION_QOS_l;
5720  else
5721  {
5722  }
5723  }
5724 
5725  presentationAccessScopeKind::
5726  presentationAccessScopeKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5727  : ::XSCRT::Type (a)
5728  {
5729  std::basic_string<ACE_TCHAR> v (a.value ());
5730 
5731  if (v == ACE_TEXT ("INSTANCE_PRESENTATION_QOS")) v_ = INSTANCE_PRESENTATION_QOS_l;
5732  else if (v == ACE_TEXT ("TOPIC_PRESENTATION_QOS")) v_ = TOPIC_PRESENTATION_QOS_l;
5733  else if (v == ACE_TEXT ("GROUP_PRESENTATION_QOS")) v_ = GROUP_PRESENTATION_QOS_l;
5734  else
5735  {
5736  }
5737  }
5738 
5739  presentationAccessScopeKind const presentationAccessScopeKind::INSTANCE_PRESENTATION_QOS (presentationAccessScopeKind::INSTANCE_PRESENTATION_QOS_l);
5740  presentationAccessScopeKind const presentationAccessScopeKind::TOPIC_PRESENTATION_QOS (presentationAccessScopeKind::TOPIC_PRESENTATION_QOS_l);
5741  presentationAccessScopeKind const presentationAccessScopeKind::GROUP_PRESENTATION_QOS (presentationAccessScopeKind::GROUP_PRESENTATION_QOS_l);
5742 
5743  // reliabilityKind
5744 
5745  reliabilityKind::
5746  reliabilityKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5747  : ::XSCRT::Type (e)
5748  {
5749  std::basic_string<ACE_TCHAR> v (e.value ());
5750 
5751  if (v == ACE_TEXT ("BEST_EFFORT_RELIABILITY_QOS")) v_ = BEST_EFFORT_RELIABILITY_QOS_l;
5752  else if (v == ACE_TEXT ("RELIABLE_RELIABILITY_QOS")) v_ = RELIABLE_RELIABILITY_QOS_l;
5753  else
5754  {
5755  }
5756  }
5757 
5758  reliabilityKind::
5759  reliabilityKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5760  : ::XSCRT::Type (a)
5761  {
5762  std::basic_string<ACE_TCHAR> v (a.value ());
5763 
5764  if (v == ACE_TEXT ("BEST_EFFORT_RELIABILITY_QOS")) v_ = BEST_EFFORT_RELIABILITY_QOS_l;
5765  else if (v == ACE_TEXT ("RELIABLE_RELIABILITY_QOS")) v_ = RELIABLE_RELIABILITY_QOS_l;
5766  else
5767  {
5768  }
5769  }
5770 
5771  reliabilityKind const reliabilityKind::BEST_EFFORT_RELIABILITY_QOS (reliabilityKind::BEST_EFFORT_RELIABILITY_QOS_l);
5772  reliabilityKind const reliabilityKind::RELIABLE_RELIABILITY_QOS (reliabilityKind::RELIABLE_RELIABILITY_QOS_l);
5773 
5774  // ownershipKind
5775 
5776  ownershipKind::
5777  ownershipKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5778  : ::XSCRT::Type (e)
5779  {
5780  std::basic_string<ACE_TCHAR> v (e.value ());
5781 
5782  if (v == ACE_TEXT ("SHARED_OWNERSHIP_QOS")) v_ = SHARED_OWNERSHIP_QOS_l;
5783  else if (v == ACE_TEXT ("EXCLUSIVE_OWNERSHIP_QOS")) v_ = EXCLUSIVE_OWNERSHIP_QOS_l;
5784  else
5785  {
5786  }
5787  }
5788 
5789  ownershipKind::
5790  ownershipKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5791  : ::XSCRT::Type (a)
5792  {
5793  std::basic_string<ACE_TCHAR> v (a.value ());
5794 
5795  if (v == ACE_TEXT ("SHARED_OWNERSHIP_QOS")) v_ = SHARED_OWNERSHIP_QOS_l;
5796  else if (v == ACE_TEXT ("EXCLUSIVE_OWNERSHIP_QOS")) v_ = EXCLUSIVE_OWNERSHIP_QOS_l;
5797  else
5798  {
5799  }
5800  }
5801 
5802  ownershipKind const ownershipKind::SHARED_OWNERSHIP_QOS (ownershipKind::SHARED_OWNERSHIP_QOS_l);
5803  ownershipKind const ownershipKind::EXCLUSIVE_OWNERSHIP_QOS (ownershipKind::EXCLUSIVE_OWNERSHIP_QOS_l);
5804 
5805  // dataRepresentationIdKind
5806 
5807  dataRepresentationIdKind::
5808  dataRepresentationIdKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5809  : ::XSCRT::Type (e)
5810  {
5811  std::basic_string<ACE_TCHAR> v (e.value ());
5812 
5813  if (v == ACE_TEXT ("XCDR_DATA_REPRESENTATION")) v_ = XCDR_DATA_REPRESENTATION_l;
5814  else if (v == ACE_TEXT ("XML_DATA_REPRESENTATION")) v_ = XML_DATA_REPRESENTATION_l;
5815  else if (v == ACE_TEXT ("XCDR2_DATA_REPRESENTATION")) v_ = XCDR2_DATA_REPRESENTATION_l;
5816  else if (v == ACE_TEXT ("UNALIGNED_CDR_DATA_REPRESENTATION")) v_ = UNALIGNED_CDR_DATA_REPRESENTATION_l;
5817  else
5818  {
5819  }
5820  }
5821 
5822  dataRepresentationIdKind::
5823  dataRepresentationIdKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5824  : ::XSCRT::Type (a)
5825  {
5826  std::basic_string<ACE_TCHAR> v (a.value ());
5827 
5828  if (v == ACE_TEXT ("XCDR_DATA_REPRESENTATION")) v_ = XCDR_DATA_REPRESENTATION_l;
5829  else if (v == ACE_TEXT ("XML_DATA_REPRESENTATION")) v_ = XML_DATA_REPRESENTATION_l;
5830  else if (v == ACE_TEXT ("XCDR2_DATA_REPRESENTATION")) v_ = XCDR2_DATA_REPRESENTATION_l;
5831  else if (v == ACE_TEXT ("UNALIGNED_CDR_DATA_REPRESENTATION")) v_ = UNALIGNED_CDR_DATA_REPRESENTATION_l;
5832  else
5833  {
5834  }
5835  }
5836 
5837  dataRepresentationIdKind const dataRepresentationIdKind::XCDR_DATA_REPRESENTATION (dataRepresentationIdKind::XCDR_DATA_REPRESENTATION_l);
5838  dataRepresentationIdKind const dataRepresentationIdKind::XML_DATA_REPRESENTATION (dataRepresentationIdKind::XML_DATA_REPRESENTATION_l);
5839  dataRepresentationIdKind const dataRepresentationIdKind::XCDR2_DATA_REPRESENTATION (dataRepresentationIdKind::XCDR2_DATA_REPRESENTATION_l);
5840  dataRepresentationIdKind const dataRepresentationIdKind::UNALIGNED_CDR_DATA_REPRESENTATION (dataRepresentationIdKind::UNALIGNED_CDR_DATA_REPRESENTATION_l);
5841 
5842  // typeConsistencyKind
5843 
5844  typeConsistencyKind::
5845  typeConsistencyKind (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5846  : ::XSCRT::Type (e)
5847  {
5848  std::basic_string<ACE_TCHAR> v (e.value ());
5849 
5850  if (v == ACE_TEXT ("DISALLOW_TYPE_COERCION")) v_ = DISALLOW_TYPE_COERCION_l;
5851  else if (v == ACE_TEXT ("ALLOW_TYPE_COERCION")) v_ = ALLOW_TYPE_COERCION_l;
5852  else
5853  {
5854  }
5855  }
5856 
5857  typeConsistencyKind::
5858  typeConsistencyKind (::XSCRT::XML::Attribute<ACE_TCHAR> const& a)
5859  : ::XSCRT::Type (a)
5860  {
5861  std::basic_string<ACE_TCHAR> v (a.value ());
5862 
5863  if (v == ACE_TEXT ("DISALLOW_TYPE_COERCION")) v_ = DISALLOW_TYPE_COERCION_l;
5864  else if (v == ACE_TEXT ("ALLOW_TYPE_COERCION")) v_ = ALLOW_TYPE_COERCION_l;
5865  else
5866  {
5867  }
5868  }
5869 
5870  typeConsistencyKind const typeConsistencyKind::DISALLOW_TYPE_COERCION (typeConsistencyKind::DISALLOW_TYPE_COERCION_l);
5871  typeConsistencyKind const typeConsistencyKind::ALLOW_TYPE_COERCION (typeConsistencyKind::ALLOW_TYPE_COERCION_l);
5872 
5873  // duration
5874 
5875  duration::
5876  duration (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5877  :Base (e)
5878  {
5879 
5880  ::XSCRT::Parser<ACE_TCHAR> p (e);
5881 
5882  while (p.more_elements ())
5883  {
5884  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
5885  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
5886 
5887  if (n == ACE_TEXT("sec"))
5888  {
5889  ::XMLSchema::string<ACE_TCHAR> t (e);
5890  sec (t);
5891  }
5892 
5893  else if (n == ACE_TEXT("nanosec"))
5894  {
5895  ::XMLSchema::string<ACE_TCHAR> t (e);
5896  nanosec (t);
5897  }
5898 
5899  else
5900  {
5901  }
5902  }
5903  }
5904 
5905  // stringSeq
5906 
5907  stringSeq::
5908  stringSeq (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5909  :Base (e)
5910  {
5911 
5912  ::XSCRT::Parser<ACE_TCHAR> p (e);
5913 
5914  while (p.more_elements ())
5915  {
5916  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
5917  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
5918 
5919  if (n == ACE_TEXT("element"))
5920  {
5921  element_value_type t (new ::XMLSchema::string<ACE_TCHAR> (e));
5922  add_element (t);
5923  }
5924 
5925  else
5926  {
5927  }
5928  }
5929  }
5930 
5931  // dataRepresentationIdSeq
5932 
5933  dataRepresentationIdSeq::
5934  dataRepresentationIdSeq (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5935  :Base (e)
5936  {
5937 
5938  ::XSCRT::Parser<ACE_TCHAR> p (e);
5939 
5940  while (p.more_elements ())
5941  {
5942  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
5943  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
5944 
5945  if (n == ACE_TEXT("element"))
5946  {
5947  element_value_type t (new ::dds::dataRepresentationIdKind (e));
5948  add_element (t);
5949  }
5950 
5951  else
5952  {
5953  }
5954  }
5955  }
5956 
5957  // deadlineQosPolicy
5958 
5959  deadlineQosPolicy::
5960  deadlineQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5961  :Base (e)
5962  {
5963 
5964  ::XSCRT::Parser<ACE_TCHAR> p (e);
5965 
5966  while (p.more_elements ())
5967  {
5968  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
5969  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
5970 
5971  if (n == ACE_TEXT("period"))
5972  {
5973  ::dds::duration t (e);
5974  period (t);
5975  }
5976 
5977  else
5978  {
5979  }
5980  }
5981  }
5982 
5983  // destinationOrderQosPolicy
5984 
5985  destinationOrderQosPolicy::
5986  destinationOrderQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
5987  :Base (e)
5988  {
5989 
5990  ::XSCRT::Parser<ACE_TCHAR> p (e);
5991 
5992  while (p.more_elements ())
5993  {
5994  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
5995  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
5996 
5997  if (n == ACE_TEXT("kind"))
5998  {
5999  ::dds::destinationOrderKind t (e);
6000  kind (t);
6001  }
6002 
6003  else
6004  {
6005  }
6006  }
6007  }
6008 
6009  // durabilityQosPolicy
6010 
6011  durabilityQosPolicy::
6012  durabilityQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6013  :Base (e)
6014  {
6015 
6016  ::XSCRT::Parser<ACE_TCHAR> p (e);
6017 
6018  while (p.more_elements ())
6019  {
6020  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6021  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6022 
6023  if (n == ACE_TEXT("kind"))
6024  {
6025  ::dds::durabilityKind t (e);
6026  kind (t);
6027  }
6028 
6029  else
6030  {
6031  }
6032  }
6033  }
6034 
6035  // durabilityServiceQosPolicy
6036 
6037  durabilityServiceQosPolicy::
6038  durabilityServiceQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6039  :Base (e)
6040  {
6041 
6042  ::XSCRT::Parser<ACE_TCHAR> p (e);
6043 
6044  while (p.more_elements ())
6045  {
6046  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6047  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6048 
6049  if (n == ACE_TEXT("service_cleanup_delay"))
6050  {
6051  ::dds::duration t (e);
6052  service_cleanup_delay (t);
6053  }
6054 
6055  else if (n == ACE_TEXT("history_kind"))
6056  {
6057  ::dds::historyKind t (e);
6058  history_kind (t);
6059  }
6060 
6061  else if (n == ACE_TEXT("history_depth"))
6062  {
6063  ::XMLSchema::positiveInteger t (e);
6064  history_depth (t);
6065  }
6066 
6067  else if (n == ACE_TEXT("max_samples"))
6068  {
6069  ::XMLSchema::string<ACE_TCHAR> t (e);
6070  max_samples (t);
6071  }
6072 
6073  else if (n == ACE_TEXT("max_instances"))
6074  {
6075  ::XMLSchema::string<ACE_TCHAR> t (e);
6076  max_instances (t);
6077  }
6078 
6079  else if (n == ACE_TEXT("max_samples_per_instance"))
6080  {
6081  ::XMLSchema::string<ACE_TCHAR> t (e);
6082  max_samples_per_instance (t);
6083  }
6084 
6085  else
6086  {
6087  }
6088  }
6089  }
6090 
6091  // entityFactoryQosPolicy
6092 
6093  entityFactoryQosPolicy::
6094  entityFactoryQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6095  :Base (e)
6096  {
6097 
6098  ::XSCRT::Parser<ACE_TCHAR> p (e);
6099 
6100  while (p.more_elements ())
6101  {
6102  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6103  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6104 
6105  if (n == ACE_TEXT("autoenable_created_entities"))
6106  {
6107  ::XMLSchema::boolean t (e);
6108  autoenable_created_entities (t);
6109  }
6110 
6111  else
6112  {
6113  }
6114  }
6115  }
6116 
6117  // groupDataQosPolicy
6118 
6119  groupDataQosPolicy::
6120  groupDataQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6121  :Base (e)
6122  {
6123 
6124  ::XSCRT::Parser<ACE_TCHAR> p (e);
6125 
6126  while (p.more_elements ())
6127  {
6128  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6129  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6130 
6131  if (n == ACE_TEXT("value"))
6132  {
6133  ::XMLSchema::string<ACE_TCHAR> t (e);
6134  value (t);
6135  }
6136 
6137  else
6138  {
6139  }
6140  }
6141  }
6142 
6143  // historyQosPolicy
6144 
6145  historyQosPolicy::
6146  historyQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6147  :Base (e)
6148  {
6149 
6150  ::XSCRT::Parser<ACE_TCHAR> p (e);
6151 
6152  while (p.more_elements ())
6153  {
6154  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6155  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6156 
6157  if (n == ACE_TEXT("kind"))
6158  {
6159  ::dds::historyKind t (e);
6160  kind (t);
6161  }
6162 
6163  else if (n == ACE_TEXT("depth"))
6164  {
6165  ::XMLSchema::positiveInteger t (e);
6166  depth (t);
6167  }
6168 
6169  else
6170  {
6171  }
6172  }
6173  }
6174 
6175  // latencyBudgetQosPolicy
6176 
6177  latencyBudgetQosPolicy::
6178  latencyBudgetQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6179  :Base (e)
6180  {
6181 
6182  ::XSCRT::Parser<ACE_TCHAR> p (e);
6183 
6184  while (p.more_elements ())
6185  {
6186  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6187  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6188 
6189  if (n == ACE_TEXT("duration"))
6190  {
6191  ::dds::duration t (e);
6192  duration (t);
6193  }
6194 
6195  else
6196  {
6197  }
6198  }
6199  }
6200 
6201  // lifespanQosPolicy
6202 
6203  lifespanQosPolicy::
6204  lifespanQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6205  :Base (e)
6206  {
6207 
6208  ::XSCRT::Parser<ACE_TCHAR> p (e);
6209 
6210  while (p.more_elements ())
6211  {
6212  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6213  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6214 
6215  if (n == ACE_TEXT("duration"))
6216  {
6217  ::dds::duration t (e);
6218  duration (t);
6219  }
6220 
6221  else
6222  {
6223  }
6224  }
6225  }
6226 
6227  // livelinessQosPolicy
6228 
6229  livelinessQosPolicy::
6230  livelinessQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6231  :Base (e)
6232  {
6233 
6234  ::XSCRT::Parser<ACE_TCHAR> p (e);
6235 
6236  while (p.more_elements ())
6237  {
6238  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6239  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6240 
6241  if (n == ACE_TEXT("kind"))
6242  {
6243  ::dds::livelinessKind t (e);
6244  kind (t);
6245  }
6246 
6247  else if (n == ACE_TEXT("lease_duration"))
6248  {
6249  ::dds::duration t (e);
6250  lease_duration (t);
6251  }
6252 
6253  else
6254  {
6255  }
6256  }
6257  }
6258 
6259  // ownershipQosPolicy
6260 
6261  ownershipQosPolicy::
6262  ownershipQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6263  :Base (e)
6264  {
6265 
6266  ::XSCRT::Parser<ACE_TCHAR> p (e);
6267 
6268  while (p.more_elements ())
6269  {
6270  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6271  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6272 
6273  if (n == ACE_TEXT("kind"))
6274  {
6275  ::dds::ownershipKind t (e);
6276  kind (t);
6277  }
6278 
6279  else
6280  {
6281  }
6282  }
6283  }
6284 
6285  // ownershipStrengthQosPolicy
6286 
6287  ownershipStrengthQosPolicy::
6288  ownershipStrengthQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6289  :Base (e)
6290  {
6291 
6292  ::XSCRT::Parser<ACE_TCHAR> p (e);
6293 
6294  while (p.more_elements ())
6295  {
6296  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6297  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6298 
6299  if (n == ACE_TEXT("value"))
6300  {
6301  ::XMLSchema::nonNegativeInteger t (e);
6302  value (t);
6303  }
6304 
6305  else
6306  {
6307  }
6308  }
6309  }
6310 
6311  // partitionQosPolicy
6312 
6313  partitionQosPolicy::
6314  partitionQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6315  :Base (e)
6316  {
6317 
6318  ::XSCRT::Parser<ACE_TCHAR> p (e);
6319 
6320  while (p.more_elements ())
6321  {
6322  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6323  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6324 
6325  if (n == ACE_TEXT("name"))
6326  {
6327  ::dds::stringSeq t (e);
6328  name (t);
6329  }
6330 
6331  else
6332  {
6333  }
6334  }
6335  }
6336 
6337  // presentationQosPolicy
6338 
6339  presentationQosPolicy::
6340  presentationQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6341  :Base (e)
6342  {
6343 
6344  ::XSCRT::Parser<ACE_TCHAR> p (e);
6345 
6346  while (p.more_elements ())
6347  {
6348  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6349  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6350 
6351  if (n == ACE_TEXT("access_scope"))
6352  {
6353  ::dds::presentationAccessScopeKind t (e);
6354  access_scope (t);
6355  }
6356 
6357  else if (n == ACE_TEXT("coherent_access"))
6358  {
6359  ::XMLSchema::boolean t (e);
6360  coherent_access (t);
6361  }
6362 
6363  else if (n == ACE_TEXT("ordered_access"))
6364  {
6365  ::XMLSchema::boolean t (e);
6366  ordered_access (t);
6367  }
6368 
6369  else
6370  {
6371  }
6372  }
6373  }
6374 
6375  // readerDataLifecycleQosPolicy
6376 
6377  readerDataLifecycleQosPolicy::
6378  readerDataLifecycleQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6379  :Base (e)
6380  {
6381 
6382  ::XSCRT::Parser<ACE_TCHAR> p (e);
6383 
6384  while (p.more_elements ())
6385  {
6386  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6387  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6388 
6389  if (n == ACE_TEXT("autopurge_nowriter_samples_delay"))
6390  {
6391  ::dds::duration t (e);
6392  autopurge_nowriter_samples_delay (t);
6393  }
6394 
6395  else if (n == ACE_TEXT("autopurge_disposed_samples_delay"))
6396  {
6397  ::dds::duration t (e);
6398  autopurge_disposed_samples_delay (t);
6399  }
6400 
6401  else
6402  {
6403  }
6404  }
6405  }
6406 
6407  // reliabilityQosPolicy
6408 
6409  reliabilityQosPolicy::
6410  reliabilityQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6411  :Base (e)
6412  {
6413 
6414  ::XSCRT::Parser<ACE_TCHAR> p (e);
6415 
6416  while (p.more_elements ())
6417  {
6418  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6419  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6420 
6421  if (n == ACE_TEXT("kind"))
6422  {
6423  ::dds::reliabilityKind t (e);
6424  kind (t);
6425  }
6426 
6427  else if (n == ACE_TEXT("max_blocking_time"))
6428  {
6429  ::dds::duration t (e);
6430  max_blocking_time (t);
6431  }
6432 
6433  else
6434  {
6435  }
6436  }
6437  }
6438 
6439  // resourceLimitsQosPolicy
6440 
6441  resourceLimitsQosPolicy::
6442  resourceLimitsQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6443  :Base (e)
6444  {
6445 
6446  ::XSCRT::Parser<ACE_TCHAR> p (e);
6447 
6448  while (p.more_elements ())
6449  {
6450  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6451  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6452 
6453  if (n == ACE_TEXT("max_samples"))
6454  {
6455  ::XMLSchema::string<ACE_TCHAR> t (e);
6456  max_samples (t);
6457  }
6458 
6459  else if (n == ACE_TEXT("max_instances"))
6460  {
6461  ::XMLSchema::string<ACE_TCHAR> t (e);
6462  max_instances (t);
6463  }
6464 
6465  else if (n == ACE_TEXT("max_samples_per_instance"))
6466  {
6467  ::XMLSchema::string<ACE_TCHAR> t (e);
6468  max_samples_per_instance (t);
6469  }
6470 
6471  else if (n == ACE_TEXT("initial_samples"))
6472  {
6473  ::XMLSchema::positiveInteger t (e);
6474  initial_samples (t);
6475  }
6476 
6477  else if (n == ACE_TEXT("initial_instances"))
6478  {
6479  ::XMLSchema::positiveInteger t (e);
6480  initial_instances (t);
6481  }
6482 
6483  else
6484  {
6485  }
6486  }
6487  }
6488 
6489  // timeBasedFilterQosPolicy
6490 
6491  timeBasedFilterQosPolicy::
6492  timeBasedFilterQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6493  :Base (e)
6494  {
6495 
6496  ::XSCRT::Parser<ACE_TCHAR> p (e);
6497 
6498  while (p.more_elements ())
6499  {
6500  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6501  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6502 
6503  if (n == ACE_TEXT("minimum_separation"))
6504  {
6505  ::dds::duration t (e);
6506  minimum_separation (t);
6507  }
6508 
6509  else
6510  {
6511  }
6512  }
6513  }
6514 
6515  // topicDataQosPolicy
6516 
6517  topicDataQosPolicy::
6518  topicDataQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6519  :Base (e)
6520  {
6521 
6522  ::XSCRT::Parser<ACE_TCHAR> p (e);
6523 
6524  while (p.more_elements ())
6525  {
6526  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6527  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6528 
6529  if (n == ACE_TEXT("value"))
6530  {
6531  ::XMLSchema::string<ACE_TCHAR> t (e);
6532  value (t);
6533  }
6534 
6535  else
6536  {
6537  }
6538  }
6539  }
6540 
6541  // transportPriorityQosPolicy
6542 
6543  transportPriorityQosPolicy::
6544  transportPriorityQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6545  :Base (e)
6546  {
6547 
6548  ::XSCRT::Parser<ACE_TCHAR> p (e);
6549 
6550  while (p.more_elements ())
6551  {
6552  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6553  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6554 
6555  if (n == ACE_TEXT("value"))
6556  {
6557  ::XMLSchema::nonNegativeInteger t (e);
6558  value (t);
6559  }
6560 
6561  else
6562  {
6563  }
6564  }
6565  }
6566 
6567  // userDataQosPolicy
6568 
6569  userDataQosPolicy::
6570  userDataQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6571  :Base (e)
6572  {
6573 
6574  ::XSCRT::Parser<ACE_TCHAR> p (e);
6575 
6576  while (p.more_elements ())
6577  {
6578  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6579  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6580 
6581  if (n == ACE_TEXT("value"))
6582  {
6583  ::XMLSchema::string<ACE_TCHAR> t (e);
6584  value (t);
6585  }
6586 
6587  else
6588  {
6589  }
6590  }
6591  }
6592 
6593  // writerDataLifecycleQosPolicy
6594 
6595  writerDataLifecycleQosPolicy::
6596  writerDataLifecycleQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6597  :Base (e)
6598  {
6599 
6600  ::XSCRT::Parser<ACE_TCHAR> p (e);
6601 
6602  while (p.more_elements ())
6603  {
6604  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6605  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6606 
6607  if (n == ACE_TEXT("autodispose_unregistered_instances"))
6608  {
6609  ::XMLSchema::boolean t (e);
6610  autodispose_unregistered_instances (t);
6611  }
6612 
6613  else
6614  {
6615  }
6616  }
6617  }
6618 
6619  // dataRepresentationQosPolicy
6620 
6621  dataRepresentationQosPolicy::
6622  dataRepresentationQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6623  :Base (e)
6624  {
6625 
6626  ::XSCRT::Parser<ACE_TCHAR> p (e);
6627 
6628  while (p.more_elements ())
6629  {
6630  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6631  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6632 
6633  if (n == ACE_TEXT("value"))
6634  {
6635  ::dds::dataRepresentationIdSeq t (e);
6636  value (t);
6637  }
6638 
6639  else
6640  {
6641  }
6642  }
6643  }
6644 
6645  // typeConsistencyEnforcementQosPolicy
6646 
6647  typeConsistencyEnforcementQosPolicy::
6648  typeConsistencyEnforcementQosPolicy (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6649  :Base (e)
6650  {
6651 
6652  ::XSCRT::Parser<ACE_TCHAR> p (e);
6653 
6654  while (p.more_elements ())
6655  {
6656  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6657  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6658 
6659  if (n == ACE_TEXT("kind"))
6660  {
6661  ::dds::typeConsistencyKind t (e);
6662  kind (t);
6663  }
6664 
6665  else if (n == ACE_TEXT("ignore_sequence_bounds"))
6666  {
6667  ::XMLSchema::boolean t (e);
6668  ignore_sequence_bounds (t);
6669  }
6670 
6671  else if (n == ACE_TEXT("ignore_string_bounds"))
6672  {
6673  ::XMLSchema::boolean t (e);
6674  ignore_string_bounds (t);
6675  }
6676 
6677  else if (n == ACE_TEXT("ignore_member_names"))
6678  {
6679  ::XMLSchema::boolean t (e);
6680  ignore_member_names (t);
6681  }
6682 
6683  else if (n == ACE_TEXT("prevent_type_widening"))
6684  {
6685  ::XMLSchema::boolean t (e);
6686  prevent_type_widening (t);
6687  }
6688 
6689  else if (n == ACE_TEXT("force_type_validation"))
6690  {
6691  ::XMLSchema::boolean t (e);
6692  force_type_validation (t);
6693  }
6694 
6695  else
6696  {
6697  }
6698  }
6699  }
6700 
6701  // domainparticipantQos
6702 
6703  domainparticipantQos::
6704  domainparticipantQos (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6705  :Base (e)
6706  {
6707 
6708  ::XSCRT::Parser<ACE_TCHAR> p (e);
6709 
6710  while (p.more_elements ())
6711  {
6712  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6713  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6714 
6715  if (n == ACE_TEXT("user_data"))
6716  {
6717  ::dds::userDataQosPolicy t (e);
6718  user_data (t);
6719  }
6720 
6721  else if (n == ACE_TEXT("entity_factory"))
6722  {
6723  ::dds::entityFactoryQosPolicy t (e);
6724  entity_factory (t);
6725  }
6726 
6727  else
6728  {
6729  }
6730  }
6731 
6732  while (p.more_attributes ())
6733  {
6734  ::XSCRT::XML::Attribute<ACE_TCHAR> a (p.next_attribute ());
6735  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (a.name ()));
6736  if (n == ACE_TEXT ("name"))
6737  {
6738  ::XMLSchema::string<ACE_TCHAR> t (a);
6739  name (t);
6740  }
6741 
6742  else if (n == ACE_TEXT ("base_name"))
6743  {
6744  ::XMLSchema::string<ACE_TCHAR> t (a);
6745  base_name (t);
6746  }
6747 
6748  else
6749  {
6750  }
6751  }
6752  }
6753 
6754  // publisherQos
6755 
6756  publisherQos::
6757  publisherQos (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6758  :Base (e)
6759  {
6760 
6761  ::XSCRT::Parser<ACE_TCHAR> p (e);
6762 
6763  while (p.more_elements ())
6764  {
6765  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6766  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6767 
6768  if (n == ACE_TEXT("presentation"))
6769  {
6770  ::dds::presentationQosPolicy t (e);
6771  presentation (t);
6772  }
6773 
6774  else if (n == ACE_TEXT("partition"))
6775  {
6776  ::dds::partitionQosPolicy t (e);
6777  partition (t);
6778  }
6779 
6780  else if (n == ACE_TEXT("group_data"))
6781  {
6782  ::dds::groupDataQosPolicy t (e);
6783  group_data (t);
6784  }
6785 
6786  else if (n == ACE_TEXT("entity_factory"))
6787  {
6788  ::dds::entityFactoryQosPolicy t (e);
6789  entity_factory (t);
6790  }
6791 
6792  else
6793  {
6794  }
6795  }
6796 
6797  while (p.more_attributes ())
6798  {
6799  ::XSCRT::XML::Attribute<ACE_TCHAR> a (p.next_attribute ());
6800  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (a.name ()));
6801  if (n == ACE_TEXT ("name"))
6802  {
6803  ::XMLSchema::string<ACE_TCHAR> t (a);
6804  name (t);
6805  }
6806 
6807  else if (n == ACE_TEXT ("base_name"))
6808  {
6809  ::XMLSchema::string<ACE_TCHAR> t (a);
6810  base_name (t);
6811  }
6812 
6813  else
6814  {
6815  }
6816  }
6817  }
6818 
6819  // subscriberQos
6820 
6821  subscriberQos::
6822  subscriberQos (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6823  :Base (e)
6824  {
6825 
6826  ::XSCRT::Parser<ACE_TCHAR> p (e);
6827 
6828  while (p.more_elements ())
6829  {
6830  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6831  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6832 
6833  if (n == ACE_TEXT("presentation"))
6834  {
6835  ::dds::presentationQosPolicy t (e);
6836  presentation (t);
6837  }
6838 
6839  else if (n == ACE_TEXT("partition"))
6840  {
6841  ::dds::partitionQosPolicy t (e);
6842  partition (t);
6843  }
6844 
6845  else if (n == ACE_TEXT("group_data"))
6846  {
6847  ::dds::groupDataQosPolicy t (e);
6848  group_data (t);
6849  }
6850 
6851  else if (n == ACE_TEXT("entity_factory"))
6852  {
6853  ::dds::entityFactoryQosPolicy t (e);
6854  entity_factory (t);
6855  }
6856 
6857  else
6858  {
6859  }
6860  }
6861 
6862  while (p.more_attributes ())
6863  {
6864  ::XSCRT::XML::Attribute<ACE_TCHAR> a (p.next_attribute ());
6865  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (a.name ()));
6866  if (n == ACE_TEXT ("name"))
6867  {
6868  ::XMLSchema::string<ACE_TCHAR> t (a);
6869  name (t);
6870  }
6871 
6872  else if (n == ACE_TEXT ("base_name"))
6873  {
6874  ::XMLSchema::string<ACE_TCHAR> t (a);
6875  base_name (t);
6876  }
6877 
6878  else
6879  {
6880  }
6881  }
6882  }
6883 
6884  // topicQos
6885 
6886  topicQos::
6887  topicQos (::XSCRT::XML::Element<ACE_TCHAR> const& e)
6888  :Base (e)
6889  {
6890 
6891  ::XSCRT::Parser<ACE_TCHAR> p (e);
6892 
6893  while (p.more_elements ())
6894  {
6895  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
6896  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
6897 
6898  if (n == ACE_TEXT("topic_data"))
6899  {
6900  ::dds::topicDataQosPolicy t (e);
6901  topic_data (t);
6902  }
6903 
6904  else if (n == ACE_TEXT("durability"))
6905  {
6906  ::dds::durabilityQosPolicy t (e);
6907  durability (t);
6908  }
6909 
6910  else if (n == ACE_TEXT("durability_service"))
6911  {
6912  ::dds::durabilityServiceQosPolicy t (e);
6913  durability_service (t);
6914  }
6915 
6916  else if (n == ACE_TEXT("deadline"))
6917  {
6918  ::dds::deadlineQosPolicy t (e);
6919  deadline (t);
6920  }
6921 
6922  else if (n == ACE_TEXT("latency_budget"))
6923  {
6924  ::dds::latencyBudgetQosPolicy t (e);
6925  latency_budget (t);
6926  }
6927 
6928  else if (n == ACE_TEXT("liveliness"))
6929  {
6930  ::dds::livelinessQosPolicy t (e);
6931  liveliness (t);
6932  }
6933 
6934  else if (n == ACE_TEXT("reliability"))
6935  {
6936  ::dds::reliabilityQosPolicy t (e);
6937  reliability (t);
6938  }
6939 
6940  else if (n == ACE_TEXT("destination_order"))
6941  {
6942  ::dds::destinationOrderQosPolicy t (e);
6943  destination_order (t);
6944  }
6945 
6946  else if (n == ACE_TEXT("history"))
6947  {
6948  ::dds::historyQosPolicy t (e);
6949  history (t);
6950  }
6951 
6952  else if (n == ACE_TEXT("resource_limits"))
6953  {
6954  ::dds::resourceLimitsQosPolicy t (e);
6955  resource_limits (t);
6956  }
6957 
6958  else if (n == ACE_TEXT("transport_priority"))
6959  {
6960  ::dds::transportPriorityQosPolicy t (e);
6961  transport_priority (t);
6962  }
6963 
6964  else if (n == ACE_TEXT("lifespan"))
6965  {
6966  ::dds::lifespanQosPolicy t (e);
6967  lifespan (t);
6968  }
6969 
6970  else if (n == ACE_TEXT("ownership"))
6971  {
6972  ::dds::ownershipQosPolicy t (e);
6973  ownership (t);
6974  }
6975 
6976  else if (n == ACE_TEXT("representation"))
6977  {
6978  ::dds::dataRepresentationQosPolicy t (e);
6979  representation (t);
6980  }
6981 
6982  else
6983  {
6984  }
6985  }
6986 
6987  while (p.more_attributes ())
6988  {
6989  ::XSCRT::XML::Attribute<ACE_TCHAR> a (p.next_attribute ());
6990  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (a.name ()));
6991  if (n == ACE_TEXT ("name"))
6992  {
6993  ::XMLSchema::string<ACE_TCHAR> t (a);
6994  name (t);
6995  }
6996 
6997  else if (n == ACE_TEXT ("base_name"))
6998  {
6999  ::XMLSchema::string<ACE_TCHAR> t (a);
7000  base_name (t);
7001  }
7002 
7003  else if (n == ACE_TEXT ("topic_filter"))
7004  {
7005  ::XMLSchema::string<ACE_TCHAR> t (a);
7006  topic_filter (t);
7007  }
7008 
7009  else
7010  {
7011  }
7012  }
7013  }
7014 
7015  // datareaderQos
7016 
7017  datareaderQos::
7018  datareaderQos (::XSCRT::XML::Element<ACE_TCHAR> const& e)
7019  :Base (e)
7020  {
7021 
7022  ::XSCRT::Parser<ACE_TCHAR> p (e);
7023 
7024  while (p.more_elements ())
7025  {
7026  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
7027  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
7028 
7029  if (n == ACE_TEXT("durability"))
7030  {
7031  ::dds::durabilityQosPolicy t (e);
7032  durability (t);
7033  }
7034 
7035  else if (n == ACE_TEXT("deadline"))
7036  {
7037  ::dds::deadlineQosPolicy t (e);
7038  deadline (t);
7039  }
7040 
7041  else if (n == ACE_TEXT("latency_budget"))
7042  {
7043  ::dds::latencyBudgetQosPolicy t (e);
7044  latency_budget (t);
7045  }
7046 
7047  else if (n == ACE_TEXT("liveliness"))
7048  {
7049  ::dds::livelinessQosPolicy t (e);
7050  liveliness (t);
7051  }
7052 
7053  else if (n == ACE_TEXT("reliability"))
7054  {
7055  ::dds::reliabilityQosPolicy t (e);
7056  reliability (t);
7057  }
7058 
7059  else if (n == ACE_TEXT("destination_order"))
7060  {
7061  ::dds::destinationOrderQosPolicy t (e);
7062  destination_order (t);
7063  }
7064 
7065  else if (n == ACE_TEXT("history"))
7066  {
7067  ::dds::historyQosPolicy t (e);
7068  history (t);
7069  }
7070 
7071  else if (n == ACE_TEXT("resource_limits"))
7072  {
7073  ::dds::resourceLimitsQosPolicy t (e);
7074  resource_limits (t);
7075  }
7076 
7077  else if (n == ACE_TEXT("user_data"))
7078  {
7079  ::dds::userDataQosPolicy t (e);
7080  user_data (t);
7081  }
7082 
7083  else if (n == ACE_TEXT("ownership"))
7084  {
7085  ::dds::ownershipQosPolicy t (e);
7086  ownership (t);
7087  }
7088 
7089  else if (n == ACE_TEXT("time_based_filter"))
7090  {
7091  ::dds::timeBasedFilterQosPolicy t (e);
7092  time_based_filter (t);
7093  }
7094 
7095  else if (n == ACE_TEXT("reader_data_lifecycle"))
7096  {
7097  ::dds::readerDataLifecycleQosPolicy t (e);
7098  reader_data_lifecycle (t);
7099  }
7100 
7101  else if (n == ACE_TEXT("representation"))
7102  {
7103  ::dds::dataRepresentationQosPolicy t (e);
7104  representation (t);
7105  }
7106 
7107  else if (n == ACE_TEXT("type_consistency"))
7108  {
7109  ::dds::typeConsistencyEnforcementQosPolicy t (e);
7110  type_consistency (t);
7111  }
7112 
7113  else
7114  {
7115  }
7116  }
7117 
7118  while (p.more_attributes ())
7119  {
7120  ::XSCRT::XML::Attribute<ACE_TCHAR> a (p.next_attribute ());
7121  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (a.name ()));
7122  if (n == ACE_TEXT ("name"))
7123  {
7124  ::XMLSchema::string<ACE_TCHAR> t (a);
7125  name (t);
7126  }
7127 
7128  else if (n == ACE_TEXT ("base_name"))
7129  {
7130  ::XMLSchema::string<ACE_TCHAR> t (a);
7131  base_name (t);
7132  }
7133 
7134  else if (n == ACE_TEXT ("topic_filter"))
7135  {
7136  ::XMLSchema::string<ACE_TCHAR> t (a);
7137  topic_filter (t);
7138  }
7139 
7140  else
7141  {
7142  }
7143  }
7144  }
7145 
7146  // datawriterQos
7147 
7148  datawriterQos::
7149  datawriterQos (::XSCRT::XML::Element<ACE_TCHAR> const& e)
7150  :Base (e)
7151  {
7152 
7153  ::XSCRT::Parser<ACE_TCHAR> p (e);
7154 
7155  while (p.more_elements ())
7156  {
7157  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
7158  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
7159 
7160  if (n == ACE_TEXT("durability"))
7161  {
7162  ::dds::durabilityQosPolicy t (e);
7163  durability (t);
7164  }
7165 
7166  else if (n == ACE_TEXT("durability_service"))
7167  {
7168  ::dds::durabilityServiceQosPolicy t (e);
7169  durability_service (t);
7170  }
7171 
7172  else if (n == ACE_TEXT("deadline"))
7173  {
7174  ::dds::deadlineQosPolicy t (e);
7175  deadline (t);
7176  }
7177 
7178  else if (n == ACE_TEXT("latency_budget"))
7179  {
7180  ::dds::latencyBudgetQosPolicy t (e);
7181  latency_budget (t);
7182  }
7183 
7184  else if (n == ACE_TEXT("liveliness"))
7185  {
7186  ::dds::livelinessQosPolicy t (e);
7187  liveliness (t);
7188  }
7189 
7190  else if (n == ACE_TEXT("reliability"))
7191  {
7192  ::dds::reliabilityQosPolicy t (e);
7193  reliability (t);
7194  }
7195 
7196  else if (n == ACE_TEXT("destination_order"))
7197  {
7198  ::dds::destinationOrderQosPolicy t (e);
7199  destination_order (t);
7200  }
7201 
7202  else if (n == ACE_TEXT("history"))
7203  {
7204  ::dds::historyQosPolicy t (e);
7205  history (t);
7206  }
7207 
7208  else if (n == ACE_TEXT("resource_limits"))
7209  {
7210  ::dds::resourceLimitsQosPolicy t (e);
7211  resource_limits (t);
7212  }
7213 
7214  else if (n == ACE_TEXT("transport_priority"))
7215  {
7216  ::dds::transportPriorityQosPolicy t (e);
7217  transport_priority (t);
7218  }
7219 
7220  else if (n == ACE_TEXT("lifespan"))
7221  {
7222  ::dds::lifespanQosPolicy t (e);
7223  lifespan (t);
7224  }
7225 
7226  else if (n == ACE_TEXT("user_data"))
7227  {
7228  ::dds::userDataQosPolicy t (e);
7229  user_data (t);
7230  }
7231 
7232  else if (n == ACE_TEXT("ownership"))
7233  {
7234  ::dds::ownershipQosPolicy t (e);
7235  ownership (t);
7236  }
7237 
7238  else if (n == ACE_TEXT("ownership_strength"))
7239  {
7240  ::dds::ownershipStrengthQosPolicy t (e);
7241  ownership_strength (t);
7242  }
7243 
7244  else if (n == ACE_TEXT("writer_data_lifecycle"))
7245  {
7246  ::dds::writerDataLifecycleQosPolicy t (e);
7247  writer_data_lifecycle (t);
7248  }
7249 
7250  else if (n == ACE_TEXT("representation"))
7251  {
7252  ::dds::dataRepresentationQosPolicy t (e);
7253  representation (t);
7254  }
7255 
7256  else
7257  {
7258  }
7259  }
7260 
7261  while (p.more_attributes ())
7262  {
7263  ::XSCRT::XML::Attribute<ACE_TCHAR> a (p.next_attribute ());
7264  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (a.name ()));
7265  if (n == ACE_TEXT ("name"))
7266  {
7267  ::XMLSchema::string<ACE_TCHAR> t (a);
7268  name (t);
7269  }
7270 
7271  else if (n == ACE_TEXT ("base_name"))
7272  {
7273  ::XMLSchema::string<ACE_TCHAR> t (a);
7274  base_name (t);
7275  }
7276 
7277  else if (n == ACE_TEXT ("topic_filter"))
7278  {
7279  ::XMLSchema::string<ACE_TCHAR> t (a);
7280  topic_filter (t);
7281  }
7282 
7283  else
7284  {
7285  }
7286  }
7287  }
7288 
7289  // qosProfile
7290 
7291  qosProfile::
7292  qosProfile (::XSCRT::XML::Element<ACE_TCHAR> const& e)
7293  :Base (e)
7294  {
7295 
7296  ::XSCRT::Parser<ACE_TCHAR> p (e);
7297 
7298  while (p.more_elements ())
7299  {
7300  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
7301  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
7302 
7303  if (n == ACE_TEXT("datareader_qos"))
7304  {
7305  datareader_qos_value_type t (new ::dds::datareaderQos (e));
7306  add_datareader_qos (t);
7307  }
7308 
7309  else if (n == ACE_TEXT("datawriter_qos"))
7310  {
7311  datawriter_qos_value_type t (new ::dds::datawriterQos (e));
7312  add_datawriter_qos (t);
7313  }
7314 
7315  else if (n == ACE_TEXT("topic_qos"))
7316  {
7317  topic_qos_value_type t (new ::dds::topicQos (e));
7318  add_topic_qos (t);
7319  }
7320 
7321  else if (n == ACE_TEXT("domainparticipant_qos"))
7322  {
7323  domainparticipant_qos_value_type t (new ::dds::domainparticipantQos (e));
7324  add_domainparticipant_qos (t);
7325  }
7326 
7327  else if (n == ACE_TEXT("publisher_qos"))
7328  {
7329  publisher_qos_value_type t (new ::dds::publisherQos (e));
7330  add_publisher_qos (t);
7331  }
7332 
7333  else if (n == ACE_TEXT("subscriber_qos"))
7334  {
7335  subscriber_qos_value_type t (new ::dds::subscriberQos (e));
7336  add_subscriber_qos (t);
7337  }
7338 
7339  else
7340  {
7341  }
7342  }
7343 
7344  while (p.more_attributes ())
7345  {
7346  ::XSCRT::XML::Attribute<ACE_TCHAR> a (p.next_attribute ());
7347  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (a.name ()));
7348  if (n == ACE_TEXT ("name"))
7349  {
7350  name_ = qosProfile::name_auto_ptr_type (new ::XMLSchema::string<ACE_TCHAR> (a));
7351  name_->container (this);
7352  }
7353 
7354  else if (n == ACE_TEXT ("base_name"))
7355  {
7356  ::XMLSchema::string<ACE_TCHAR> t (a);
7357  base_name (t);
7358  }
7359 
7360  else
7361  {
7362  }
7363  }
7364  }
7365 
7366  // qosProfile_seq
7367 
7368  qosProfile_seq::
7369  qosProfile_seq (::XSCRT::XML::Element<ACE_TCHAR> const& e)
7370  :Base (e)
7371  {
7372 
7373  ::XSCRT::Parser<ACE_TCHAR> p (e);
7374 
7375  while (p.more_elements ())
7376  {
7377  ::XSCRT::XML::Element<ACE_TCHAR> e (p.next_element ());
7378  std::basic_string<ACE_TCHAR> n (::XSCRT::XML::uq_name (e.name ()));
7379 
7380  if (n == ACE_TEXT("qos_profile"))
7381  {
7382  qos_profile_value_type t (new ::dds::qosProfile (e));
7383  add_qos_profile (t);
7384  }
7385 
7386  else
7387  {
7388  }
7389  }
7390  }
7391 }
7392 
7393 namespace dds
7394 {
7395  namespace reader
7396  {
7397  ::dds::qosProfile_seq
7398  dds (xercesc::DOMDocument const* d)
7399  {
7400  // Initiate our Singleton as an ACE_TSS object (ensures thread
7401  // specific storage
7402  ID_Map::TSS_ID_Map* TSS_ID_Map (ACE_Singleton<ID_Map::TSS_ID_Map, ACE_Null_Mutex>::instance());
7403  xercesc::DOMElement* dom_element = d->getDocumentElement ();
7404  if (!dom_element)
7405  {
7406  throw 1;
7407  }
7408 
7409  ::XSCRT::XML::Element<ACE_TCHAR> e (dom_element);
7410  if (e.name () == ACE_TEXT("dds"))
7411  {
7412  ::dds::qosProfile_seq r (e);
7413 
7414  (*TSS_ID_Map)->resolve_idref();
7415 
7416  return r;
7417  }
7418 
7419  else
7420  {
7421  throw 1;
7422  }
7423  }
7424  }
7425 }
7426 
const LogLevel::Value value
Definition: debug.cpp:61
Value value_
bool operator!=(::dds::destinationOrderKind const &a, ::dds::destinationOrderKind const &b)
Definition: dds_qos.cpp:35
const DataRepresentationId_t XCDR_DATA_REPRESENTATION
::dds::qosProfile_seq dds(xercesc::DOMDocument const *d)
Definition: dds_qos.cpp:7398
Definition: dds_qos.cpp:18
const TypeConsistencyEnforcementQosPolicyKind_t ALLOW_TYPE_COERCION
const DataRepresentationId_t XCDR2_DATA_REPRESENTATION
const DataRepresentationId_t XML_DATA_REPRESENTATION
const DDS::DataRepresentationId_t UNALIGNED_CDR_DATA_REPRESENTATION
const char *const name
Definition: debug.cpp:60
bool operator==(::dds::destinationOrderKind const &a, ::dds::destinationOrderKind const &b)
Definition: dds_qos.cpp:29
ACE_TEXT("TCP_Factory")
local interface<%TYPE%> inout ::DDS::SampleInfoSeq in long max_samples
Definition: IDLTemplate.txt:72
const TypeConsistencyEnforcementQosPolicyKind_t DISALLOW_TYPE_COERCION