39 #include <xsd/cxx/pre.hxx>
117 return this->v1_.get ();
123 return this->v1_.get ();
135 return this->v2_.get ();
141 return this->v2_.get ();
153 return this->v3_.get ();
159 return this->v3_.get ();
171 return this->m_.get ();
177 return this->m_.get ();
187 m (::std::auto_ptr< m_type > x)
203 return this->v4_.get ();
209 return this->v4_.get ();
309 return this->variables_;
315 return this->variables_;
321 this->variables_.set (x);
327 this->variables_ = x;
333 this->variables_.set (x);
339 return this->vertices_.get ();
345 return this->vertices_.get ();
351 this->vertices_.set (x);
357 this->vertices_.set (x);
363 return this->elements_.get ();
369 return this->elements_.get ();
375 this->elements_.set (x);
381 this->elements_.set (x);
387 return this->edges_.get ();
393 return this->edges_.get ();
399 this->edges_.set (x);
403 edges (::std::auto_ptr< edges_type > x)
405 this->edges_.set (x);
411 return this->curves_;
417 return this->curves_;
423 this->curves_.set (x);
433 curves (::std::auto_ptr< curves_type > x)
435 this->curves_.set (x);
441 return this->refinements_;
447 return this->refinements_;
453 this->refinements_.set (x);
459 this->refinements_ = x;
465 this->refinements_.set (x);
475 return this->name_.get ();
481 return this->name_.get ();
491 name (::std::auto_ptr< name_type > x)
499 return this->value_.get ();
505 return this->value_.get ();
511 this->value_.set (x);
521 return this->x_.get ();
527 return this->x_.get ();
537 x (::std::auto_ptr< x_type > x)
545 return this->y_.get ();
551 return this->y_.get ();
561 y (::std::auto_ptr< y_type > x)
569 return this->i_.get ();
575 return this->i_.get ();
591 return this->v1_.get ();
597 return this->v1_.get ();
609 return this->v2_.get ();
615 return this->v2_.get ();
627 return this->m_.get ();
633 return this->m_.get ();
643 m (::std::auto_ptr< m_type > x)
655 return this->v1_.get ();
661 return this->v1_.get ();
673 return this->v2_.get ();
679 return this->v2_.get ();
691 return this->angle_.get ();
697 return this->angle_.get ();
703 this->angle_.set (x);
713 return this->inner_point_;
719 return this->inner_point_;
725 this->inner_point_ = s;
749 return this->v1_.get ();
755 return this->v1_.get ();
767 return this->v2_.get ();
773 return this->v2_.get ();
785 return this->deg_.get ();
791 return this->deg_.get ();
807 return this->element_id_.get ();
813 return this->element_id_.get ();
819 this->element_id_.set (x);
825 return this->refinement_type_.get ();
831 return this->refinement_type_.get ();
837 this->refinement_type_.set (x);
847 return this->x_.get ();
853 return this->x_.get ();
865 return this->y_.get ();
871 return this->y_.get ();
883 return this->weight_.get ();
889 return this->weight_.get ();
895 this->weight_.set (x);
905 return this->value_.get ();
911 return this->value_.get ();
917 this->value_.set (x);
921 #include <xsd/cxx/xml/dom/parsing-source.hxx>
923 #include <xsd/cxx/tree/type-factory-map.hxx>
928 const ::xsd::cxx::tree::type_factory_plate< 0, char >
929 type_factory_plate_init;
949 var_ (x.var_, f, this)
960 if ((f & ::xml_schema::flags::base) == 0)
962 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
false);
967 void variables_type::
968 parse (::xsd::cxx::xml::dom::parser< char >& p,
971 for (; p.more_elements (); p.next_element ())
973 const ::xercesc::DOMElement& i (p.cur_element ());
974 const ::xsd::cxx::xml::qualified_name< char > n (
975 ::xsd::cxx::xml::dom::name< char > (i));
979 if (n.name () ==
"var" && n.namespace_ ().empty ())
981 ::std::auto_ptr< var_type > r (
982 var_traits::create (i, f,
this));
984 this->var_.push_back (r);
1030 if ((f & ::xml_schema::flags::base) == 0)
1032 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
false);
1037 void vertices_type::
1038 parse (::xsd::cxx::xml::dom::parser< char >& p,
1041 for (; p.more_elements (); p.next_element ())
1043 const ::xercesc::DOMElement& i (p.cur_element ());
1044 const ::xsd::cxx::xml::qualified_name< char > n (
1045 ::xsd::cxx::xml::dom::name< char > (i));
1049 if (n.name () ==
"v" && n.namespace_ ().empty ())
1051 ::std::auto_ptr< v_type > r (
1052 v_traits::create (i, f,
this));
1054 this->v_.push_back (r);
1075 const ::xsd::cxx::tree::element_factory_initializer< 0, char, ::XMLMesh::t_t >
1076 _xsd_t_element_factory_init (
1084 const ::xsd::cxx::tree::element_factory_initializer< 0, char, ::XMLMesh::q_t >
1085 _xsd_q_element_factory_init (
1107 el_ (x.el_, f, this)
1118 if ((f & ::xml_schema::flags::base) == 0)
1120 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
false);
1125 void elements_type::
1126 parse (::xsd::cxx::xml::dom::parser< char >& p,
1129 for (; p.more_elements (); p.next_element ())
1131 const ::xercesc::DOMElement& i (p.cur_element ());
1132 const ::xsd::cxx::xml::qualified_name< char > n (
1133 ::xsd::cxx::xml::dom::name< char > (i));
1138 ::xsd::cxx::tree::type_factory_map< char >& tfm (
1139 ::xsd::cxx::tree::type_factory_map_instance< 0, char > ());
1141 ::std::auto_ptr< ::xsd::cxx::tree::type > tmp (
1145 &::xsd::cxx::tree::factory_impl< el_type >,
1146 true,
true, i, n, f,
this));
1148 if (tmp.get () != 0)
1150 ::std::auto_ptr< el_type > r (
1151 dynamic_cast< el_type* > (tmp.get ()));
1156 throw ::xsd::cxx::tree::not_derived< char > ();
1158 this->el_.push_back (r);
1200 v1_ (x.v1_, f, this),
1201 v2_ (x.v2_, f, this),
1202 v3_ (x.v3_, f, this),
1208 el_t (const ::xercesc::DOMElement& e,
1217 if ((f & ::xml_schema::flags::base) == 0)
1219 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
1225 parse (::xsd::cxx::xml::dom::parser< char >& p,
1228 while (p.more_attributes ())
1230 const ::xercesc::DOMAttr& i (p.next_attribute ());
1231 const ::xsd::cxx::xml::qualified_name< char > n (
1232 ::xsd::cxx::xml::dom::name< char > (i));
1234 if (n.name () ==
"v1" && n.namespace_ ().empty ())
1236 this->v1_.set (v1_traits::create (i, f,
this));
1240 if (n.name () ==
"v2" && n.namespace_ ().empty ())
1242 this->v2_.set (v2_traits::create (i, f,
this));
1246 if (n.name () ==
"v3" && n.namespace_ ().empty ())
1248 this->v3_.set (v3_traits::create (i, f,
this));
1252 if (n.name () ==
"m" && n.namespace_ ().empty ())
1254 ::std::auto_ptr< m_type > r (
1255 m_traits::create (i, f,
this));
1262 if (!v1_.present ())
1264 throw ::xsd::cxx::tree::expected_attribute< char > (
1269 if (!v2_.present ())
1271 throw ::xsd::cxx::tree::expected_attribute< char > (
1276 if (!v3_.present ())
1278 throw ::xsd::cxx::tree::expected_attribute< char > (
1285 throw ::xsd::cxx::tree::expected_attribute< char > (
1295 return new class el_t (*
this, f, c);
1304 const ::xsd::cxx::tree::type_factory_initializer< 0, char, el_t >
1305 _xsd_el_t_type_factory_init (
1333 t_t (const ::xercesc::DOMElement& e,
1344 return new class t_t (*
this, f, c);
1353 const ::xsd::cxx::tree::type_factory_initializer< 0, char, t_t >
1354 _xsd_t_t_type_factory_init (
1380 v4_ (x.v4_, f, this)
1385 q_t (const ::xercesc::DOMElement& e,
1391 if ((f & ::xml_schema::flags::base) == 0)
1393 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
1399 parse (::xsd::cxx::xml::dom::parser< char >& p,
1402 this->::XMLMesh::el_t::parse (p, f);
1404 p.reset_attributes ();
1406 while (p.more_attributes ())
1408 const ::xercesc::DOMAttr& i (p.next_attribute ());
1409 const ::xsd::cxx::xml::qualified_name< char > n (
1410 ::xsd::cxx::xml::dom::name< char > (i));
1412 if (n.name () ==
"v4" && n.namespace_ ().empty ())
1414 this->v4_.set (v4_traits::create (i, f,
this));
1419 if (!v4_.present ())
1421 throw ::xsd::cxx::tree::expected_attribute< char > (
1431 return new class q_t (*
this, f, c);
1440 const ::xsd::cxx::tree::type_factory_initializer< 0, char, q_t >
1441 _xsd_q_t_type_factory_init (
1460 ed_ (x.ed_, f, this)
1471 if ((f & ::xml_schema::flags::base) == 0)
1473 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
false);
1479 parse (::xsd::cxx::xml::dom::parser< char >& p,
1482 for (; p.more_elements (); p.next_element ())
1484 const ::xercesc::DOMElement& i (p.cur_element ());
1485 const ::xsd::cxx::xml::qualified_name< char > n (
1486 ::xsd::cxx::xml::dom::name< char > (i));
1490 if (n.name () ==
"ed" && n.namespace_ ().empty ())
1492 ::std::auto_ptr< ed_type > r (
1493 ed_traits::create (i, f,
this));
1495 this->ed_.push_back (r);
1531 arc_ (x.arc_, f, this),
1532 NURBS_ (x.NURBS_, f, this)
1544 if ((f & ::xml_schema::flags::base) == 0)
1546 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
false);
1552 parse (::xsd::cxx::xml::dom::parser< char >& p,
1555 for (; p.more_elements (); p.next_element ())
1557 const ::xercesc::DOMElement& i (p.cur_element ());
1558 const ::xsd::cxx::xml::qualified_name< char > n (
1559 ::xsd::cxx::xml::dom::name< char > (i));
1563 if (n.name () ==
"arc" && n.namespace_ ().empty ())
1565 ::std::auto_ptr< arc_type > r (
1566 arc_traits::create (i, f,
this));
1568 this->arc_.push_back (r);
1574 if (n.name () ==
"NURBS" && n.namespace_ ().empty ())
1576 ::std::auto_ptr< NURBS_type > r (
1577 NURBS_traits::create (i, f,
this));
1579 this->NURBS_.push_back (r);
1614 ref_ (x.ref_, f, this)
1625 if ((f & ::xml_schema::flags::base) == 0)
1627 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
false);
1632 void refinements_type::
1633 parse (::xsd::cxx::xml::dom::parser< char >& p,
1636 for (; p.more_elements (); p.next_element ())
1638 const ::xercesc::DOMElement& i (p.cur_element ());
1639 const ::xsd::cxx::xml::qualified_name< char > n (
1640 ::xsd::cxx::xml::dom::name< char > (i));
1644 if (n.name () ==
"ref" && n.namespace_ ().empty ())
1646 ::std::auto_ptr< ref_type > r (
1647 ref_traits::create (i, f,
this));
1649 this->ref_.push_back (r);
1687 mesh (::std::auto_ptr< vertices_type >& vertices,
1688 ::std::auto_ptr< elements_type >& elements,
1689 ::std::auto_ptr< edges_type >& edges)
1705 variables_ (x.variables_, f, this),
1706 vertices_ (x.vertices_, f, this),
1707 elements_ (x.elements_, f, this),
1708 edges_ (x.edges_, f, this),
1709 curves_ (x.curves_, f, this),
1710 refinements_ (x.refinements_, f, this)
1715 mesh (const ::xercesc::DOMElement& e,
1719 variables_ (f, this),
1720 vertices_ (f, this),
1721 elements_ (f, this),
1724 refinements_ (f, this)
1726 if ((f & ::xml_schema::flags::base) == 0)
1728 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
false);
1734 parse (::xsd::cxx::xml::dom::parser< char >& p,
1737 for (; p.more_elements (); p.next_element ())
1739 const ::xercesc::DOMElement& i (p.cur_element ());
1740 const ::xsd::cxx::xml::qualified_name< char > n (
1741 ::xsd::cxx::xml::dom::name< char > (i));
1745 if (n.name () ==
"variables" && n.namespace_ ().empty ())
1747 ::std::auto_ptr< variables_type > r (
1748 variables_traits::create (i, f,
this));
1750 if (!this->variables_)
1752 this->variables_.set (r);
1759 if (n.name () ==
"vertices" && n.namespace_ ().empty ())
1761 ::std::auto_ptr< vertices_type > r (
1762 vertices_traits::create (i, f,
this));
1764 if (!vertices_.present ())
1766 this->vertices_.set (r);
1773 if (n.name () ==
"elements" && n.namespace_ ().empty ())
1775 ::std::auto_ptr< elements_type > r (
1776 elements_traits::create (i, f,
this));
1778 if (!elements_.present ())
1780 this->elements_.set (r);
1787 if (n.name () ==
"edges" && n.namespace_ ().empty ())
1789 ::std::auto_ptr< edges_type > r (
1790 edges_traits::create (i, f,
this));
1792 if (!edges_.present ())
1794 this->edges_.set (r);
1801 if (n.name () ==
"curves" && n.namespace_ ().empty ())
1803 ::std::auto_ptr< curves_type > r (
1804 curves_traits::create (i, f,
this));
1808 this->curves_.set (r);
1815 if (n.name () ==
"refinements" && n.namespace_ ().empty ())
1817 ::std::auto_ptr< refinements_type > r (
1818 refinements_traits::create (i, f,
this));
1820 if (!this->refinements_)
1822 this->refinements_.set (r);
1830 if (!vertices_.present ())
1832 throw ::xsd::cxx::tree::expected_element< char > (
1837 if (!elements_.present ())
1839 throw ::xsd::cxx::tree::expected_element< char > (
1844 if (!edges_.present ())
1846 throw ::xsd::cxx::tree::expected_element< char > (
1856 return new class mesh (*
this, f, c);
1881 name_ (x.name_, f, this),
1882 value_ (x.value_, f, this)
1887 var (const ::xercesc::DOMElement& e,
1894 if ((f & ::xml_schema::flags::base) == 0)
1896 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
1902 parse (::xsd::cxx::xml::dom::parser< char >& p,
1905 while (p.more_attributes ())
1907 const ::xercesc::DOMAttr& i (p.next_attribute ());
1908 const ::xsd::cxx::xml::qualified_name< char > n (
1909 ::xsd::cxx::xml::dom::name< char > (i));
1911 if (n.name () ==
"name" && n.namespace_ ().empty ())
1913 ::std::auto_ptr< name_type > r (
1914 name_traits::create (i, f,
this));
1916 this->name_.set (r);
1920 if (n.name () ==
"value" && n.namespace_ ().empty ())
1922 this->value_.set (value_traits::create (i, f,
this));
1927 if (!name_.present ())
1929 throw ::xsd::cxx::tree::expected_attribute< char > (
1934 if (!value_.present ())
1936 throw ::xsd::cxx::tree::expected_attribute< char > (
1946 return new class var (*
this, f, c);
1980 v (const ::xercesc::DOMElement& e,
1988 if ((f & ::xml_schema::flags::base) == 0)
1990 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
1996 parse (::xsd::cxx::xml::dom::parser< char >& p,
1999 while (p.more_attributes ())
2001 const ::xercesc::DOMAttr&
i (p.next_attribute ());
2002 const ::xsd::cxx::xml::qualified_name< char > n (
2003 ::xsd::cxx::xml::dom::name< char > (
i));
2005 if (n.name () ==
"x" && n.namespace_ ().empty ())
2007 ::std::auto_ptr< x_type > r (
2008 x_traits::create (
i, f,
this));
2014 if (n.name () ==
"y" && n.namespace_ ().empty ())
2016 ::std::auto_ptr< y_type > r (
2017 y_traits::create (
i, f,
this));
2023 if (n.name () ==
"i" && n.namespace_ ().empty ())
2025 this->i_.set (i_traits::create (
i, f,
this));
2032 throw ::xsd::cxx::tree::expected_attribute< char > (
2039 throw ::xsd::cxx::tree::expected_attribute< char > (
2046 throw ::xsd::cxx::tree::expected_attribute< char > (
2056 return new class v (*
this, f, c);
2083 v1_ (x.v1_, f, this),
2084 v2_ (x.v2_, f, this),
2090 ed (const ::xercesc::DOMElement& e,
2098 if ((f & ::xml_schema::flags::base) == 0)
2100 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
2106 parse (::xsd::cxx::xml::dom::parser< char >& p,
2109 while (p.more_attributes ())
2111 const ::xercesc::DOMAttr& i (p.next_attribute ());
2112 const ::xsd::cxx::xml::qualified_name< char > n (
2113 ::xsd::cxx::xml::dom::name< char > (i));
2115 if (n.name () ==
"v1" && n.namespace_ ().empty ())
2117 this->v1_.set (v1_traits::create (i, f,
this));
2121 if (n.name () ==
"v2" && n.namespace_ ().empty ())
2123 this->v2_.set (v2_traits::create (i, f,
this));
2127 if (n.name () ==
"m" && n.namespace_ ().empty ())
2129 ::std::auto_ptr< m_type > r (
2130 m_traits::create (i, f,
this));
2137 if (!v1_.present ())
2139 throw ::xsd::cxx::tree::expected_attribute< char > (
2144 if (!v2_.present ())
2146 throw ::xsd::cxx::tree::expected_attribute< char > (
2153 throw ::xsd::cxx::tree::expected_attribute< char > (
2163 return new class ed (*
this, f, c);
2190 v1_ (x.v1_, f, this),
2191 v2_ (x.v2_, f, this),
2192 angle_ (x.angle_, f, this)
2197 arc (const ::xercesc::DOMElement& e,
2205 if ((f & ::xml_schema::flags::base) == 0)
2207 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
2213 parse (::xsd::cxx::xml::dom::parser< char >& p,
2216 while (p.more_attributes ())
2218 const ::xercesc::DOMAttr& i (p.next_attribute ());
2219 const ::xsd::cxx::xml::qualified_name< char > n (
2220 ::xsd::cxx::xml::dom::name< char > (i));
2222 if (n.name () ==
"v1" && n.namespace_ ().empty ())
2224 this->v1_.set (v1_traits::create (i, f,
this));
2228 if (n.name () ==
"v2" && n.namespace_ ().empty ())
2230 this->v2_.set (v2_traits::create (i, f,
this));
2234 if (n.name () ==
"angle" && n.namespace_ ().empty ())
2236 this->angle_.set (angle_traits::create (i, f,
this));
2241 if (!v1_.present ())
2243 throw ::xsd::cxx::tree::expected_attribute< char > (
2248 if (!v2_.present ())
2250 throw ::xsd::cxx::tree::expected_attribute< char > (
2255 if (!angle_.present ())
2257 throw ::xsd::cxx::tree::expected_attribute< char > (
2267 return new class arc (*
this, f, c);
2296 inner_point_ (x.inner_point_, f, this),
2297 knot_ (x.knot_, f, this),
2298 v1_ (x.v1_, f, this),
2299 v2_ (x.v2_, f, this),
2300 deg_ (x.deg_, f, this)
2309 inner_point_ (f, this),
2315 if ((f & ::xml_schema::flags::base) == 0)
2317 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
true);
2323 parse (::xsd::cxx::xml::dom::parser< char >& p,
2326 for (; p.more_elements (); p.next_element ())
2328 const ::xercesc::DOMElement& i (p.cur_element ());
2329 const ::xsd::cxx::xml::qualified_name< char > n (
2330 ::xsd::cxx::xml::dom::name< char > (i));
2334 if (n.name () ==
"inner_point" && n.namespace_ ().empty ())
2336 ::std::auto_ptr< inner_point_type > r (
2337 inner_point_traits::create (i, f,
this));
2339 this->inner_point_.push_back (r);
2345 if (n.name () ==
"knot" && n.namespace_ ().empty ())
2347 ::std::auto_ptr< knot_type > r (
2348 knot_traits::create (i, f,
this));
2350 this->knot_.push_back (r);
2357 while (p.more_attributes ())
2359 const ::xercesc::DOMAttr& i (p.next_attribute ());
2360 const ::xsd::cxx::xml::qualified_name< char > n (
2361 ::xsd::cxx::xml::dom::name< char > (i));
2363 if (n.name () ==
"v1" && n.namespace_ ().empty ())
2365 this->v1_.set (v1_traits::create (i, f,
this));
2369 if (n.name () ==
"v2" && n.namespace_ ().empty ())
2371 this->v2_.set (v2_traits::create (i, f,
this));
2375 if (n.name () ==
"deg" && n.namespace_ ().empty ())
2377 this->deg_.set (deg_traits::create (i, f,
this));
2382 if (!v1_.present ())
2384 throw ::xsd::cxx::tree::expected_attribute< char > (
2389 if (!v2_.present ())
2391 throw ::xsd::cxx::tree::expected_attribute< char > (
2396 if (!deg_.present ())
2398 throw ::xsd::cxx::tree::expected_attribute< char > (
2408 return new class NURBS (*
this, f, c);
2433 element_id_ (x.element_id_, f, this),
2434 refinement_type_ (x.refinement_type_, f, this)
2439 ref (const ::xercesc::DOMElement& e,
2443 element_id_ (f, this),
2444 refinement_type_ (f, this)
2446 if ((f & ::xml_schema::flags::base) == 0)
2448 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
2454 parse (::xsd::cxx::xml::dom::parser< char >& p,
2457 while (p.more_attributes ())
2459 const ::xercesc::DOMAttr& i (p.next_attribute ());
2460 const ::xsd::cxx::xml::qualified_name< char > n (
2461 ::xsd::cxx::xml::dom::name< char > (i));
2463 if (n.name () ==
"element_id" && n.namespace_ ().empty ())
2465 this->element_id_.set (element_id_traits::create (i, f,
this));
2469 if (n.name () ==
"refinement_type" && n.namespace_ ().empty ())
2471 this->refinement_type_.set (refinement_type_traits::create (i, f,
this));
2476 if (!element_id_.present ())
2478 throw ::xsd::cxx::tree::expected_attribute< char > (
2483 if (!refinement_type_.present ())
2485 throw ::xsd::cxx::tree::expected_attribute< char > (
2495 return new class ref (*
this, f, c);
2524 weight_ (x.weight_, f, this)
2537 if ((f & ::xml_schema::flags::base) == 0)
2539 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
2545 parse (::xsd::cxx::xml::dom::parser< char >& p,
2548 while (p.more_attributes ())
2550 const ::xercesc::DOMAttr& i (p.next_attribute ());
2551 const ::xsd::cxx::xml::qualified_name< char > n (
2552 ::xsd::cxx::xml::dom::name< char > (i));
2554 if (n.name () ==
"x" && n.namespace_ ().empty ())
2556 this->x_.set (x_traits::create (i, f,
this));
2560 if (n.name () ==
"y" && n.namespace_ ().empty ())
2562 this->y_.set (y_traits::create (i, f,
this));
2566 if (n.name () ==
"weight" && n.namespace_ ().empty ())
2568 this->weight_.set (weight_traits::create (i, f,
this));
2575 throw ::xsd::cxx::tree::expected_attribute< char > (
2582 throw ::xsd::cxx::tree::expected_attribute< char > (
2587 if (!weight_.present ())
2589 throw ::xsd::cxx::tree::expected_attribute< char > (
2622 value_ (x.value_, f, this)
2627 knot (const ::xercesc::DOMElement& e,
2633 if ((f & ::xml_schema::flags::base) == 0)
2635 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
2641 parse (::xsd::cxx::xml::dom::parser< char >& p,
2644 while (p.more_attributes ())
2646 const ::xercesc::DOMAttr& i (p.next_attribute ());
2647 const ::xsd::cxx::xml::qualified_name< char > n (
2648 ::xsd::cxx::xml::dom::name< char > (i));
2650 if (n.name () ==
"value" && n.namespace_ ().empty ())
2652 this->value_.set (value_traits::create (i, f,
this));
2657 if (!value_.present ())
2659 throw ::xsd::cxx::tree::expected_attribute< char > (
2669 return new class knot (*
this, f, c);
2680 #include <xsd/cxx/tree/std-ostream-map.hxx>
2685 const ::xsd::cxx::tree::std_ostream_plate< 0, char >
2686 std_ostream_plate_init;
2692 operator<< (::std::ostream& o,
const variables_type& i)
2695 b (i.var ().begin ()), e (i.var ().end ());
2698 o << ::std::endl <<
"var: " << *b;
2705 operator<< (::std::ostream& o,
const vertices_type& i)
2708 b (i.v ().begin ()), e (i.v ().end ());
2711 o << ::std::endl <<
"v: " << *b;
2718 operator<< (::std::ostream& o,
const elements_type& i)
2721 ::xsd::cxx::tree::std_ostream_map< char >& om (
2722 ::xsd::cxx::tree::std_ostream_map_instance< 0, char > ());
2725 b (i.el ().begin ()), e (i.el ().end ());
2728 o << ::std::endl <<
"el: ";
2737 operator<< (::std::ostream& o,
const el_t& i)
2739 o << ::std::endl <<
"v1: " << i.v1 ();
2740 o << ::std::endl <<
"v2: " << i.v2 ();
2741 o << ::std::endl <<
"v3: " << i.v3 ();
2742 o << ::std::endl <<
"m: " << i.m ();
2747 const ::xsd::cxx::tree::std_ostream_initializer< 0, char, el_t >
2748 _xsd_el_t_std_ostream_init;
2751 operator<< (::std::ostream& o,
const t_t& i)
2753 o << static_cast< const ::XMLMesh::el_t& > (i);
2759 const ::xsd::cxx::tree::std_ostream_initializer< 0, char, t_t >
2760 _xsd_t_t_std_ostream_init;
2763 operator<< (::std::ostream& o,
const q_t& i)
2765 o << static_cast< const ::XMLMesh::el_t& > (i);
2767 o << ::std::endl <<
"v4: " << i.v4 ();
2772 const ::xsd::cxx::tree::std_ostream_initializer< 0, char, q_t >
2773 _xsd_q_t_std_ostream_init;
2776 operator<< (::std::ostream& o,
const edges_type& i)
2779 b (i.ed ().begin ()), e (i.ed ().end ());
2782 o << ::std::endl <<
"ed: " << *b;
2789 operator<< (::std::ostream& o,
const curves_type& i)
2792 b (i.arc ().begin ()), e (i.arc ().end ());
2795 o << ::std::endl <<
"arc: " << *b;
2799 b (i.NURBS ().begin ()), e (i.NURBS ().end ());
2802 o << ::std::endl <<
"NURBS: " << *b;
2809 operator<< (::std::ostream& o,
const refinements_type& i)
2812 b (i.ref ().begin ()), e (i.ref ().end ());
2815 o << ::std::endl <<
"ref: " << *b;
2822 operator<< (::std::ostream& o,
const mesh& i)
2826 o << ::std::endl <<
"variables: " << *i.variables ();
2829 o << ::std::endl <<
"vertices: " << i.vertices ();
2830 o << ::std::endl <<
"elements: " << i.elements ();
2831 o << ::std::endl <<
"edges: " << i.edges ();
2834 o << ::std::endl <<
"curves: " << *i.curves ();
2837 if (i.refinements ())
2839 o << ::std::endl <<
"refinements: " << *i.refinements ();
2846 operator<< (::std::ostream& o,
const var& i)
2848 o << ::std::endl <<
"name: " << i.name ();
2849 o << ::std::endl <<
"value: " << i.value ();
2854 operator<< (::std::ostream& o,
const v& i)
2856 o << ::std::endl <<
"x: " << i.x ();
2857 o << ::std::endl <<
"y: " << i.y ();
2858 o << ::std::endl <<
"i: " << i.i ();
2863 operator<< (::std::ostream& o,
const ed& i)
2865 o << ::std::endl <<
"v1: " << i.v1 ();
2866 o << ::std::endl <<
"v2: " << i.v2 ();
2867 o << ::std::endl <<
"m: " << i.m ();
2872 operator<< (::std::ostream& o,
const arc& i)
2874 o << ::std::endl <<
"v1: " << i.v1 ();
2875 o << ::std::endl <<
"v2: " << i.v2 ();
2876 o << ::std::endl <<
"angle: " << i.angle ();
2881 operator<< (::std::ostream& o,
const NURBS& i)
2884 b (i.inner_point ().begin ()), e (i.inner_point ().end ());
2887 o << ::std::endl <<
"inner_point: " << *b;
2891 b (i.knot ().begin ()), e (i.knot ().end ());
2894 o << ::std::endl <<
"knot: " << *b;
2897 o << ::std::endl <<
"v1: " << i.v1 ();
2898 o << ::std::endl <<
"v2: " << i.v2 ();
2899 o << ::std::endl <<
"deg: " << i.deg ();
2904 operator<< (::std::ostream& o,
const ref& i)
2906 o << ::std::endl <<
"element_id: " << i.element_id ();
2907 o << ::std::endl <<
"refinement_type: " << i.refinement_type ();
2912 operator<< (::std::ostream& o,
const inner_point& i)
2914 o << ::std::endl <<
"x: " << i.x ();
2915 o << ::std::endl <<
"y: " << i.y ();
2916 o << ::std::endl <<
"weight: " << i.weight ();
2921 operator<< (::std::ostream& o,
const knot& i)
2923 o << ::std::endl <<
"value: " << i.value ();
2929 #include <xsd/cxx/xml/sax/std-input-source.hxx>
2930 #include <xsd/cxx/tree/error-handler.hxx>
2934 ::std::auto_ptr< ::XMLMesh::mesh >
2939 ::xsd::cxx::xml::auto_initializer i (
2940 (f & ::xml_schema::flags::dont_initialize) == 0,
2941 (f & ::xml_schema::flags::keep_dom) == 0);
2943 ::xsd::cxx::tree::error_handler< char > h;
2945 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
2946 ::xsd::cxx::xml::dom::parse< char > (
2949 h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > ();
2951 ::std::auto_ptr< ::XMLMesh::mesh > r (
2953 d, f | ::xml_schema::flags::own_dom, p));
2958 ::std::auto_ptr< ::XMLMesh::mesh >
2964 ::xsd::cxx::xml::auto_initializer i (
2965 (f & ::xml_schema::flags::dont_initialize) == 0,
2966 (f & ::xml_schema::flags::keep_dom) == 0);
2968 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
2969 ::xsd::cxx::xml::dom::parse< char > (
2973 throw ::xsd::cxx::tree::parsing< char > ();
2975 ::std::auto_ptr< ::XMLMesh::mesh > r (
2977 d, f | ::xml_schema::flags::own_dom, p));
2982 ::std::auto_ptr< ::XMLMesh::mesh >
2984 ::xercesc::DOMErrorHandler& h,
2988 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
2989 ::xsd::cxx::xml::dom::parse< char > (
2993 throw ::xsd::cxx::tree::parsing< char > ();
2995 ::std::auto_ptr< ::XMLMesh::mesh > r (
2997 d, f | ::xml_schema::flags::own_dom, p));
3002 ::std::auto_ptr< ::XMLMesh::mesh >
3007 ::xsd::cxx::xml::auto_initializer i (
3008 (f & ::xml_schema::flags::dont_initialize) == 0,
3009 (f & ::xml_schema::flags::keep_dom) == 0);
3011 ::xsd::cxx::xml::sax::std_input_source isrc (is);
3015 ::std::auto_ptr< ::XMLMesh::mesh >
3021 ::xsd::cxx::xml::auto_initializer i (
3022 (f & ::xml_schema::flags::dont_initialize) == 0,
3023 (f & ::xml_schema::flags::keep_dom) == 0);
3025 ::xsd::cxx::xml::sax::std_input_source isrc (is);
3029 ::std::auto_ptr< ::XMLMesh::mesh >
3031 ::xercesc::DOMErrorHandler& h,
3035 ::xsd::cxx::xml::sax::std_input_source isrc (is);
3039 ::std::auto_ptr< ::XMLMesh::mesh >
3045 ::xsd::cxx::xml::auto_initializer i (
3046 (f & ::xml_schema::flags::dont_initialize) == 0,
3047 (f & ::xml_schema::flags::keep_dom) == 0);
3049 ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
3053 ::std::auto_ptr< ::XMLMesh::mesh >
3060 ::xsd::cxx::xml::auto_initializer i (
3061 (f & ::xml_schema::flags::dont_initialize) == 0,
3062 (f & ::xml_schema::flags::keep_dom) == 0);
3064 ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
3068 ::std::auto_ptr< ::XMLMesh::mesh >
3071 ::xercesc::DOMErrorHandler& h,
3075 ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
3079 ::std::auto_ptr< ::XMLMesh::mesh >
3084 ::xsd::cxx::tree::error_handler< char > h;
3086 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3087 ::xsd::cxx::xml::dom::parse< char > (
3090 h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > ();
3092 ::std::auto_ptr< ::XMLMesh::mesh > r (
3094 d, f | ::xml_schema::flags::own_dom, p));
3099 ::std::auto_ptr< ::XMLMesh::mesh >
3105 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3106 ::xsd::cxx::xml::dom::parse< char > (
3110 throw ::xsd::cxx::tree::parsing< char > ();
3112 ::std::auto_ptr< ::XMLMesh::mesh > r (
3114 d, f | ::xml_schema::flags::own_dom, p));
3119 ::std::auto_ptr< ::XMLMesh::mesh >
3121 ::xercesc::DOMErrorHandler& h,
3125 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3126 ::xsd::cxx::xml::dom::parse< char > (
3130 throw ::xsd::cxx::tree::parsing< char > ();
3132 ::std::auto_ptr< ::XMLMesh::mesh > r (
3134 d, f | ::xml_schema::flags::own_dom, p));
3139 ::std::auto_ptr< ::XMLMesh::mesh >
3144 if (f & ::xml_schema::flags::keep_dom)
3146 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > c (
3147 static_cast< ::xercesc::DOMDocument* > (d.cloneNode (
true)));
3149 ::std::auto_ptr< ::XMLMesh::mesh > r (
3151 c, f | ::xml_schema::flags::own_dom, p));
3156 const ::xercesc::DOMElement& e (*d.getDocumentElement ());
3157 const ::xsd::cxx::xml::qualified_name< char > n (
3158 ::xsd::cxx::xml::dom::name< char > (e));
3160 if (n.name () ==
"mesh" &&
3161 n.namespace_ () ==
"XMLMesh")
3163 ::std::auto_ptr< ::XMLMesh::mesh > r (
3164 ::xsd::cxx::tree::traits< ::XMLMesh::mesh, char >::create (
3169 throw ::xsd::cxx::tree::unexpected_element < char > (
3176 ::std::auto_ptr< ::XMLMesh::mesh >
3177 mesh_ (::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument >& d,
3181 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > c (
3182 ((f & ::xml_schema::flags::keep_dom) &&
3183 !(f & ::xml_schema::flags::own_dom))
3184 ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (
true))
3187 ::xercesc::DOMDocument& doc (c.get () ? *c : *d);
3188 const ::xercesc::DOMElement& e (*doc.getDocumentElement ());
3190 const ::xsd::cxx::xml::qualified_name< char > n (
3191 ::xsd::cxx::xml::dom::name< char > (e));
3193 if (f & ::xml_schema::flags::keep_dom)
3195 (c.get () ? &c : &d),
3198 if (n.name () ==
"mesh" &&
3199 n.namespace_ () ==
"XMLMesh")
3201 ::std::auto_ptr< ::XMLMesh::mesh > r (
3202 ::xsd::cxx::tree::traits< ::XMLMesh::mesh, char >::create (
3207 throw ::xsd::cxx::tree::unexpected_element < char > (
3216 #include <xsd/cxx/tree/error-handler.hxx>
3217 #include <xsd/cxx/xml/dom/serialization-source.hxx>
3219 #include <xsd/cxx/tree/type-serializer-map.hxx>
3224 const ::xsd::cxx::tree::type_serializer_plate< 0, char >
3225 type_serializer_plate_init;
3232 const ::XMLMesh::mesh& s,
3237 ::xsd::cxx::xml::auto_initializer i (
3238 (f & ::xml_schema::flags::dont_initialize) == 0);
3240 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3243 ::xsd::cxx::tree::error_handler< char > h;
3245 ::xsd::cxx::xml::dom::ostream_format_target t (o);
3246 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
3248 h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > ();
3254 const ::XMLMesh::mesh& s,
3260 ::xsd::cxx::xml::auto_initializer i (
3261 (f & ::xml_schema::flags::dont_initialize) == 0);
3263 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3265 ::xsd::cxx::xml::dom::ostream_format_target t (o);
3266 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
3268 throw ::xsd::cxx::tree::serialization< char > ();
3274 const ::XMLMesh::mesh& s,
3275 ::xercesc::DOMErrorHandler& h,
3280 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3282 ::xsd::cxx::xml::dom::ostream_format_target t (o);
3283 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
3285 throw ::xsd::cxx::tree::serialization< char > ();
3291 const ::XMLMesh::mesh& s,
3296 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3299 ::xsd::cxx::tree::error_handler< char > h;
3301 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
3303 h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > ();
3309 const ::XMLMesh::mesh& s,
3315 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3317 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
3319 throw ::xsd::cxx::tree::serialization< char > ();
3325 const ::XMLMesh::mesh& s,
3326 ::xercesc::DOMErrorHandler& h,
3331 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3333 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
3335 throw ::xsd::cxx::tree::serialization< char > ();
3341 const ::XMLMesh::mesh& s,
3344 ::xercesc::DOMElement& e (*d.getDocumentElement ());
3345 const ::xsd::cxx::xml::qualified_name< char > n (
3346 ::xsd::cxx::xml::dom::name< char > (e));
3348 if (n.name () ==
"mesh" &&
3349 n.namespace_ () ==
"XMLMesh")
3355 throw ::xsd::cxx::tree::unexpected_element < char > (
3363 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument >
3368 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
3369 ::xsd::cxx::xml::dom::serialize< char > (
3379 operator<< (::xercesc::DOMElement& e,
const variables_type& i)
3381 e << static_cast< const ::xml_schema::type& > (i);
3386 b (i.var ().begin ()), n (i.var ().end ());
3389 ::xercesc::DOMElement& s (
3390 ::xsd::cxx::xml::dom::create_element (
3399 operator<< (::xercesc::DOMElement& e,
const vertices_type& i)
3401 e << static_cast< const ::xml_schema::type& > (i);
3406 b (i.v ().begin ()), n (i.v ().end ());
3409 ::xercesc::DOMElement& s (
3410 ::xsd::cxx::xml::dom::create_element (
3419 const ::xsd::cxx::tree::element_serializer_initializer< 0, char, ::XMLMesh::t_t >
3420 _xsd_t_element_serializer_init (
3428 const ::xsd::cxx::tree::element_serializer_initializer< 0, char, ::XMLMesh::q_t >
3429 _xsd_q_element_serializer_init (
3437 operator<< (::xercesc::DOMElement& e,
const elements_type& i)
3439 e << static_cast< const ::xml_schema::type& > (i);
3444 ::xsd::cxx::tree::type_serializer_map< char >& tsm (
3445 ::xsd::cxx::tree::type_serializer_map_instance< 0, char > ());
3448 b (i.el ().begin ()), n (i.el ().end ());
3453 ::xercesc::DOMElement& s (
3454 ::xsd::cxx::xml::dom::create_element (
3471 operator<< (::xercesc::DOMElement& e,
const el_t& i)
3473 e << static_cast< const ::xml_schema::type& > (i);
3478 ::xercesc::DOMAttr& a (
3479 ::xsd::cxx::xml::dom::create_attribute (
3489 ::xercesc::DOMAttr& a (
3490 ::xsd::cxx::xml::dom::create_attribute (
3500 ::xercesc::DOMAttr& a (
3501 ::xsd::cxx::xml::dom::create_attribute (
3511 ::xercesc::DOMAttr& a (
3512 ::xsd::cxx::xml::dom::create_attribute (
3521 const ::xsd::cxx::tree::type_serializer_initializer< 0, char, el_t >
3522 _xsd_el_t_type_serializer_init (
3528 operator<< (::xercesc::DOMElement& e,
const t_t& i)
3530 e << static_cast< const ::XMLMesh::el_t& > (i);
3534 const ::xsd::cxx::tree::type_serializer_initializer< 0, char, t_t >
3535 _xsd_t_t_type_serializer_init (
3541 operator<< (::xercesc::DOMElement& e,
const q_t& i)
3543 e << static_cast< const ::XMLMesh::el_t& > (i);
3548 ::xercesc::DOMAttr& a (
3549 ::xsd::cxx::xml::dom::create_attribute (
3558 const ::xsd::cxx::tree::type_serializer_initializer< 0, char, q_t >
3559 _xsd_q_t_type_serializer_init (
3565 operator<< (::xercesc::DOMElement& e,
const edges_type& i)
3567 e << static_cast< const ::xml_schema::type& > (i);
3572 b (i.ed ().begin ()), n (i.ed ().end ());
3575 ::xercesc::DOMElement& s (
3576 ::xsd::cxx::xml::dom::create_element (
3585 operator<< (::xercesc::DOMElement& e,
const curves_type& i)
3587 e << static_cast< const ::xml_schema::type& > (i);
3592 b (i.arc ().begin ()), n (i.arc ().end ());
3595 ::xercesc::DOMElement& s (
3596 ::xsd::cxx::xml::dom::create_element (
3606 b (i.NURBS ().begin ()), n (i.NURBS ().end ());
3609 ::xercesc::DOMElement& s (
3610 ::xsd::cxx::xml::dom::create_element (
3619 operator<< (::xercesc::DOMElement& e,
const refinements_type& i)
3621 e << static_cast< const ::xml_schema::type& > (i);
3626 b (i.ref ().begin ()), n (i.ref ().end ());
3629 ::xercesc::DOMElement& s (
3630 ::xsd::cxx::xml::dom::create_element (
3639 operator<< (::xercesc::DOMElement& e,
const mesh& i)
3641 e << static_cast< const ::xml_schema::type& > (i);
3647 ::xercesc::DOMElement& s (
3648 ::xsd::cxx::xml::dom::create_element (
3652 s << *i.variables ();
3658 ::xercesc::DOMElement& s (
3659 ::xsd::cxx::xml::dom::create_element (
3669 ::xercesc::DOMElement& s (
3670 ::xsd::cxx::xml::dom::create_element (
3680 ::xercesc::DOMElement& s (
3681 ::xsd::cxx::xml::dom::create_element (
3692 ::xercesc::DOMElement& s (
3693 ::xsd::cxx::xml::dom::create_element (
3702 if (i.refinements ())
3704 ::xercesc::DOMElement& s (
3705 ::xsd::cxx::xml::dom::create_element (
3709 s << *i.refinements ();
3714 operator<< (::xercesc::DOMElement& e,
const var& i)
3716 e << static_cast< const ::xml_schema::type& > (i);
3721 ::xercesc::DOMAttr& a (
3722 ::xsd::cxx::xml::dom::create_attribute (
3732 ::xercesc::DOMAttr& a (
3733 ::xsd::cxx::xml::dom::create_attribute (
3742 operator<< (::xercesc::DOMElement& e,
const v& i)
3744 e << static_cast< const ::xml_schema::type& > (i);
3749 ::xercesc::DOMAttr& a (
3750 ::xsd::cxx::xml::dom::create_attribute (
3760 ::xercesc::DOMAttr& a (
3761 ::xsd::cxx::xml::dom::create_attribute (
3771 ::xercesc::DOMAttr& a (
3772 ::xsd::cxx::xml::dom::create_attribute (
3781 operator<< (::xercesc::DOMElement& e,
const ed& i)
3783 e << static_cast< const ::xml_schema::type& > (i);
3788 ::xercesc::DOMAttr& a (
3789 ::xsd::cxx::xml::dom::create_attribute (
3799 ::xercesc::DOMAttr& a (
3800 ::xsd::cxx::xml::dom::create_attribute (
3810 ::xercesc::DOMAttr& a (
3811 ::xsd::cxx::xml::dom::create_attribute (
3820 operator<< (::xercesc::DOMElement& e,
const arc& i)
3822 e << static_cast< const ::xml_schema::type& > (i);
3827 ::xercesc::DOMAttr& a (
3828 ::xsd::cxx::xml::dom::create_attribute (
3838 ::xercesc::DOMAttr& a (
3839 ::xsd::cxx::xml::dom::create_attribute (
3849 ::xercesc::DOMAttr& a (
3850 ::xsd::cxx::xml::dom::create_attribute (
3859 operator<< (::xercesc::DOMElement& e,
const NURBS& i)
3861 e << static_cast< const ::xml_schema::type& > (i);
3866 b (i.inner_point ().begin ()), n (i.inner_point ().end ());
3869 ::xercesc::DOMElement& s (
3870 ::xsd::cxx::xml::dom::create_element (
3880 b (i.knot ().begin ()), n (i.knot ().end ());
3883 ::xercesc::DOMElement& s (
3884 ::xsd::cxx::xml::dom::create_element (
3894 ::xercesc::DOMAttr& a (
3895 ::xsd::cxx::xml::dom::create_attribute (
3905 ::xercesc::DOMAttr& a (
3906 ::xsd::cxx::xml::dom::create_attribute (
3916 ::xercesc::DOMAttr& a (
3917 ::xsd::cxx::xml::dom::create_attribute (
3926 operator<< (::xercesc::DOMElement& e,
const ref& i)
3928 e << static_cast< const ::xml_schema::type& > (i);
3933 ::xercesc::DOMAttr& a (
3934 ::xsd::cxx::xml::dom::create_attribute (
3938 a << i.element_id ();
3944 ::xercesc::DOMAttr& a (
3945 ::xsd::cxx::xml::dom::create_attribute (
3949 a << i.refinement_type ();
3954 operator<< (::xercesc::DOMElement& e,
const inner_point& i)
3956 e << static_cast< const ::xml_schema::type& > (i);
3961 ::xercesc::DOMAttr& a (
3962 ::xsd::cxx::xml::dom::create_attribute (
3972 ::xercesc::DOMAttr& a (
3973 ::xsd::cxx::xml::dom::create_attribute (
3983 ::xercesc::DOMAttr& a (
3984 ::xsd::cxx::xml::dom::create_attribute (
3993 operator<< (::xercesc::DOMElement& e,
const knot& i)
3995 e << static_cast< const ::xml_schema::type& > (i);
4000 ::xercesc::DOMAttr& a (
4001 ::xsd::cxx::xml::dom::create_attribute (
4010 #include <xsd/cxx/post.hxx>
elements_type()
Create an instance from the ultimate base and initializers for required elements and attributes...
virtual ~refinements_type()
Destructor.
Class corresponding to the q_t schema type.
refinements_type()
Create an instance from the ultimate base and initializers for required elements and attributes...
::xml_schema::integer v1_type
Attribute type.
virtual ~elements_type()
Destructor.
const var_sequence & var() const
Return a read-only (constant) reference to the element sequence.
::xml_schema::decimal angle_type
Attribute type.
Class corresponding to the t_t schema type.
::xml_schema::integer element_id_type
Attribute type.
virtual ~mesh()
Destructor.
::xml_schema::integer v1_type
Attribute type.
virtual q_t * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
Class corresponding to the ed schema type.
virtual ~inner_point()
Destructor.
::xsd::cxx::tree::sequence< knot_type > knot_sequence
Element sequence container type.
const v2_type & v2() const
Return a read-only (constant) reference to the attribute.
virtual ~NURBS()
Destructor.
::XMLMesh::el_t el_type
Element type.
::xsd::cxx::tree::optional< variables_type > variables_optional
Element optional container type.
::xsd::cxx::tree::flags flags
Parsing and serialization flags.
::xml_schema::string m_type
Attribute type.
const ed_sequence & ed() const
Return a read-only (constant) reference to the element sequence.
const x_type & x() const
Return a read-only (constant) reference to the attribute.
const y_type & y() const
Return a read-only (constant) reference to the attribute.
virtual ~edges_type()
Destructor.
const refinement_type_type & refinement_type() const
Return a read-only (constant) reference to the attribute.
Class corresponding to the arc schema type.
const variables_optional & variables() const
Return a read-only (constant) reference to the element container.
Class corresponding to the v schema type.
const deg_type & deg() const
Return a read-only (constant) reference to the attribute.
Class corresponding to the knot schema type.
::xml_schema::string name_type
Attribute type.
virtual ~arc()
Destructor.
virtual ~el_t()
Destructor.
const x_type & x() const
Return a read-only (constant) reference to the attribute.
::xml_schema::decimal x_type
Attribute type.
Class corresponding to the NURBS schema type.
ed_sequence::const_iterator ed_const_iterator
Element constant iterator type.
const v3_type & v3() const
Return a read-only (constant) reference to the attribute.
const v4_type & v4() const
Return a read-only (constant) reference to the attribute.
arc(const v1_type &, const v2_type &, const angle_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
const v2_type & v2() const
Return a read-only (constant) reference to the attribute.
const refinements_optional & refinements() const
Return a read-only (constant) reference to the element container.
::xsd::cxx::tree::as_decimal< decimal > as_decimal
Serialization wrapper for the decimal type.
var_sequence::const_iterator var_const_iterator
Element constant iterator type.
virtual variables_type * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
ref(const element_id_type &, const refinement_type_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
::xml_schema::decimal weight_type
Attribute type.
::xml_schema::integer v2_type
Attribute type.
v(const x_type &, const y_type &, const i_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
::xsd::cxx::tree::sequence< ed_type > ed_sequence
Element sequence container type.
Class corresponding to the var schema type.
virtual v * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
const vertices_type & vertices() const
Return a read-only (constant) reference to the element.
NURBS(const v1_type &, const v2_type &, const deg_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
Class corresponding to the vertices_type schema type.
const value_type & value() const
Return a read-only (constant) reference to the attribute.
::xsd::cxx::tree::type type
C++ type corresponding to the anyType XML Schema built-in type.
::xml_schema::integer i_type
Attribute type.
virtual var * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
inner_point(const x_type &, const y_type &, const weight_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
el_sequence::const_iterator el_const_iterator
Element constant iterator type.
el_t(const v1_type &, const v2_type &, const v3_type &, const m_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
::xml_schema::decimal value_type
Attribute type.
::xsd::cxx::tree::sequence< v_type > v_sequence
Element sequence container type.
Class corresponding to the mesh schema type.
ed(const v1_type &, const v2_type &, const m_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
::xml_schema::integer v4_type
Attribute type.
const curves_optional & curves() const
Return a read-only (constant) reference to the element container.
const name_type & name() const
Return a read-only (constant) reference to the attribute.
inner_point_sequence::const_iterator inner_point_const_iterator
Element constant iterator type.
::xml_schema::integer refinement_type_type
Attribute type.
::xsd::cxx::tree::optional< curves_type > curves_optional
Element optional container type.
::std::auto_ptr< ::XMLMesh1D::mesh > mesh_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Parse a URI or a local file.
const m_type & m() const
Return a read-only (constant) reference to the attribute.
Generated from mesh_h2d_xml.xsd.
const v1_type & v1() const
Return a read-only (constant) reference to the attribute.
NURBS_sequence::const_iterator NURBS_const_iterator
Element constant iterator type.
ref_sequence::const_iterator ref_const_iterator
Element constant iterator type.
::xsd::cxx::tree::sequence< var_type > var_sequence
Element sequence container type.
::xml_schema::integer v2_type
Attribute type.
const v1_type & v1() const
Return a read-only (constant) reference to the attribute.
const edges_type & edges() const
Return a read-only (constant) reference to the element.
virtual NURBS * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
virtual ~t_t()
Destructor.
::xsd::cxx::tree::name< char, token > name
C++ type corresponding to the Name XML Schema built-in type.
::xsd::cxx::xml::dom::namespace_infomap< char > namespace_infomap
Namespace serialization information map.
const el_sequence & el() const
Return a read-only (constant) reference to the element sequence.
virtual ~q_t()
Destructor.
Class corresponding to the ref schema type.
Class corresponding to the elements_type schema type.
::xml_schema::integer v2_type
Attribute type.
::xsd::cxx::tree::optional< refinements_type > refinements_optional
Element optional container type.
virtual el_t * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
virtual refinements_type * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
::xsd::cxx::xml::error_handler< char > error_handler
Error handler callback interface.
vertices_type()
Create an instance from the ultimate base and initializers for required elements and attributes...
Class corresponding to the variables_type schema type.
const XMLCh *const tree_node_key
DOM user data key for back pointers to tree nodes.
::xsd::cxx::tree::properties< char > properties
Parsing properties.
virtual edges_type * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
variables_type()
Create an instance from the ultimate base and initializers for required elements and attributes...
virtual mesh * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
::xml_schema::string x_type
Attribute type.
::xml_schema::string y_type
Attribute type.
virtual knot * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
v_sequence::const_iterator v_const_iterator
Element constant iterator type.
::xsd::cxx::tree::sequence< el_type > el_sequence
Element sequence container type.
::xml_schema::decimal y_type
Attribute type.
const y_type & y() const
Return a read-only (constant) reference to the attribute.
::xml_schema::decimal value_type
Attribute type.
::xml_schema::integer v1_type
Attribute type.
virtual arc * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
t_t(const v1_type &, const v2_type &, const v3_type &, const m_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
::xml_schema::string m_type
Attribute type.
virtual ed * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
const v2_type & v2() const
Return a read-only (constant) reference to the attribute.
C++ namespace for the http://www.w3.org/2001/XMLSchema schema namespace.
Class corresponding to the inner_point schema type.
curves_type()
Create an instance from the ultimate base and initializers for required elements and attributes...
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
virtual ~knot()
Destructor.
knot_sequence::const_iterator knot_const_iterator
Element constant iterator type.
var(const name_type &, const value_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
::xml_schema::integer deg_type
Attribute type.
const v2_type & v2() const
Return a read-only (constant) reference to the attribute.
const v1_type & v1() const
Return a read-only (constant) reference to the attribute.
const inner_point_sequence & inner_point() const
Return a read-only (constant) reference to the element sequence.
virtual curves_type * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
edges_type()
Create an instance from the ultimate base and initializers for required elements and attributes...
mesh(const vertices_type &, const elements_type &, const edges_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
C++ namespace for the XMLMesh schema namespace.
::xsd::cxx::tree::sequence< NURBS_type > NURBS_sequence
Element sequence container type.
::xml_schema::integer v1_type
Attribute type.
::xsd::cxx::tree::sequence< arc_type > arc_sequence
Element sequence container type.
const element_id_type & element_id() const
Return a read-only (constant) reference to the attribute.
const knot_sequence & knot() const
Return a read-only (constant) reference to the element sequence.
const ref_sequence & ref() const
Return a read-only (constant) reference to the element sequence.
::xsd::cxx::tree::sequence< inner_point_type > inner_point_sequence
Element sequence container type.
virtual ref * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
::xsd::cxx::tree::type container
Alias for the anyType type.
virtual elements_type * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
virtual t_t * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
q_t(const v1_type &, const v2_type &, const v3_type &, const m_type &, const v4_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
const elements_type & elements() const
Return a read-only (constant) reference to the element.
::xml_schema::integer v3_type
Attribute type.
const value_type & value() const
Return a read-only (constant) reference to the attribute.
const NURBS_sequence & NURBS() const
Return a read-only (constant) reference to the element sequence.
const angle_type & angle() const
Return a read-only (constant) reference to the attribute.
::xsd::cxx::tree::sequence< ref_type > ref_sequence
Element sequence container type.
const arc_sequence & arc() const
Return a read-only (constant) reference to the element sequence.
Class corresponding to the edges_type schema type.
const v1_type & v1() const
Return a read-only (constant) reference to the attribute.
const v_sequence & v() const
Return a read-only (constant) reference to the element sequence.
::std::auto_ptr< ::XMLMesh::mesh > mesh_(const ::std::string &uri,::xml_schema::flags f=0, const ::xml_schema::properties &p=::xml_schema::properties())
Parse a URI or a local file.
virtual ~ref()
Destructor.
knot(const value_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
arc_sequence::const_iterator arc_const_iterator
Element constant iterator type.
virtual ~curves_type()
Destructor.
const m_type & m() const
Return a read-only (constant) reference to the attribute.
virtual inner_point * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
Class corresponding to the refinements_type schema type.
::xml_schema::integer v2_type
Attribute type.
virtual vertices_type * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
virtual ~var()
Destructor.
const weight_type & weight() const
Return a read-only (constant) reference to the attribute.
virtual ~vertices_type()
Destructor.
virtual ~variables_type()
Destructor.
const i_type & i() const
Return a read-only (constant) reference to the attribute.
Class corresponding to the el_t schema type.
Class corresponding to the curves_type schema type.