ConfigurationXMLSchema.h
Go to the documentation of this file.
1 // Copyright (c) 2005-2014 Code Synthesis Tools CC
2 //
3 // This program was generated by CodeSynthesis XSD, an XML Schema to
4 // C++ data binding compiler.
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License version 2 as
8 // published by the Free Software Foundation.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 //
19 // In addition, as a special exception, Code Synthesis Tools CC gives
20 // permission to link this program with the Xerces-C++ library (or with
21 // modified versions of Xerces-C++ that use the same license as Xerces-C++),
22 // and distribute linked combinations including the two. You must obey
23 // the GNU General Public License version 2 in all respects for all of
24 // the code used other than Xerces-C++. If you modify this copy of the
25 // program, you may extend this exception to your version of the program,
26 // but you are not obligated to do so. If you do not wish to do so, delete
27 // this exception statement from your version.
28 //
29 // Furthermore, Code Synthesis Tools CC makes a special exception for
30 // the Free/Libre and Open Source Software (FLOSS) which is described
31 // in the accompanying FLOSSE file.
32 //
33 
34 #ifndef CONFIGURATION_XMLSCHEMA_CONFIGURATION_XMLSCHEMA_H
35 #define CONFIGURATION_XMLSCHEMA_CONFIGURATION_XMLSCHEMA_H
36 
37 #ifndef XSD_CXX11
38 #define XSD_CXX11
39 #endif
40 
41 #ifndef XSD_USE_CHAR
42 #define XSD_USE_CHAR
43 #endif
44 
45 #ifndef XSD_CXX_TREE_USE_CHAR
46 #define XSD_CXX_TREE_USE_CHAR
47 #endif
48 
49 // Begin prologue.
50 //
51 //
52 // End prologue.
53 
54 #include <xsd/cxx/config.hxx>
55 
56 #if (XSD_INT_VERSION != 4000000L)
57 #error XSD runtime version mismatch
58 #endif
59 
60 #include <xsd/cxx/pre.hxx>
61 
62 #include <xsd/cxx/xml/char-utf8.hxx>
63 
64 #include <xsd/cxx/tree/exceptions.hxx>
65 #include <xsd/cxx/tree/elements.hxx>
66 #include <xsd/cxx/tree/types.hxx>
67 
68 #include <xsd/cxx/xml/error-handler.hxx>
69 
70 #include <xsd/cxx/xml/dom/auto-ptr.hxx>
71 
72 #include <xsd/cxx/tree/parsing.hxx>
73 #include <xsd/cxx/tree/parsing/byte.hxx>
74 #include <xsd/cxx/tree/parsing/unsigned-byte.hxx>
75 #include <xsd/cxx/tree/parsing/short.hxx>
76 #include <xsd/cxx/tree/parsing/unsigned-short.hxx>
77 #include <xsd/cxx/tree/parsing/int.hxx>
78 #include <xsd/cxx/tree/parsing/unsigned-int.hxx>
79 #include <xsd/cxx/tree/parsing/long.hxx>
80 #include <xsd/cxx/tree/parsing/unsigned-long.hxx>
81 #include <xsd/cxx/tree/parsing/boolean.hxx>
82 #include <xsd/cxx/tree/parsing/float.hxx>
83 #include <xsd/cxx/tree/parsing/double.hxx>
84 #include <xsd/cxx/tree/parsing/decimal.hxx>
85 
86 namespace xml_schema
87 {
88  // anyType and anySimpleType.
89  //
91  typedef ::xsd::cxx::tree::simple_type< char, type > simple_type;
93 
94  // 8-bit
95  //
96  typedef signed char byte;
97  typedef unsigned char unsigned_byte;
98 
99  // 16-bit
100  //
101  typedef short short_;
102  typedef unsigned short unsigned_short;
103 
104  // 32-bit
105  //
106  typedef int int_;
107  typedef unsigned int unsigned_int;
108 
109  // 64-bit
110  //
111  typedef long long long_;
112  typedef unsigned long long unsigned_long;
113 
114  // Supposed to be arbitrary-length integral types.
115  //
116  typedef long long integer;
117  typedef long long non_positive_integer;
118  typedef unsigned long long non_negative_integer;
119  typedef unsigned long long positive_integer;
120  typedef long long negative_integer;
121 
122  // Boolean.
123  //
124  typedef bool boolean;
125 
126  // Floating-point types.
127  //
128  typedef float float_;
129  typedef double double_;
130  typedef double decimal;
131 
132  // String types.
133  //
134  typedef ::xsd::cxx::tree::string< char, simple_type > string;
135  typedef ::xsd::cxx::tree::normalized_string< char, string > normalized_string;
136  typedef ::xsd::cxx::tree::token< char, normalized_string > token;
137  typedef ::xsd::cxx::tree::name< char, token > name;
138  typedef ::xsd::cxx::tree::nmtoken< char, token > nmtoken;
139  typedef ::xsd::cxx::tree::nmtokens< char, simple_type, nmtoken > nmtokens;
140  typedef ::xsd::cxx::tree::ncname< char, name > ncname;
141  typedef ::xsd::cxx::tree::language< char, token > language;
142 
143  // ID/IDREF.
144  //
145  typedef ::xsd::cxx::tree::id< char, ncname > id;
146  typedef ::xsd::cxx::tree::idref< char, ncname, type > idref;
147  typedef ::xsd::cxx::tree::idrefs< char, simple_type, idref > idrefs;
148 
149  // URI.
150  //
151  typedef ::xsd::cxx::tree::uri< char, simple_type > uri;
152 
153  // Qualified name.
154  //
155  typedef ::xsd::cxx::tree::qname< char, simple_type, uri, ncname > qname;
156 
157  // Binary.
158  //
159  typedef ::xsd::cxx::tree::buffer< char > buffer;
160  typedef ::xsd::cxx::tree::base64_binary< char, simple_type > base64_binary;
161  typedef ::xsd::cxx::tree::hex_binary< char, simple_type > hex_binary;
162 
163  // Date/time.
164  //
166  typedef ::xsd::cxx::tree::date< char, simple_type > date;
167  typedef ::xsd::cxx::tree::date_time< char, simple_type > date_time;
168  typedef ::xsd::cxx::tree::duration< char, simple_type > duration;
169  typedef ::xsd::cxx::tree::gday< char, simple_type > gday;
170  typedef ::xsd::cxx::tree::gmonth< char, simple_type > gmonth;
171  typedef ::xsd::cxx::tree::gmonth_day< char, simple_type > gmonth_day;
172  typedef ::xsd::cxx::tree::gyear< char, simple_type > gyear;
173  typedef ::xsd::cxx::tree::gyear_month< char, simple_type > gyear_month;
174  typedef ::xsd::cxx::tree::time< char, simple_type > time;
175 
176  // Entity.
177  //
178  typedef ::xsd::cxx::tree::entity< char, ncname > entity;
179  typedef ::xsd::cxx::tree::entities< char, simple_type, entity > entities;
180 
182  // Flags and properties.
183  //
185  typedef ::xsd::cxx::tree::properties< char > properties;
186 
187  // Parsing/serialization diagnostics.
188  //
190  typedef ::xsd::cxx::tree::error< char > error;
191  typedef ::xsd::cxx::tree::diagnostics< char > diagnostics;
192 
193  // Exceptions.
194  //
195  typedef ::xsd::cxx::tree::exception< char > exception;
196  typedef ::xsd::cxx::tree::bounds< char > bounds;
197  typedef ::xsd::cxx::tree::duplicate_id< char > duplicate_id;
198  typedef ::xsd::cxx::tree::parsing< char > parsing;
199  typedef ::xsd::cxx::tree::expected_element< char > expected_element;
200  typedef ::xsd::cxx::tree::unexpected_element< char > unexpected_element;
201  typedef ::xsd::cxx::tree::expected_attribute< char > expected_attribute;
202  typedef ::xsd::cxx::tree::unexpected_enumerator< char > unexpected_enumerator;
203  typedef ::xsd::cxx::tree::expected_text_content< char > expected_text_content;
204  typedef ::xsd::cxx::tree::no_prefix_mapping< char > no_prefix_mapping;
205 
206  // Error handler callback interface.
207  //
208  typedef ::xsd::cxx::xml::error_handler< char > error_handler;
209 
210  // DOM interaction.
211  //
212  namespace dom
213  {
214  // Automatic pointer for DOMDocument.
215  //
216  using ::xsd::cxx::xml::dom::unique_ptr;
217 
218 #ifndef XSD_CXX_TREE_TREE_NODE_KEY__XML_SCHEMA
219 #define XSD_CXX_TREE_TREE_NODE_KEY__XML_SCHEMA
220  // DOM user data key for back pointers to tree nodes.
221  //
222  const XMLCh* const tree_node_key = ::xsd::cxx::tree::user_data_keys::node;
223 #endif
224  }
225 }
226 
227 // Forward declarations.
228 //
229 namespace asr_object_database
230 {
231  class configuration;
232  class database;
233 }
234 
235 
236 #include <memory> // ::std::unique_ptr
237 #include <limits> // std::numeric_limits
238 #include <algorithm> // std::binary_search
239 #include <utility> // std::move
240 
241 #include <xsd/cxx/xml/char-utf8.hxx>
242 
243 #include <xsd/cxx/tree/exceptions.hxx>
244 #include <xsd/cxx/tree/elements.hxx>
245 #include <xsd/cxx/tree/containers.hxx>
246 #include <xsd/cxx/tree/list.hxx>
247 
248 #include <xsd/cxx/xml/dom/parsing-header.hxx>
249 
250 namespace asr_object_database
251 {
253  {
254  public:
255  // database
256  //
257  typedef ::asr_object_database::database database_type;
258  typedef ::xsd::cxx::tree::sequence< database_type > database_sequence;
259  typedef database_sequence::iterator database_iterator;
260  typedef database_sequence::const_iterator database_const_iterator;
261  typedef ::xsd::cxx::tree::traits< database_type, char > database_traits;
262 
263  const database_sequence&
264  database () const;
265 
266  database_sequence&
267  database ();
268 
269  void
270  database (const database_sequence& s);
271 
272  // Constructors.
273  //
274  configuration ();
275 
276  configuration (const ::xercesc::DOMElement& e,
277  ::xml_schema::flags f = 0,
278  ::xml_schema::container* c = 0);
279 
280  configuration (const configuration& x,
281  ::xml_schema::flags f = 0,
282  ::xml_schema::container* c = 0);
283 
284  virtual configuration*
285  _clone (::xml_schema::flags f = 0,
286  ::xml_schema::container* c = 0) const;
287 
289  operator= (const configuration& x);
290 
291  virtual
292  ~configuration ();
293 
294  // Implementation.
295  //
296  protected:
297  void
298  parse (::xsd::cxx::xml::dom::parser< char >&,
300 
301  protected:
302  database_sequence database_;
303  };
304 
306  {
307  public:
308  // uniqueName
309  //
311  typedef ::xsd::cxx::tree::traits< uniqueName_type, char > uniqueName_traits;
312 
313  const uniqueName_type&
314  uniqueName () const;
315 
316  uniqueName_type&
317  uniqueName ();
318 
319  void
320  uniqueName (const uniqueName_type& x);
321 
322  void
323  uniqueName (::std::unique_ptr< uniqueName_type > p);
324 
325  // basenameMatchPattern
326  //
328  typedef ::xsd::cxx::tree::traits< basenameMatchPattern_type, char > basenameMatchPattern_traits;
329 
330  const basenameMatchPattern_type&
331  basenameMatchPattern () const;
332 
333  basenameMatchPattern_type&
334  basenameMatchPattern ();
335 
336  void
337  basenameMatchPattern (const basenameMatchPattern_type& x);
338 
339  void
340  basenameMatchPattern (::std::unique_ptr< basenameMatchPattern_type > p);
341 
342  // objectDbRootFolder
343  //
345  typedef ::xsd::cxx::tree::traits< objectDbRootFolder_type, char > objectDbRootFolder_traits;
346 
347  const objectDbRootFolder_type&
348  objectDbRootFolder () const;
349 
350  objectDbRootFolder_type&
351  objectDbRootFolder ();
352 
353  void
354  objectDbRootFolder (const objectDbRootFolder_type& x);
355 
356  void
357  objectDbRootFolder (::std::unique_ptr< objectDbRootFolder_type > p);
358 
359  // Constructors.
360  //
361  database (const uniqueName_type&,
362  const basenameMatchPattern_type&,
363  const objectDbRootFolder_type&);
364 
365  database (const ::xercesc::DOMElement& e,
366  ::xml_schema::flags f = 0,
367  ::xml_schema::container* c = 0);
368 
369  database (const database& x,
370  ::xml_schema::flags f = 0,
371  ::xml_schema::container* c = 0);
372 
373  virtual database*
374  _clone (::xml_schema::flags f = 0,
375  ::xml_schema::container* c = 0) const;
376 
377  database&
378  operator= (const database& x);
379 
380  virtual
381  ~database ();
382 
383  // Implementation.
384  //
385  protected:
386  void
387  parse (::xsd::cxx::xml::dom::parser< char >&,
389 
390  protected:
391  ::xsd::cxx::tree::one< uniqueName_type > uniqueName_;
392  ::xsd::cxx::tree::one< basenameMatchPattern_type > basenameMatchPattern_;
393  ::xsd::cxx::tree::one< objectDbRootFolder_type > objectDbRootFolder_;
394  };
395 }
396 
397 #include <iosfwd>
398 
399 #include <xercesc/sax/InputSource.hpp>
400 #include <xercesc/dom/DOMDocument.hpp>
401 #include <xercesc/dom/DOMErrorHandler.hpp>
402 
403 namespace asr_object_database
404 {
405  // Parse a URI or a local file.
406  //
407 
408  ::std::unique_ptr< ::asr_object_database::configuration >
410  ::xml_schema::flags f = 0,
412 
413  ::std::unique_ptr< ::asr_object_database::configuration >
416  ::xml_schema::flags f = 0,
418 
419  ::std::unique_ptr< ::asr_object_database::configuration >
421  ::xercesc::DOMErrorHandler& eh,
422  ::xml_schema::flags f = 0,
424 
425  // Parse std::istream.
426  //
427 
428  ::std::unique_ptr< ::asr_object_database::configuration >
429  configuration_ (::std::istream& is,
430  ::xml_schema::flags f = 0,
432 
433  ::std::unique_ptr< ::asr_object_database::configuration >
434  configuration_ (::std::istream& is,
436  ::xml_schema::flags f = 0,
438 
439  ::std::unique_ptr< ::asr_object_database::configuration >
440  configuration_ (::std::istream& is,
441  ::xercesc::DOMErrorHandler& eh,
442  ::xml_schema::flags f = 0,
444 
445  ::std::unique_ptr< ::asr_object_database::configuration >
446  configuration_ (::std::istream& is,
448  ::xml_schema::flags f = 0,
450 
451  ::std::unique_ptr< ::asr_object_database::configuration >
452  configuration_ (::std::istream& is,
455  ::xml_schema::flags f = 0,
457 
458  ::std::unique_ptr< ::asr_object_database::configuration >
459  configuration_ (::std::istream& is,
461  ::xercesc::DOMErrorHandler& eh,
462  ::xml_schema::flags f = 0,
464 
465  // Parse xercesc::InputSource.
466  //
467 
468  ::std::unique_ptr< ::asr_object_database::configuration >
469  configuration_ (::xercesc::InputSource& is,
470  ::xml_schema::flags f = 0,
472 
473  ::std::unique_ptr< ::asr_object_database::configuration >
474  configuration_ (::xercesc::InputSource& is,
476  ::xml_schema::flags f = 0,
478 
479  ::std::unique_ptr< ::asr_object_database::configuration >
480  configuration_ (::xercesc::InputSource& is,
481  ::xercesc::DOMErrorHandler& eh,
482  ::xml_schema::flags f = 0,
484 
485  // Parse xercesc::DOMDocument.
486  //
487 
488  ::std::unique_ptr< ::asr_object_database::configuration >
489  configuration_ (const ::xercesc::DOMDocument& d,
490  ::xml_schema::flags f = 0,
492 
493  ::std::unique_ptr< ::asr_object_database::configuration >
494  configuration_ (::xml_schema::dom::unique_ptr< ::xercesc::DOMDocument > d,
495  ::xml_schema::flags f = 0,
497 }
498 
499 #include <xsd/cxx/post.hxx>
500 
501 // Begin epilogue.
502 //
503 //
504 // End epilogue.
505 
506 #endif // CONFIGURATION_XMLSCHEMA_CONFIGURATION_XMLSCHEMA_H
long long negative_integer
d
::xsd::cxx::tree::hex_binary< char, simple_type > hex_binary
::xsd::cxx::tree::duplicate_id< char > duplicate_id
database_sequence::const_iterator database_const_iterator
::xsd::cxx::tree::content_order content_order
::xsd::cxx::tree::idref< char, ncname, type > idref
database_sequence::iterator database_iterator
::xsd::cxx::tree::gmonth_day< char, simple_type > gmonth_day
::xsd::cxx::tree::type type
::xsd::cxx::tree::base64_binary< char, simple_type > base64_binary
::xsd::cxx::tree::type container
::xsd::cxx::tree::error< char > error
::xsd::cxx::tree::flags flags
::xsd::cxx::tree::expected_element< char > expected_element
unsigned long long non_negative_integer
unsigned long long positive_integer
::xsd::cxx::tree::buffer< char > buffer
::xsd::cxx::tree::id< char, ncname > id
::xsd::cxx::tree::entity< char, ncname > entity
unsigned long long unsigned_long
::xml_schema::string objectDbRootFolder_type
::xsd::cxx::tree::traits< uniqueName_type, char > uniqueName_traits
::asr_object_database::database database_type
::xsd::cxx::tree::expected_attribute< char > expected_attribute
::xsd::cxx::tree::time_zone time_zone
::xsd::cxx::tree::unexpected_enumerator< char > unexpected_enumerator
::xsd::cxx::tree::entities< char, simple_type, entity > entities
::xsd::cxx::tree::time< char, simple_type > time
::xsd::cxx::tree::simple_type< char, type > simple_type
::xsd::cxx::tree::duration< char, simple_type > duration
::xsd::cxx::tree::traits< database_type, char > database_traits
::xsd::cxx::tree::one< objectDbRootFolder_type > objectDbRootFolder_
::xsd::cxx::tree::gmonth< char, simple_type > gmonth
::xsd::cxx::tree::unexpected_element< char > unexpected_element
::xsd::cxx::tree::language< char, token > language
::xsd::cxx::tree::exception< char > exception
::xsd::cxx::tree::nmtokens< char, simple_type, nmtoken > nmtokens
::xsd::cxx::tree::gyear< char, simple_type > gyear
::xsd::cxx::tree::normalized_string< char, string > normalized_string
::xsd::cxx::tree::name< char, token > name
::xsd::cxx::tree::one< uniqueName_type > uniqueName_
::xsd::cxx::tree::gyear_month< char, simple_type > gyear_month
long long non_positive_integer
::xsd::cxx::tree::properties< char > properties
::xsd::cxx::tree::gday< char, simple_type > gday
::xsd::cxx::tree::traits< basenameMatchPattern_type, char > basenameMatchPattern_traits
::xsd::cxx::tree::expected_text_content< char > expected_text_content
::xsd::cxx::tree::date< char, simple_type > date
const XMLCh *const tree_node_key
::xsd::cxx::tree::string< char, simple_type > string
::xsd::cxx::tree::bounds< char > bounds
unsigned int unsigned_int
::xsd::cxx::tree::traits< objectDbRootFolder_type, char > objectDbRootFolder_traits
::xsd::cxx::tree::uri< char, simple_type > uri
unsigned char unsigned_byte
::xsd::cxx::tree::severity severity
::xsd::cxx::tree::qname< char, simple_type, uri, ncname > qname
::xsd::cxx::tree::diagnostics< char > diagnostics
::xsd::cxx::xml::error_handler< char > error_handler
::xsd::cxx::tree::one< basenameMatchPattern_type > basenameMatchPattern_
::xsd::cxx::tree::nmtoken< char, token > nmtoken
::xsd::cxx::tree::idrefs< char, simple_type, idref > idrefs
::std::unique_ptr< ::asr_object_database::configuration > configuration_(const ::std::string &u, ::xml_schema::flags f, const ::xml_schema::properties &p)
::xsd::cxx::tree::no_prefix_mapping< char > no_prefix_mapping
::xsd::cxx::tree::date_time< char, simple_type > date_time
::xsd::cxx::tree::sequence< database_type > database_sequence
::xsd::cxx::tree::token< char, normalized_string > token
::xsd::cxx::tree::parsing< char > parsing
::xml_schema::string basenameMatchPattern_type
unsigned short unsigned_short
::xsd::cxx::tree::ncname< char, name > ncname


asr_object_database
Author(s): Allgeyer Tobias, Aumann Florian, Borella Jocelyn, Braun Kai, Heizmann Heinrich, Heller Florian, Kasper Alexander, Marek Felix, Mehlhaus Jonas, Meißner Pascal, Schleicher Ralf, Stöckle Patrick, Walter Milena
autogenerated on Mon Feb 28 2022 21:49:21