39 #ifndef XML_SCHEMAS_SPACE_H2D_XML_H
40 #define XML_SCHEMAS_SPACE_H2D_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;
635 #include <xsd/cxx/xml/char-utf8.hxx>
637 #include <xsd/cxx/tree/exceptions.hxx>
638 #include <xsd/cxx/tree/elements.hxx>
639 #include <xsd/cxx/tree/containers.hxx>
640 #include <xsd/cxx/tree/list.hxx>
642 #include <xsd/cxx/xml/dom/parsing-header.hxx>
697 const element_data_sequence&
705 element_data_sequence&
751 const spaceType_optional&
794 spaceType (::std::auto_ptr< spaceType_type > p);
817 space (const ::xercesc::DOMElement& e,
864 parse (::xsd::cxx::xml::dom::parser< char >&,
868 element_data_sequence element_data_;
869 spaceType_optional spaceType_;
925 e_id (
const e_id_type& x);
945 typedef ::xsd::cxx::tree::traits< ord_type, char >
ord_traits;
972 ord (
const ord_type& x);
992 typedef ::xsd::cxx::tree::traits< bd_type, char >
bd_traits;
1019 bd (
const bd_type& x);
1039 typedef ::xsd::cxx::tree::traits< n_type, char >
n_traits;
1066 n (
const n_type& x);
1113 chgd (
const chgd_type& x);
1187 parse (::xsd::cxx::xml::dom::parser< char >&,
1191 ::xsd::cxx::tree::one< e_id_type > e_id_;
1192 ::xsd::cxx::tree::one< ord_type > ord_;
1193 ::xsd::cxx::tree::one< bd_type > bd_;
1194 ::xsd::cxx::tree::one< n_type > n_;
1195 ::xsd::cxx::tree::one< chgd_type > chgd_;
1206 operator<< (::std::ostream&,
const space&);
1209 operator<< (::std::ostream&,
const element_data&);
1214 #include <xercesc/sax/InputSource.hpp>
1215 #include <xercesc/dom/DOMDocument.hpp>
1216 #include <xercesc/dom/DOMErrorHandler.hpp>
1235 ::std::auto_ptr< ::XMLSpace::space >
1251 ::std::auto_ptr< ::XMLSpace::space >
1269 ::std::auto_ptr< ::XMLSpace::space >
1271 ::xercesc::DOMErrorHandler& eh,
1285 ::std::auto_ptr< ::XMLSpace::space >
1286 space_ (::std::istream& is,
1301 ::std::auto_ptr< ::XMLSpace::space >
1302 space_ (::std::istream& is,
1319 ::std::auto_ptr< ::XMLSpace::space >
1320 space_ (::std::istream& is,
1321 ::xercesc::DOMErrorHandler& eh,
1339 ::std::auto_ptr< ::XMLSpace::space >
1340 space_ (::std::istream& is,
1361 ::std::auto_ptr< ::XMLSpace::space >
1362 space_ (::std::istream& is,
1384 ::std::auto_ptr< ::XMLSpace::space >
1385 space_ (::std::istream& is,
1387 ::xercesc::DOMErrorHandler& eh,
1401 ::std::auto_ptr< ::XMLSpace::space >
1402 space_ (::xercesc::InputSource& is,
1417 ::std::auto_ptr< ::XMLSpace::space >
1418 space_ (::xercesc::InputSource& is,
1435 ::std::auto_ptr< ::XMLSpace::space >
1436 space_ (::xercesc::InputSource& is,
1437 ::xercesc::DOMErrorHandler& eh,
1449 ::std::auto_ptr< ::XMLSpace::space >
1450 space_ (const ::xercesc::DOMDocument& d,
1466 ::std::auto_ptr< ::XMLSpace::space >
1467 space_ (::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument >& d,
1476 #include <xercesc/dom/DOMDocument.hpp>
1477 #include <xercesc/dom/DOMErrorHandler.hpp>
1478 #include <xercesc/framework/XMLFormatter.hpp>
1480 #include <xsd/cxx/xml/dom/auto-ptr.hxx>
1501 space_ (::std::ostream& os,
1502 const ::XMLSpace::space& x,
1521 space_ (::std::ostream& os,
1522 const ::XMLSpace::space& x,
1543 space_ (::std::ostream& os,
1544 const ::XMLSpace::space& x,
1545 ::xercesc::DOMErrorHandler& eh,
1562 space_ (::xercesc::XMLFormatTarget& ft,
1563 const ::XMLSpace::space& x,
1583 space_ (::xercesc::XMLFormatTarget& ft,
1584 const ::XMLSpace::space& x,
1605 space_ (::xercesc::XMLFormatTarget& ft,
1606 const ::XMLSpace::space& x,
1607 ::xercesc::DOMErrorHandler& eh,
1624 space_ (::xercesc::DOMDocument& d,
1625 const ::XMLSpace::space& x,
1636 ::xml_schema::dom::auto_ptr< ::xercesc::DOMDocument >
1637 space_ (const ::XMLSpace::space& x,
1644 operator<< (::xercesc::DOMElement&,
const space&);
1647 operator<< (::xercesc::DOMElement&,
const element_data&);
1650 #include <xsd/cxx/post.hxx>
1657 #endif // XML_SCHEMAS_SPACE_H2D_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.
const ord_type & ord() const
Return a read-only (constant) reference to the attribute.
virtual element_data * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
::xsd::cxx::tree::parsing< char > parsing
Exception indicating a parsing failure.
element_data_sequence::const_iterator element_data_const_iterator
Element constant iterator type.
::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.
::xsd::cxx::tree::sequence< element_data_type > element_data_sequence
Element sequence container type.
::xsd::cxx::tree::no_prefix_mapping< char > no_prefix_mapping
Exception indicating that a prefix-namespace mapping was not provided.
::xsd::cxx::tree::traits< n_type, char > n_traits
Attribute traits type.
::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.
::xsd::cxx::tree::normalized_string< char, string > normalized_string
C++ type corresponding to the normalizedString XML Schema built-in type.
const spaceType_optional & spaceType() const
Return a read-only (constant) reference to the attribute container.
float float_
C++ type corresponding to the float XML Schema built-in type.
bool boolean
C++ type corresponding to the boolean XML Schema built-in type.
::xsd::cxx::tree::uri< char, simple_type > uri
C++ type corresponding to the anyURI XML Schema built-in type.
::xsd::cxx::tree::no_type_info< char > no_type_info
Exception indicating that the type information is not available for a type.
::xsd::cxx::tree::diagnostics< char > diagnostics
List of error conditions.
::xsd::cxx::tree::time_zone time_zone
Time zone type.
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.
::xsd::cxx::tree::traits< element_data_type, char > element_data_traits
Element traits type.
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.
element_data_sequence::iterator element_data_iterator
Element iterator type.
::xsd::cxx::tree::as_decimal< decimal > as_decimal
Serialization wrapper for the decimal type.
space()
Create an instance from the ultimate base and initializers for required elements and attributes...
::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.
const e_id_type & e_id() const
Return a read-only (constant) reference to the attribute.
unsigned long long unsigned_long
C++ type corresponding to the unsignedLong XML Schema built-in type.
const element_data_sequence & element_data() const
Return a read-only (constant) reference to the element sequence.
::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.
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.
const n_type & n() const
Return a read-only (constant) reference to the attribute.
::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.
::xml_schema::integer bd_type
Attribute 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.
::xsd::cxx::tree::traits< ord_type, char > ord_traits
Attribute traits type.
C++ namespace for the XMLSpace schema namespace.
::xsd::cxx::xml::dom::namespace_info< char > namespace_info
Namespace serialization information.
::xsd::cxx::tree::ncname< char, name > ncname
C++ type corresponding to the NCName XML Schema built-in type.
::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.
::xsd::cxx::tree::nmtokens< char, simple_type, nmtoken > nmtokens
C++ type corresponding to the NMTOKENS XML Schema built-in type.
::xsd::cxx::tree::traits< spaceType_type, char > spaceType_traits
Attribute traits type.
::xml_schema::integer e_id_type
Attribute type.
::XMLSpace::element_data element_data_type
Element type.
::xsd::cxx::tree::gyear< char, simple_type > gyear
C++ type corresponding to the gYear XML Schema built-in type.
::xsd::cxx::xml::error_handler< char > error_handler
Error handler callback interface.
::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::traits< bd_type, char > bd_traits
Attribute traits type.
::xsd::cxx::tree::properties< char > properties
Parsing properties.
::xml_schema::integer n_type
Attribute type.
::xsd::cxx::tree::traits< chgd_type, char > chgd_traits
Attribute traits type.
long long non_positive_integer
C++ type corresponding to the nonPositiveInteger XML Schema built-in type.
::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.
Class corresponding to the element_data schema type.
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.
::xsd::cxx::tree::optional< spaceType_type > spaceType_optional
Attribute optional container type.
::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.
::xsd::cxx::tree::entities< char, simple_type, entity > entities
C++ type corresponding to the ENTITIES XML Schema built-in type.
virtual space * _clone(::xml_schema::flags f=0,::xml_schema::container *c=0) const
Copy the instance polymorphically.
unsigned char unsigned_byte
C++ type corresponding to the unsignedByte XML Schema built-in type.
::xml_schema::boolean chgd_type
Attribute type.
::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.
const bd_type & bd() const
Return a read-only (constant) reference to the attribute.
::xml_schema::integer ord_type
Attribute type.
Class corresponding to the space schema type.
::xsd::cxx::tree::traits< e_id_type, char > e_id_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.
::xsd::cxx::tree::idref< char, ncname, type > idref
C++ type corresponding to the IDREF XML Schema built-in type.
const chgd_type & chgd() const
Return a read-only (constant) reference to the attribute.
::xsd::cxx::tree::error< char > error
Error condition.
::xml_schema::string spaceType_type
Attribute type.
::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.
::std::auto_ptr< ::XMLSpace::space > space_(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 ~element_data()
Destructor.
::xsd::cxx::tree::not_derived< char > not_derived
Exception indicating that the types are not related by inheritance.
virtual ~space()
Destructor.
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::as_double< double_ > as_double
Serialization wrapper for the double type.
element_data(const e_id_type &, const ord_type &, const bd_type &, const n_type &, const chgd_type &)
Create an instance from the ultimate base and initializers for required elements and attributes...
short short_
C++ type corresponding to the short XML Schema built-in type.
unsigned short unsigned_short
C++ type corresponding to the unsignedShort XML Schema built-in type.
double decimal
C++ type corresponding to the decimal XML Schema built-in type.