@@ -418,6 +418,12 @@ settings::end_time_type& settings::end_time() { return this->end_time_.get(); }
418418
419419void settings::end_time (const end_time_type& x) { this ->end_time_ .set (x); }
420420
421+ const settings::third_dimension_type& settings::third_dimension () const { return this ->third_dimension_ .get (); }
422+
423+ settings::third_dimension_type& settings::third_dimension () { return this ->third_dimension_ .get (); }
424+
425+ void settings::third_dimension (const third_dimension_type& x) { this ->third_dimension_ .set (x); }
426+
421427const settings::particle_container_type& settings::particle_container () const { return this ->particle_container_ .get (); }
422428
423429settings::particle_container_type& settings::particle_container () { return this ->particle_container_ .get (); }
@@ -1647,21 +1653,23 @@ configuration::~configuration() {}
16471653//
16481654
16491655settings::settings (const fps_type& fps, const video_length_type& video_length, const delta_t_type& delta_t , const end_time_type& end_time,
1650- const particle_container_type& particle_container)
1656+ const third_dimension_type& third_dimension, const particle_container_type& particle_container)
16511657 : ::xml_schema::type(),
16521658 fps_(fps, this ),
16531659 video_length_(video_length, this ),
16541660 delta_t_(delta_t , this ),
16551661 end_time_(end_time, this ),
1662+ third_dimension_(third_dimension, this ),
16561663 particle_container_(particle_container, this ) {}
16571664
16581665settings::settings (const fps_type& fps, const video_length_type& video_length, const delta_t_type& delta_t , const end_time_type& end_time,
1659- ::std::unique_ptr<particle_container_type> particle_container)
1666+ const third_dimension_type& third_dimension, ::std::unique_ptr<particle_container_type> particle_container)
16601667 : ::xml_schema::type(),
16611668 fps_(fps, this ),
16621669 video_length_(video_length, this ),
16631670 delta_t_(delta_t , this ),
16641671 end_time_(end_time, this ),
1672+ third_dimension_(third_dimension, this ),
16651673 particle_container_(std::move(particle_container), this) {}
16661674
16671675settings::settings (const settings& x, ::xml_schema::flags f, ::xml_schema::container* c)
@@ -1670,6 +1678,7 @@ settings::settings(const settings& x, ::xml_schema::flags f, ::xml_schema::conta
16701678 video_length_(x.video_length_, f, this ),
16711679 delta_t_(x.delta_t_, f, this ),
16721680 end_time_(x.end_time_, f, this ),
1681+ third_dimension_(x.third_dimension_, f, this ),
16731682 particle_container_(x.particle_container_, f, this ) {}
16741683
16751684settings::settings (const ::xercesc::DOMElement& e, ::xml_schema::flags f, ::xml_schema::container* c)
@@ -1678,6 +1687,7 @@ settings::settings(const ::xercesc::DOMElement& e, ::xml_schema::flags f, ::xml_
16781687 video_length_(this ),
16791688 delta_t_(this ),
16801689 end_time_(this ),
1690+ third_dimension_(this ),
16811691 particle_container_(this ) {
16821692 if ((f & ::xml_schema::flags::base) == 0 ) {
16831693 ::xsd::cxx::xml::dom::parser<char > p (e, true , false , false );
@@ -1726,6 +1736,15 @@ void settings::parse(::xsd::cxx::xml::dom::parser<char>& p, ::xml_schema::flags
17261736 }
17271737 }
17281738
1739+ // third_dimension
1740+ //
1741+ if (n.name () == " third_dimension" && n.namespace_ ().empty ()) {
1742+ if (!third_dimension_.present ()) {
1743+ this ->third_dimension_ .set (third_dimension_traits::create (i, f, this ));
1744+ continue ;
1745+ }
1746+ }
1747+
17291748 // particle_container
17301749 //
17311750 if (n.name () == " particle_container" && n.namespace_ ().empty ()) {
@@ -1756,6 +1775,10 @@ void settings::parse(::xsd::cxx::xml::dom::parser<char>& p, ::xml_schema::flags
17561775 throw ::xsd::cxx::tree::expected_element<char >(" end_time" , " " );
17571776 }
17581777
1778+ if (!third_dimension_.present ()) {
1779+ throw ::xsd::cxx::tree::expected_element<char >(" third_dimension" , " " );
1780+ }
1781+
17591782 if (!particle_container_.present ()) {
17601783 throw ::xsd::cxx::tree::expected_element<char >(" particle_container" , " " );
17611784 }
@@ -1770,6 +1793,7 @@ settings& settings::operator=(const settings& x) {
17701793 this ->video_length_ = x.video_length_ ;
17711794 this ->delta_t_ = x.delta_t_ ;
17721795 this ->end_time_ = x.end_time_ ;
1796+ this ->third_dimension_ = x.third_dimension_ ;
17731797 this ->particle_container_ = x.particle_container_ ;
17741798 }
17751799
@@ -2492,6 +2516,14 @@ void operator<<(::xercesc::DOMElement& e, const settings& i) {
24922516 s << ::xml_schema::as_double (i.end_time ());
24932517 }
24942518
2519+ // third_dimension
2520+ //
2521+ {
2522+ ::xercesc::DOMElement& s (::xsd::cxx::xml::dom::create_element (" third_dimension" , e));
2523+
2524+ s << i.third_dimension ();
2525+ }
2526+
24952527 // particle_container
24962528 //
24972529 {
0 commit comments