39 #include <xsd/cxx/pre.hxx>
51 return this->mono_coeffs_;
57 return this->mono_coeffs_;
63 this->mono_coeffs_ = s;
69 return this->elem_orders_;
75 return this->elem_orders_;
81 this->elem_orders_ = s;
87 return this->component_;
93 return this->component_;
105 return this->ncmp_.get ();
111 return this->ncmp_.get ();
123 return this->nel_.get ();
129 return this->nel_.get ();
141 return this->nc_.get ();
147 return this->nc_.get ();
159 return this->exact_.get ();
165 return this->exact_.get ();
171 this->exact_.set (x);
177 return this->exactC_.get ();
183 return this->exactC_.get ();
189 this->exactC_.set (x);
195 return this->exactCXR_;
201 return this->exactCXR_;
207 this->exactCXR_.set (x);
219 return this->exactCYR_;
225 return this->exactCYR_;
231 this->exactCYR_.set (x);
243 return this->exactCXC_;
249 return this->exactCXC_;
255 this->exactCXC_.set (x);
267 return this->exactCYC_;
273 return this->exactCYC_;
279 this->exactCYC_.set (x);
313 space (::std::auto_ptr< space_type > x)
325 return this->id_.get ();
331 return this->id_.get ();
343 return this->re_.get ();
349 return this->re_.get ();
389 return this->id_.get ();
395 return this->id_.get ();
407 return this->ord_.get ();
413 return this->ord_.get ();
429 return this->elem_coeffs_;
435 return this->elem_coeffs_;
441 this->elem_coeffs_ = s;
447 return this->component_number_;
453 return this->component_number_;
459 this->component_number_.set (x);
465 this->component_number_ = x;
475 return this->id_.get ();
481 return this->id_.get ();
493 return this->c_.get ();
499 return this->c_.get ();
509 #include <xsd/cxx/xml/dom/parsing-source.hxx>
511 namespace XMLSolution
522 : ::xml_schema::
type (),
523 mono_coeffs_ (::xml_schema::
flags (), this),
524 elem_orders_ (::xml_schema::
flags (), this),
525 component_ (::xml_schema::
flags (), this),
526 ncmp_ (ncmp, ::xml_schema::
flags (), this),
527 nel_ (nel, ::xml_schema::
flags (), this),
528 nc_ (nc, ::xml_schema::
flags (), this),
529 exact_ (exact, ::xml_schema::
flags (), this),
530 exactC_ (exactC, ::xml_schema::
flags (), this),
531 exactCXR_ (::xml_schema::
flags (), this),
532 exactCYR_ (::xml_schema::
flags (), this),
533 exactCXC_ (::xml_schema::
flags (), this),
534 exactCYC_ (::xml_schema::
flags (), this),
543 : ::xml_schema::
type (x, f, c),
544 mono_coeffs_ (x.mono_coeffs_, f, this),
545 elem_orders_ (x.elem_orders_, f, this),
546 component_ (x.component_, f, this),
547 ncmp_ (x.ncmp_, f, this),
548 nel_ (x.nel_, f, this),
549 nc_ (x.nc_, f, this),
550 exact_ (x.exact_, f, this),
551 exactC_ (x.exactC_, f, this),
552 exactCXR_ (x.exactCXR_, f, this),
553 exactCYR_ (x.exactCYR_, f, this),
554 exactCXC_ (x.exactCXC_, f, this),
555 exactCYC_ (x.exactCYC_, f, this),
564 : ::xml_schema::
type (e, f | ::xml_schema::
flags::base, c),
565 mono_coeffs_ (f, this),
566 elem_orders_ (f, this),
567 component_ (f, this),
579 if ((f & ::xml_schema::flags::base) == 0)
581 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
true);
587 parse (::xsd::cxx::xml::dom::parser< char >& p,
590 for (; p.more_elements (); p.next_element ())
592 const ::xercesc::DOMElement& i (p.cur_element ());
593 const ::xsd::cxx::xml::qualified_name< char > n (
594 ::xsd::cxx::xml::dom::name< char > (i));
598 if (n.name () ==
"mono_coeffs" && n.namespace_ ().empty ())
600 ::std::auto_ptr< mono_coeffs_type > r (
601 mono_coeffs_traits::create (i, f,
this));
603 this->mono_coeffs_.push_back (r);
609 if (n.name () ==
"elem_orders" && n.namespace_ ().empty ())
611 ::std::auto_ptr< elem_orders_type > r (
612 elem_orders_traits::create (i, f,
this));
614 this->elem_orders_.push_back (r);
620 if (n.name () ==
"component" && n.namespace_ ().empty ())
622 ::std::auto_ptr< component_type > r (
623 component_traits::create (i, f,
this));
625 this->component_.push_back (r);
632 while (p.more_attributes ())
634 const ::xercesc::DOMAttr& i (p.next_attribute ());
635 const ::xsd::cxx::xml::qualified_name< char > n (
636 ::xsd::cxx::xml::dom::name< char > (i));
638 if (n.name () ==
"ncmp" && n.namespace_ ().empty ())
640 this->ncmp_.set (ncmp_traits::create (i, f,
this));
644 if (n.name () ==
"nel" && n.namespace_ ().empty ())
646 this->nel_.set (nel_traits::create (i, f,
this));
650 if (n.name () ==
"nc" && n.namespace_ ().empty ())
652 this->nc_.set (nc_traits::create (i, f,
this));
656 if (n.name () ==
"exact" && n.namespace_ ().empty ())
658 this->exact_.set (exact_traits::create (i, f,
this));
662 if (n.name () ==
"exactC" && n.namespace_ ().empty ())
664 this->exactC_.set (exactC_traits::create (i, f,
this));
668 if (n.name () ==
"exactCXR" && n.namespace_ ().empty ())
670 this->exactCXR_.set (exactCXR_traits::create (i, f,
this));
674 if (n.name () ==
"exactCYR" && n.namespace_ ().empty ())
676 this->exactCYR_.set (exactCYR_traits::create (i, f,
this));
680 if (n.name () ==
"exactCXC" && n.namespace_ ().empty ())
682 this->exactCXC_.set (exactCXC_traits::create (i, f,
this));
686 if (n.name () ==
"exactCYC" && n.namespace_ ().empty ())
688 this->exactCYC_.set (exactCYC_traits::create (i, f,
this));
692 if (n.name () ==
"space" && n.namespace_ ().empty ())
694 ::std::auto_ptr< space_type > r (
695 space_traits::create (i, f,
this));
702 if (!ncmp_.present ())
704 throw ::xsd::cxx::tree::expected_attribute< char > (
709 if (!nel_.present ())
711 throw ::xsd::cxx::tree::expected_attribute< char > (
718 throw ::xsd::cxx::tree::expected_attribute< char > (
723 if (!exact_.present ())
725 throw ::xsd::cxx::tree::expected_attribute< char > (
730 if (!exactC_.present ())
732 throw ::xsd::cxx::tree::expected_attribute< char > (
742 return new class solution (*
this, f, c);
756 : ::xml_schema::
type (),
757 id_ (id, ::xml_schema::
flags (), this),
758 re_ (re, ::xml_schema::
flags (), this),
759 im_ (::xml_schema::
flags (), this)
767 : ::xml_schema::
type (x, f, c),
768 id_ (x.id_, f, this),
769 re_ (x.re_, f, this),
778 : ::xml_schema::
type (e, f | ::xml_schema::
flags::base, c),
783 if ((f & ::xml_schema::flags::base) == 0)
785 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
791 parse (::xsd::cxx::xml::dom::parser< char >& p,
794 while (p.more_attributes ())
796 const ::xercesc::DOMAttr& i (p.next_attribute ());
797 const ::xsd::cxx::xml::qualified_name< char > n (
798 ::xsd::cxx::xml::dom::name< char > (i));
800 if (n.name () ==
"id" && n.namespace_ ().empty ())
802 this->id_.set (id_traits::create (i, f,
this));
806 if (n.name () ==
"re" && n.namespace_ ().empty ())
808 this->re_.set (re_traits::create (i, f,
this));
812 if (n.name () ==
"im" && n.namespace_ ().empty ())
814 this->im_.set (im_traits::create (i, f,
this));
821 throw ::xsd::cxx::tree::expected_attribute< char > (
828 throw ::xsd::cxx::tree::expected_attribute< char > (
852 : ::xml_schema::
type (),
853 id_ (id, ::xml_schema::
flags (), this),
854 ord_ (ord, ::xml_schema::
flags (), this)
862 : ::xml_schema::
type (x, f, c),
863 id_ (x.id_, f, this),
864 ord_ (x.ord_, f, this)
872 : ::xml_schema::
type (e, f | ::xml_schema::
flags::base, c),
876 if ((f & ::xml_schema::flags::base) == 0)
878 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
884 parse (::xsd::cxx::xml::dom::parser< char >& p,
887 while (p.more_attributes ())
889 const ::xercesc::DOMAttr& i (p.next_attribute ());
890 const ::xsd::cxx::xml::qualified_name< char > n (
891 ::xsd::cxx::xml::dom::name< char > (i));
893 if (n.name () ==
"id" && n.namespace_ ().empty ())
895 this->id_.set (id_traits::create (i, f,
this));
899 if (n.name () ==
"ord" && n.namespace_ ().empty ())
901 this->ord_.set (ord_traits::create (i, f,
this));
908 throw ::xsd::cxx::tree::expected_attribute< char > (
913 if (!ord_.present ())
915 throw ::xsd::cxx::tree::expected_attribute< char > (
938 : ::xml_schema::
type (),
939 elem_coeffs_ (::xml_schema::
flags (), this),
940 component_number_ (::xml_schema::
flags (), this)
948 : ::xml_schema::
type (x, f, c),
949 elem_coeffs_ (x.elem_coeffs_, f, this),
950 component_number_ (x.component_number_, f, this)
958 : ::xml_schema::
type (e, f | ::xml_schema::
flags::base, c),
959 elem_coeffs_ (f, this),
960 component_number_ (f, this)
962 if ((f & ::xml_schema::flags::base) == 0)
964 ::xsd::cxx::xml::dom::parser< char > p (e,
true,
true);
970 parse (::xsd::cxx::xml::dom::parser< char >& p,
973 for (; p.more_elements (); p.next_element ())
975 const ::xercesc::DOMElement& i (p.cur_element ());
976 const ::xsd::cxx::xml::qualified_name< char > n (
977 ::xsd::cxx::xml::dom::name< char > (i));
981 if (n.name () ==
"elem_coeffs" && n.namespace_ ().empty ())
983 ::std::auto_ptr< elem_coeffs_type > r (
984 elem_coeffs_traits::create (i, f,
this));
986 this->elem_coeffs_.push_back (r);
993 while (p.more_attributes ())
995 const ::xercesc::DOMAttr& i (p.next_attribute ());
996 const ::xsd::cxx::xml::qualified_name< char > n (
997 ::xsd::cxx::xml::dom::name< char > (i));
999 if (n.name () ==
"component_number" && n.namespace_ ().empty ())
1001 this->component_number_.set (component_number_traits::create (i, f,
this));
1011 return new class component (*
this, f, c);
1025 : ::xml_schema::
type (),
1026 id_ (id, ::xml_schema::
flags (), this),
1027 c_ (c, ::xml_schema::
flags (), this)
1035 : ::xml_schema::
type (x, f, c),
1036 id_ (x.id_, f, this),
1045 : ::xml_schema::
type (e, f | ::xml_schema::
flags::base, c),
1049 if ((f & ::xml_schema::flags::base) == 0)
1051 ::xsd::cxx::xml::dom::parser< char > p (e,
false,
true);
1057 parse (::xsd::cxx::xml::dom::parser< char >& p,
1060 while (p.more_attributes ())
1062 const ::xercesc::DOMAttr& i (p.next_attribute ());
1063 const ::xsd::cxx::xml::qualified_name< char > n (
1064 ::xsd::cxx::xml::dom::name< char > (i));
1066 if (n.name () ==
"id" && n.namespace_ ().empty ())
1068 this->id_.set (id_traits::create (i, f,
this));
1072 if (n.name () ==
"c" && n.namespace_ ().empty ())
1074 this->c_.set (c_traits::create (i, f,
this));
1079 if (!id_.present ())
1081 throw ::xsd::cxx::tree::expected_attribute< char > (
1088 throw ::xsd::cxx::tree::expected_attribute< char > (
1109 namespace XMLSolution
1112 operator<< (::std::ostream& o,
const solution& i)
1115 b (i.mono_coeffs ().begin ()), e (i.mono_coeffs ().end ());
1118 o << ::std::endl <<
"mono_coeffs: " << *b;
1122 b (i.elem_orders ().begin ()), e (i.elem_orders ().end ());
1125 o << ::std::endl <<
"elem_orders: " << *b;
1129 b (i.component ().begin ()), e (i.component ().end ());
1132 o << ::std::endl <<
"component: " << *b;
1135 o << ::std::endl <<
"ncmp: " << i.ncmp ();
1136 o << ::std::endl <<
"nel: " << i.nel ();
1137 o << ::std::endl <<
"nc: " << i.nc ();
1138 o << ::std::endl <<
"exact: " << i.exact ();
1139 o << ::std::endl <<
"exactC: " << i.exactC ();
1142 o << ::std::endl <<
"exactCXR: " << *i.exactCXR ();
1147 o << ::std::endl <<
"exactCYR: " << *i.exactCYR ();
1152 o << ::std::endl <<
"exactCXC: " << *i.exactCXC ();
1157 o << ::std::endl <<
"exactCYC: " << *i.exactCYC ();
1162 o << ::std::endl <<
"space: " << *i.space ();
1169 operator<< (::std::ostream& o,
const mono_coeffs& i)
1171 o << ::std::endl <<
"id: " << i.id ();
1172 o << ::std::endl <<
"re: " << i.re ();
1175 o << ::std::endl <<
"im: " << *i.im ();
1182 operator<< (::std::ostream& o,
const elem_orders& i)
1184 o << ::std::endl <<
"id: " << i.id ();
1185 o << ::std::endl <<
"ord: " << i.ord ();
1190 operator<< (::std::ostream& o,
const component& i)
1193 b (i.elem_coeffs ().begin ()), e (i.elem_coeffs ().end ());
1196 o << ::std::endl <<
"elem_coeffs: " << *b;
1199 if (i.component_number ())
1201 o << ::std::endl <<
"component_number: " << *i.component_number ();
1208 operator<< (::std::ostream& o,
const elem_coeffs& i)
1210 o << ::std::endl <<
"id: " << i.id ();
1211 o << ::std::endl <<
"c: " << i.c ();
1217 #include <xsd/cxx/xml/sax/std-input-source.hxx>
1218 #include <xsd/cxx/tree/error-handler.hxx>
1220 namespace XMLSolution
1222 ::std::auto_ptr< ::XMLSolution::solution >
1227 ::xsd::cxx::xml::auto_initializer i (
1228 (f & ::xml_schema::flags::dont_initialize) == 0,
1229 (f & ::xml_schema::flags::keep_dom) == 0);
1231 ::xsd::cxx::tree::error_handler< char > h;
1233 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1234 ::xsd::cxx::xml::dom::parse< char > (
1237 h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > ();
1239 ::std::auto_ptr< ::XMLSolution::solution > r (
1241 d, f | ::xml_schema::flags::own_dom, p));
1246 ::std::auto_ptr< ::XMLSolution::solution >
1252 ::xsd::cxx::xml::auto_initializer i (
1253 (f & ::xml_schema::flags::dont_initialize) == 0,
1254 (f & ::xml_schema::flags::keep_dom) == 0);
1256 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1257 ::xsd::cxx::xml::dom::parse< char > (
1261 throw ::xsd::cxx::tree::parsing< char > ();
1263 ::std::auto_ptr< ::XMLSolution::solution > r (
1265 d, f | ::xml_schema::flags::own_dom, p));
1270 ::std::auto_ptr< ::XMLSolution::solution >
1272 ::xercesc::DOMErrorHandler& h,
1276 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1277 ::xsd::cxx::xml::dom::parse< char > (
1281 throw ::xsd::cxx::tree::parsing< char > ();
1283 ::std::auto_ptr< ::XMLSolution::solution > r (
1285 d, f | ::xml_schema::flags::own_dom, p));
1290 ::std::auto_ptr< ::XMLSolution::solution >
1295 ::xsd::cxx::xml::auto_initializer i (
1296 (f & ::xml_schema::flags::dont_initialize) == 0,
1297 (f & ::xml_schema::flags::keep_dom) == 0);
1299 ::xsd::cxx::xml::sax::std_input_source isrc (is);
1303 ::std::auto_ptr< ::XMLSolution::solution >
1309 ::xsd::cxx::xml::auto_initializer i (
1310 (f & ::xml_schema::flags::dont_initialize) == 0,
1311 (f & ::xml_schema::flags::keep_dom) == 0);
1313 ::xsd::cxx::xml::sax::std_input_source isrc (is);
1317 ::std::auto_ptr< ::XMLSolution::solution >
1319 ::xercesc::DOMErrorHandler& h,
1323 ::xsd::cxx::xml::sax::std_input_source isrc (is);
1327 ::std::auto_ptr< ::XMLSolution::solution >
1333 ::xsd::cxx::xml::auto_initializer i (
1334 (f & ::xml_schema::flags::dont_initialize) == 0,
1335 (f & ::xml_schema::flags::keep_dom) == 0);
1337 ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
1341 ::std::auto_ptr< ::XMLSolution::solution >
1348 ::xsd::cxx::xml::auto_initializer i (
1349 (f & ::xml_schema::flags::dont_initialize) == 0,
1350 (f & ::xml_schema::flags::keep_dom) == 0);
1352 ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
1356 ::std::auto_ptr< ::XMLSolution::solution >
1359 ::xercesc::DOMErrorHandler& h,
1363 ::xsd::cxx::xml::sax::std_input_source isrc (is, sid);
1367 ::std::auto_ptr< ::XMLSolution::solution >
1372 ::xsd::cxx::tree::error_handler< char > h;
1374 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1375 ::xsd::cxx::xml::dom::parse< char > (
1378 h.throw_if_failed< ::xsd::cxx::tree::parsing< char > > ();
1380 ::std::auto_ptr< ::XMLSolution::solution > r (
1382 d, f | ::xml_schema::flags::own_dom, p));
1387 ::std::auto_ptr< ::XMLSolution::solution >
1393 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1394 ::xsd::cxx::xml::dom::parse< char > (
1398 throw ::xsd::cxx::tree::parsing< char > ();
1400 ::std::auto_ptr< ::XMLSolution::solution > r (
1402 d, f | ::xml_schema::flags::own_dom, p));
1407 ::std::auto_ptr< ::XMLSolution::solution >
1409 ::xercesc::DOMErrorHandler& h,
1413 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1414 ::xsd::cxx::xml::dom::parse< char > (
1418 throw ::xsd::cxx::tree::parsing< char > ();
1420 ::std::auto_ptr< ::XMLSolution::solution > r (
1422 d, f | ::xml_schema::flags::own_dom, p));
1427 ::std::auto_ptr< ::XMLSolution::solution >
1432 if (f & ::xml_schema::flags::keep_dom)
1434 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > c (
1435 static_cast< ::xercesc::DOMDocument* > (d.cloneNode (
true)));
1437 ::std::auto_ptr< ::XMLSolution::solution > r (
1439 c, f | ::xml_schema::flags::own_dom, p));
1444 const ::xercesc::DOMElement& e (*d.getDocumentElement ());
1445 const ::xsd::cxx::xml::qualified_name< char > n (
1446 ::xsd::cxx::xml::dom::name< char > (e));
1448 if (n.name () ==
"solution" &&
1449 n.namespace_ () ==
"XMLSolution")
1451 ::std::auto_ptr< ::XMLSolution::solution > r (
1452 ::xsd::cxx::tree::traits< ::XMLSolution::solution, char >::create (
1457 throw ::xsd::cxx::tree::unexpected_element < char > (
1464 ::std::auto_ptr< ::XMLSolution::solution >
1465 solution_ (::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument >& d,
1469 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > c (
1470 ((f & ::xml_schema::flags::keep_dom) &&
1471 !(f & ::xml_schema::flags::own_dom))
1472 ? static_cast< ::xercesc::DOMDocument* > (d->cloneNode (
true))
1475 ::xercesc::DOMDocument& doc (c.get () ? *c : *d);
1476 const ::xercesc::DOMElement& e (*doc.getDocumentElement ());
1478 const ::xsd::cxx::xml::qualified_name< char > n (
1479 ::xsd::cxx::xml::dom::name< char > (e));
1481 if (f & ::xml_schema::flags::keep_dom)
1483 (c.get () ? &c : &d),
1486 if (n.name () ==
"solution" &&
1487 n.namespace_ () ==
"XMLSolution")
1489 ::std::auto_ptr< ::XMLSolution::solution > r (
1490 ::xsd::cxx::tree::traits< ::XMLSolution::solution, char >::create (
1495 throw ::xsd::cxx::tree::unexpected_element < char > (
1504 #include <xsd/cxx/tree/error-handler.hxx>
1505 #include <xsd/cxx/xml/dom/serialization-source.hxx>
1507 namespace XMLSolution
1511 const ::XMLSolution::solution& s,
1516 ::xsd::cxx::xml::auto_initializer i (
1517 (f & ::xml_schema::flags::dont_initialize) == 0);
1519 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1522 ::xsd::cxx::tree::error_handler< char > h;
1524 ::xsd::cxx::xml::dom::ostream_format_target t (o);
1525 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
1527 h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > ();
1533 const ::XMLSolution::solution& s,
1539 ::xsd::cxx::xml::auto_initializer i (
1540 (f & ::xml_schema::flags::dont_initialize) == 0);
1542 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1544 ::xsd::cxx::xml::dom::ostream_format_target t (o);
1545 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
1547 throw ::xsd::cxx::tree::serialization< char > ();
1553 const ::XMLSolution::solution& s,
1554 ::xercesc::DOMErrorHandler& h,
1559 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1561 ::xsd::cxx::xml::dom::ostream_format_target t (o);
1562 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
1564 throw ::xsd::cxx::tree::serialization< char > ();
1570 const ::XMLSolution::solution& s,
1575 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1578 ::xsd::cxx::tree::error_handler< char > h;
1580 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
1582 h.throw_if_failed< ::xsd::cxx::tree::serialization< char > > ();
1588 const ::XMLSolution::solution& s,
1594 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1596 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
1598 throw ::xsd::cxx::tree::serialization< char > ();
1604 const ::XMLSolution::solution& s,
1605 ::xercesc::DOMErrorHandler& h,
1610 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1612 if (!::xsd::cxx::xml::dom::serialize (t, *d, e, h, f))
1614 throw ::xsd::cxx::tree::serialization< char > ();
1620 const ::XMLSolution::solution& s,
1623 ::xercesc::DOMElement& e (*d.getDocumentElement ());
1624 const ::xsd::cxx::xml::qualified_name< char > n (
1625 ::xsd::cxx::xml::dom::name< char > (e));
1627 if (n.name () ==
"solution" &&
1628 n.namespace_ () ==
"XMLSolution")
1634 throw ::xsd::cxx::tree::unexpected_element < char > (
1642 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument >
1647 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument > d (
1648 ::xsd::cxx::xml::dom::serialize< char > (
1658 operator<< (::xercesc::DOMElement& e,
const solution& i)
1660 e << static_cast< const ::xml_schema::type& > (i);
1665 b (i.mono_coeffs ().begin ()), n (i.mono_coeffs ().end ());
1668 ::xercesc::DOMElement& s (
1669 ::xsd::cxx::xml::dom::create_element (
1679 b (i.elem_orders ().begin ()), n (i.elem_orders ().end ());
1682 ::xercesc::DOMElement& s (
1683 ::xsd::cxx::xml::dom::create_element (
1693 b (i.component ().begin ()), n (i.component ().end ());
1696 ::xercesc::DOMElement& s (
1697 ::xsd::cxx::xml::dom::create_element (
1707 ::xercesc::DOMAttr& a (
1708 ::xsd::cxx::xml::dom::create_attribute (
1718 ::xercesc::DOMAttr& a (
1719 ::xsd::cxx::xml::dom::create_attribute (
1729 ::xercesc::DOMAttr& a (
1730 ::xsd::cxx::xml::dom::create_attribute (
1740 ::xercesc::DOMAttr& a (
1741 ::xsd::cxx::xml::dom::create_attribute (
1751 ::xercesc::DOMAttr& a (
1752 ::xsd::cxx::xml::dom::create_attribute (
1763 ::xercesc::DOMAttr& a (
1764 ::xsd::cxx::xml::dom::create_attribute (
1775 ::xercesc::DOMAttr& a (
1776 ::xsd::cxx::xml::dom::create_attribute (
1787 ::xercesc::DOMAttr& a (
1788 ::xsd::cxx::xml::dom::create_attribute (
1799 ::xercesc::DOMAttr& a (
1800 ::xsd::cxx::xml::dom::create_attribute (
1811 ::xercesc::DOMAttr& a (
1812 ::xsd::cxx::xml::dom::create_attribute (
1821 operator<< (::xercesc::DOMElement& e,
const mono_coeffs& i)
1823 e << static_cast< const ::xml_schema::type& > (i);
1828 ::xercesc::DOMAttr& a (
1829 ::xsd::cxx::xml::dom::create_attribute (
1839 ::xercesc::DOMAttr& a (
1840 ::xsd::cxx::xml::dom::create_attribute (
1851 ::xercesc::DOMAttr& a (
1852 ::xsd::cxx::xml::dom::create_attribute (
1861 operator<< (::xercesc::DOMElement& e,
const elem_orders& i)
1863 e << static_cast< const ::xml_schema::type& > (i);
1868 ::xercesc::DOMAttr& a (
1869 ::xsd::cxx::xml::dom::create_attribute (
1879 ::xercesc::DOMAttr& a (
1880 ::xsd::cxx::xml::dom::create_attribute (
1889 operator<< (::xercesc::DOMElement& e,
const component& i)
1891 e << static_cast< const ::xml_schema::type& > (i);
1896 b (i.elem_coeffs ().begin ()), n (i.elem_coeffs ().end ());
1899 ::xercesc::DOMElement& s (
1900 ::xsd::cxx::xml::dom::create_element (
1909 if (i.component_number ())
1911 ::xercesc::DOMAttr& a (
1912 ::xsd::cxx::xml::dom::create_attribute (
1916 a << *i.component_number ();
1921 operator<< (::xercesc::DOMElement& e,
const elem_coeffs& i)
1923 e << static_cast< const ::xml_schema::type& > (i);
1928 ::xercesc::DOMAttr& a (
1929 ::xsd::cxx::xml::dom::create_attribute (
1939 ::xercesc::DOMAttr& a (
1940 ::xsd::cxx::xml::dom::create_attribute (
1949 #include <xsd/cxx/post.hxx>