39 #ifndef XML_SCHEMAS_MESH_H1D_XML_H
40 #define XML_SCHEMAS_MESH_H1D_XML_H
47 #include <xsd/cxx/config.hxx>
49 #if (XSD_INT_VERSION != 3030000L)
50 #error XSD runtime version mismatch
53 #include <xsd/cxx/pre.hxx>
59 #ifndef XSD_CXX_TREE_USE_CHAR
60 #define XSD_CXX_TREE_USE_CHAR
63 #include <xsd/cxx/xml/char-utf8.hxx>
65 #include <xsd/cxx/tree/exceptions.hxx>
66 #include <xsd/cxx/tree/elements.hxx>
67 #include <xsd/cxx/tree/types.hxx>
69 #include <xsd/cxx/xml/error-handler.hxx>
71 #include <xsd/cxx/xml/dom/auto-ptr.hxx>
73 #include <xsd/cxx/tree/parsing.hxx>
74 #include <xsd/cxx/tree/parsing/byte.hxx>
75 #include <xsd/cxx/tree/parsing/unsigned-byte.hxx>
76 #include <xsd/cxx/tree/parsing/short.hxx>
77 #include <xsd/cxx/tree/parsing/unsigned-short.hxx>
78 #include <xsd/cxx/tree/parsing/int.hxx>
79 #include <xsd/cxx/tree/parsing/unsigned-int.hxx>
80 #include <xsd/cxx/tree/parsing/long.hxx>
81 #include <xsd/cxx/tree/parsing/unsigned-long.hxx>
82 #include <xsd/cxx/tree/parsing/boolean.hxx>
83 #include <xsd/cxx/tree/parsing/float.hxx>
84 #include <xsd/cxx/tree/parsing/double.hxx>
85 #include <xsd/cxx/tree/parsing/decimal.hxx>
87 #include <xsd/cxx/xml/dom/serialization-header.hxx>
88 #include <xsd/cxx/tree/serialization.hxx>
89 #include <xsd/cxx/tree/serialization/byte.hxx>
90 #include <xsd/cxx/tree/serialization/unsigned-byte.hxx>
91 #include <xsd/cxx/tree/serialization/short.hxx>
92 #include <xsd/cxx/tree/serialization/unsigned-short.hxx>
93 #include <xsd/cxx/tree/serialization/int.hxx>
94 #include <xsd/cxx/tree/serialization/unsigned-int.hxx>
95 #include <xsd/cxx/tree/serialization/long.hxx>
96 #include <xsd/cxx/tree/serialization/unsigned-long.hxx>
97 #include <xsd/cxx/tree/serialization/boolean.hxx>
98 #include <xsd/cxx/tree/serialization/float.hxx>
99 #include <xsd/cxx/tree/serialization/double.hxx>
100 #include <xsd/cxx/tree/serialization/decimal.hxx>
102 #include <xsd/cxx/tree/std-ostream-operators.hxx>
123 typedef ::xsd::cxx::tree::simple_type< type >
simple_type;
138 typedef signed char byte;
186 typedef long long long_;
268 typedef ::xsd::cxx::tree::string< char, simple_type >
string;
280 typedef ::xsd::cxx::tree::token< char, normalized_string >
token;
286 typedef ::xsd::cxx::tree::name< char, token >
name;
292 typedef ::xsd::cxx::tree::nmtoken< char, token >
nmtoken;
298 typedef ::xsd::cxx::tree::nmtokens< char, simple_type, nmtoken >
nmtokens;
304 typedef ::xsd::cxx::tree::ncname< char, name >
ncname;
310 typedef ::xsd::cxx::tree::language< char, token >
language;
320 typedef ::xsd::cxx::tree::id< char, ncname >
id;
326 typedef ::xsd::cxx::tree::idref< char, ncname, type >
idref;
332 typedef ::xsd::cxx::tree::idrefs< char, simple_type, idref >
idrefs;
342 typedef ::xsd::cxx::tree::uri< char, simple_type >
uri;
352 typedef ::xsd::cxx::tree::qname< char, simple_type, uri, ncname >
qname;
361 typedef ::xsd::cxx::tree::buffer< char >
buffer;
367 typedef ::xsd::cxx::tree::base64_binary< char, simple_type >
base64_binary;
373 typedef ::xsd::cxx::tree::hex_binary< char, simple_type >
hex_binary;
388 typedef ::xsd::cxx::tree::date< char, simple_type >
date;
394 typedef ::xsd::cxx::tree::date_time< char, simple_type >
date_time;
400 typedef ::xsd::cxx::tree::duration< char, simple_type >
duration;
406 typedef ::xsd::cxx::tree::gday< char, simple_type >
gday;
412 typedef ::xsd::cxx::tree::gmonth< char, simple_type >
gmonth;
418 typedef ::xsd::cxx::tree::gmonth_day< char, simple_type >
gmonth_day;
424 typedef ::xsd::cxx::tree::gyear< char, simple_type >
gyear;
430 typedef ::xsd::cxx::tree::gyear_month< char, simple_type >
gyear_month;
436 typedef ::xsd::cxx::tree::time< char, simple_type >
time;
446 typedef ::xsd::cxx::tree::entity< char, ncname >
entity;
452 typedef ::xsd::cxx::tree::entities< char, simple_type, entity >
entities;
461 typedef ::xsd::cxx::xml::dom::namespace_info< char >
namespace_info;
471 typedef ::xsd::cxx::tree::list_stream< char >
list_stream;
476 typedef ::xsd::cxx::tree::as_double< double_ >
as_double;
481 typedef ::xsd::cxx::tree::as_decimal< decimal >
as_decimal;
499 typedef ::xsd::cxx::tree::properties< char >
properties;
512 typedef ::xsd::cxx::tree::error< char >
error;
517 typedef ::xsd::cxx::tree::diagnostics< char >
diagnostics;
525 typedef ::xsd::cxx::tree::exception< char >
exception;
531 typedef ::xsd::cxx::tree::bounds< char >
bounds;
537 typedef ::xsd::cxx::tree::duplicate_id< char >
duplicate_id;
542 typedef ::xsd::cxx::tree::parsing< char >
parsing;
584 typedef ::xsd::cxx::tree::no_type_info< char >
no_type_info;
590 typedef ::xsd::cxx::tree::not_derived< char >
not_derived;
595 typedef ::xsd::cxx::tree::serialization< char >
serialization;
600 typedef ::xsd::cxx::xml::error_handler< char >
error_handler;
610 using ::xsd::cxx::xml::dom::auto_ptr;
612 #ifndef XSD_CXX_TREE_TREE_NODE_KEY__XML_SCHEMA
613 #define XSD_CXX_TREE_TREE_NODE_KEY__XML_SCHEMA
617 const XMLCh*
const tree_node_key = ::xsd::cxx::tree::user_data_keys::node;
637 #include <xsd/cxx/xml/char-utf8.hxx>
639 #include <xsd/cxx/tree/exceptions.hxx>
640 #include <xsd/cxx/tree/elements.hxx>
641 #include <xsd/cxx/tree/containers.hxx>
642 #include <xsd/cxx/tree/list.hxx>
644 #include <xsd/cxx/xml/dom/parsing-header.hxx>
691 typedef ::xsd::cxx::tree::traits< var_type, char >
var_traits;
720 var (
const var_sequence& s);
790 parse (::xsd::cxx::xml::dom::parser< char >&,
836 const variables_optional&
879 variables (::std::auto_ptr< variables_type > p);
914 typedef ::xsd::cxx::tree::traits< v_type, char >
v_traits;
943 v (
const v_sequence& s);
966 mesh (const ::xercesc::DOMElement& e,
1013 parse (::xsd::cxx::xml::dom::parser< char >&,
1017 variables_optional variables_;
1074 name (
const name_type& x);
1085 name (::std::auto_ptr< name_type > p);
1105 typedef ::xsd::cxx::tree::traits< value_type, char, ::xsd::cxx::tree::schema_type::decimal >
value_traits;
1132 value (
const value_type& x);
1145 var (
const name_type&,
1156 var (const ::xercesc::DOMElement& e,
1203 parse (::xsd::cxx::xml::dom::parser< char >&,
1207 ::xsd::cxx::tree::one< name_type > name_;
1208 ::xsd::cxx::tree::one< value_type > value_;
1237 typedef ::xsd::cxx::tree::traits< x_type, char >
x_traits;
1264 x (
const x_type&
x);
1275 x (::std::auto_ptr< x_type > p);
1300 typedef ::xsd::cxx::tree::traits< m_type, char >
m_traits;
1328 m (
const m_type&
x);
1340 m (
const m_optional&
x);
1351 m (::std::auto_ptr< m_type > p);
1374 v (const ::xercesc::DOMElement& e,
1421 parse (::xsd::cxx::xml::dom::parser< char >&,
1425 ::xsd::cxx::tree::one< x_type > x_;
1437 operator<< (::std::ostream&,
const variables_type&);
1440 operator<< (::std::ostream&,
const mesh&);
1443 operator<< (::std::ostream&,
const var&);
1446 operator<< (::std::ostream&,
const v&);
1451 #include <xercesc/sax/InputSource.hpp>
1452 #include <xercesc/dom/DOMDocument.hpp>
1453 #include <xercesc/dom/DOMErrorHandler.hpp>
1472 ::std::auto_ptr< ::XMLMesh1D::mesh >
1488 ::std::auto_ptr< ::XMLMesh1D::mesh >
1506 ::std::auto_ptr< ::XMLMesh1D::mesh >
1508 ::xercesc::DOMErrorHandler& eh,
1522 ::std::auto_ptr< ::XMLMesh1D::mesh >
1523 mesh_ (::std::istream& is,
1538 ::std::auto_ptr< ::XMLMesh1D::mesh >
1539 mesh_ (::std::istream& is,
1556 ::std::auto_ptr< ::XMLMesh1D::mesh >
1557 mesh_ (::std::istream& is,
1558 ::xercesc::DOMErrorHandler& eh,
1576 ::std::auto_ptr< ::XMLMesh1D::mesh >
1577 mesh_ (::std::istream& is,
1598 ::std::auto_ptr< ::XMLMesh1D::mesh >
1599 mesh_ (::std::istream& is,
1621 ::std::auto_ptr< ::XMLMesh1D::mesh >
1622 mesh_ (::std::istream& is,
1624 ::xercesc::DOMErrorHandler& eh,
1638 ::std::auto_ptr< ::XMLMesh1D::mesh >
1639 mesh_ (::xercesc::InputSource& is,
1654 ::std::auto_ptr< ::XMLMesh1D::mesh >
1655 mesh_ (::xercesc::InputSource& is,
1672 ::std::auto_ptr< ::XMLMesh1D::mesh >
1673 mesh_ (::xercesc::InputSource& is,
1674 ::xercesc::DOMErrorHandler& eh,
1686 ::std::auto_ptr< ::XMLMesh1D::mesh >
1687 mesh_ (const ::xercesc::DOMDocument& d,
1703 ::std::auto_ptr< ::XMLMesh1D::mesh >
1704 mesh_ (::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument >& d,
1713 #include <xercesc/dom/DOMDocument.hpp>
1714 #include <xercesc/dom/DOMErrorHandler.hpp>
1715 #include <xercesc/framework/XMLFormatter.hpp>
1717 #include <xsd/cxx/xml/dom/auto-ptr.hxx>
1738 mesh_ (::std::ostream& os,
1739 const ::XMLMesh1D::mesh& x,
1758 mesh_ (::std::ostream& os,
1759 const ::XMLMesh1D::mesh& x,
1780 mesh_ (::std::ostream& os,
1781 const ::XMLMesh1D::mesh& x,
1782 ::xercesc::DOMErrorHandler& eh,
1799 mesh_ (::xercesc::XMLFormatTarget& ft,
1800 const ::XMLMesh1D::mesh& x,
1820 mesh_ (::xercesc::XMLFormatTarget& ft,
1821 const ::XMLMesh1D::mesh& x,
1842 mesh_ (::xercesc::XMLFormatTarget& ft,
1843 const ::XMLMesh1D::mesh& x,
1844 ::xercesc::DOMErrorHandler& eh,
1861 mesh_ (::xercesc::DOMDocument& d,
1862 const ::XMLMesh1D::mesh& x,
1873 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument >
1874 mesh_ (const ::XMLMesh1D::mesh& x,
1881 operator<< (::xercesc::DOMElement&,
const variables_type&);
1884 operator<< (::xercesc::DOMElement&,
const mesh&);
1887 operator<< (::xercesc::DOMElement&,
const var&);
1890 operator<< (::xercesc::DOMElement&,
const v&);
1893 #include <xsd/cxx/post.hxx>
1900 #endif // XML_SCHEMAS_MESH_H1D_XML_H
::xsd::cxx::tree::id< char, ncname > id
C++ type corresponding to the ID XML Schema built-in type.
long long negative_integer
C++ type corresponding to the negativeInteger XML Schema built-in type.
::xml_schema::string m_type
Attribute type.
virtual mesh * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
::XMLMesh1D::variables_type variables_type
Element type.
::xsd::cxx::tree::parsing< char > parsing
Exception indicating a parsing failure.
::xsd::cxx::tree::date< char, simple_type > date
C++ type corresponding to the date XML Schema built-in type.
::xsd::cxx::tree::bounds< char > bounds
Exception indicating that the size argument exceeds the capacity argument.
::XMLMesh1D::v v_type
Element type.
::xsd::cxx::tree::no_prefix_mapping< char > no_prefix_mapping
Exception indicating that a prefix-namespace mapping was not provided.
::xsd::cxx::tree::duplicate_id< char > duplicate_id
Exception indicating that a duplicate ID value was encountered in the object model.
::xsd::cxx::tree::expected_element< char > expected_element
Exception indicating that an expected element was not encountered.
::xsd::cxx::tree::flags flags
Parsing and serialization flags.
::xsd::cxx::tree::language< char, token > language
C++ type corresponding to the language XML Schema built-in type.
virtual ~mesh()
Destructor.
::xsd::cxx::tree::normalized_string< char, string > normalized_string
C++ type corresponding to the normalizedString XML Schema built-in type.
::xml_schema::decimal value_type
Attribute type.
::xsd::cxx::tree::traits< var_type, char > var_traits
Element traits type.
virtual v * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
float float_
C++ type corresponding to the float XML Schema built-in type.
v_sequence::iterator v_iterator
Element iterator type.
bool boolean
C++ type corresponding to the boolean XML Schema built-in type.
::xsd::cxx::tree::traits< variables_type, char > variables_traits
Element traits type.
::xsd::cxx::tree::uri< char, simple_type > uri
C++ type corresponding to the anyURI XML Schema built-in type.
Class corresponding to the v schema type.
::xsd::cxx::tree::no_type_info< char > no_type_info
Exception indicating that the type information is not available for a type.
C++ namespace for the XMLMesh1D schema namespace.
::xsd::cxx::tree::diagnostics< char > diagnostics
List of error conditions.
::xsd::cxx::tree::time_zone time_zone
Time zone type.
virtual ~variables_type()
Destructor.
unsigned long long non_negative_integer
C++ type corresponding to the nonNegativeInteger XML Schema built-in type.
::xsd::cxx::tree::simple_type< type > simple_type
C++ type corresponding to the anySimpleType XML Schema built-in type.
::xsd::cxx::tree::unexpected_enumerator< char > unexpected_enumerator
Exception indicating that an unexpected enumerator was encountered.
unsigned long long positive_integer
C++ type corresponding to the positiveInteger XML Schema built-in type.
::xsd::cxx::tree::exception< char > exception
Root of the C++/Tree exception hierarchy.
::xsd::cxx::tree::facet facet
Simple type facet.
::xsd::cxx::tree::as_decimal< decimal > as_decimal
Serialization wrapper for the decimal type.
::xsd::cxx::tree::expected_text_content< char > expected_text_content
Exception indicating that the text content was expected for an element.
::xsd::cxx::tree::unexpected_element< char > unexpected_element
Exception indicating that an unexpected element was encountered.
unsigned long long unsigned_long
C++ type corresponding to the unsignedLong XML Schema built-in type.
::xml_schema::string name_type
Attribute type.
::xsd::cxx::tree::traits< name_type, char > name_traits
Attribute traits type.
::xsd::cxx::tree::time< char, simple_type > time
C++ type corresponding to the time XML Schema built-in type.
::xsd::cxx::tree::gmonth_day< char, simple_type > gmonth_day
C++ type corresponding to the gMonthDay XML Schema built-in type.
::xsd::cxx::tree::buffer< char > buffer
Binary buffer type.
::xsd::cxx::tree::type type
C++ type corresponding to the anyType XML Schema built-in type.
const m_optional & m() const
Return a read-only (constant) reference to the attribute container.
long long long_
C++ type corresponding to the long XML Schema built-in type.
::xsd::cxx::tree::base64_binary< char, simple_type > base64_binary
C++ type corresponding to the base64Binary XML Schema built-in type.
Class corresponding to the mesh schema type.
::xsd::cxx::tree::expected_attribute< char > expected_attribute
Exception indicating that an expected attribute was not encountered.
::xsd::cxx::tree::duration< char, simple_type > duration
C++ type corresponding to the duration XML Schema built-in type.
::xsd::cxx::tree::gmonth< char, simple_type > gmonth
C++ type corresponding to the gMonth XML Schema built-in type.
int int_
C++ type corresponding to the int XML Schema built-in 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.
v(const x_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
::xsd::cxx::xml::dom::namespace_info< char > namespace_info
Namespace serialization information.
const value_type & value() const
Return a read-only (constant) reference to the attribute.
::xsd::cxx::tree::ncname< char, name > ncname
C++ type corresponding to the NCName XML Schema built-in type.
virtual ~var()
Destructor.
::xsd::cxx::tree::name< char, token > name
C++ type corresponding to the Name XML Schema built-in type.
::xsd::cxx::tree::hex_binary< char, simple_type > hex_binary
C++ type corresponding to the hexBinary XML Schema built-in type.
::xsd::cxx::xml::dom::namespace_infomap< char > namespace_infomap
Namespace serialization information map.
v_sequence::const_iterator v_const_iterator
Element constant iterator type.
::xsd::cxx::tree::nmtokens< char, simple_type, nmtoken > nmtokens
C++ type corresponding to the NMTOKENS XML Schema built-in type.
::xsd::cxx::tree::gyear< char, simple_type > gyear
C++ type corresponding to the gYear XML Schema built-in type.
::xsd::cxx::tree::optional< m_type > m_optional
Attribute optional container type.
::xsd::cxx::xml::error_handler< char > error_handler
Error handler callback interface.
::xsd::cxx::tree::sequence< v_type > v_sequence
Element sequence container type.
::xsd::cxx::tree::serialization< char > serialization
Exception indicating a serialization failure.
const XMLCh *const tree_node_key
DOM user data key for back pointers to tree nodes.
::xsd::cxx::tree::properties< char > properties
Parsing properties.
::xsd::cxx::tree::traits< x_type, char > x_traits
Attribute traits type.
Class corresponding to the var schema type.
long long non_positive_integer
C++ type corresponding to the nonPositiveInteger XML Schema built-in type.
virtual var * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
::xsd::cxx::tree::entity< char, ncname > entity
C++ type corresponding to the ENTITY XML Schema built-in type.
signed char byte
C++ type corresponding to the byte XML Schema built-in type.
::xsd::cxx::tree::severity severity
Error severity.
const v_sequence & v() 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.
virtual variables_type * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
::xsd::cxx::tree::optional< variables_type > variables_optional
Element optional container type.
var_sequence::const_iterator var_const_iterator
Element constant iterator type.
const name_type & name() const
Return a read-only (constant) reference to the attribute.
C++ namespace for the http://www.w3.org/2001/XMLSchema schema namespace.
::xsd::cxx::tree::string< char, simple_type > string
C++ type corresponding to the string XML Schema built-in type.
const var_sequence & var() const
Return a read-only (constant) reference to the element sequence.
::xsd::cxx::tree::list_stream< char > list_stream
List serialization stream.
unsigned int unsigned_int
C++ type corresponding to the unsignedInt XML Schema built-in type.
::xsd::cxx::tree::gday< char, simple_type > gday
C++ type corresponding to the gDay XML Schema built-in type.
var_sequence::iterator var_iterator
Element iterator type.
::xsd::cxx::tree::entities< char, simple_type, entity > entities
C++ type corresponding to the ENTITIES XML Schema built-in type.
unsigned char unsigned_byte
C++ type corresponding to the unsignedByte XML Schema built-in type.
::xsd::cxx::tree::traits< v_type, char > v_traits
Element traits type.
variables_type()
Create an instance from the ultimate base and initializers for required elements and attributes...
::xsd::cxx::tree::date_time< char, simple_type > date_time
C++ type corresponding to the dateTime XML Schema built-in type.
double double_
C++ type corresponding to the double XML Schema built-in type.
Class corresponding to the variables_type schema type.
::xsd::cxx::tree::traits< value_type, char,::xsd::cxx::tree::schema_type::decimal > value_traits
Attribute traits type.
::xsd::cxx::tree::gyear_month< char, simple_type > gyear_month
C++ type corresponding to the gYearMonth XML Schema built-in type.
::xsd::cxx::tree::type container
Alias for the anyType type.
::XMLMesh1D::var var_type
Element type.
::xsd::cxx::tree::idref< char, ncname, type > idref
C++ type corresponding to the IDREF XML Schema built-in type.
::xsd::cxx::tree::error< char > error
Error condition.
::xsd::cxx::tree::nmtoken< char, token > nmtoken
C++ type corresponding to the NMTOKEN XML Schema built-in type.
::xsd::cxx::tree::idrefs< char, simple_type, idref > idrefs
C++ type corresponding to the IDREFS XML Schema built-in type.
::xsd::cxx::tree::qname< char, simple_type, uri, ncname > qname
C++ type corresponding to the QName XML Schema built-in type.
const variables_optional & variables() const
Return a read-only (constant) reference to the element container.
::xsd::cxx::tree::not_derived< char > not_derived
Exception indicating that the types are not related by inheritance.
::xsd::cxx::tree::sequence< var_type > var_sequence
Element sequence container type.
long long integer
C++ type corresponding to the integer XML Schema built-in type.
::xsd::cxx::tree::token< char, normalized_string > token
C++ type corresponding to the token XML Schema built-in type.
::xsd::cxx::tree::traits< m_type, char > m_traits
Attribute traits type.
::xsd::cxx::tree::as_double< double_ > as_double
Serialization wrapper for the double type.
::xml_schema::string x_type
Attribute type.
short short_
C++ type corresponding to the short XML Schema built-in type.
mesh()
Create an instance from the ultimate base and initializers for required elements and attributes...
unsigned short unsigned_short
C++ type corresponding to the unsignedShort XML Schema built-in type.
var(const name_type &, const value_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
double decimal
C++ type corresponding to the decimal XML Schema built-in type.