| 1 | // file : xsd/cxx/tree/elements.txx |
|---|
| 2 | // author : Boris Kolpackov <boris@codesynthesis.com> |
|---|
| 3 | // copyright : Copyright (c) 2005-2008 Code Synthesis Tools CC |
|---|
| 4 | // license : GNU GPL v2 + exceptions; see accompanying LICENSE file |
|---|
| 5 | |
|---|
| 6 | #include <xercesc/util/XMLUniDefs.hpp> |
|---|
| 7 | |
|---|
| 8 | namespace xsd |
|---|
| 9 | { |
|---|
| 10 | namespace cxx |
|---|
| 11 | { |
|---|
| 12 | namespace tree |
|---|
| 13 | { |
|---|
| 14 | // user_data_keys_template |
|---|
| 15 | // |
|---|
| 16 | template <int dummy> |
|---|
| 17 | const XMLCh user_data_keys_template<dummy>::node[21] = |
|---|
| 18 | {xercesc::chLatin_x, xercesc::chLatin_s, xercesc::chLatin_d, // xsd |
|---|
| 19 | xercesc::chColon, xercesc::chColon, // :: |
|---|
| 20 | xercesc::chLatin_c, xercesc::chLatin_x, xercesc::chLatin_x, // cxx |
|---|
| 21 | xercesc::chColon, xercesc::chColon, // :: |
|---|
| 22 | xercesc::chLatin_t, xercesc::chLatin_r, xercesc::chLatin_e, // tre |
|---|
| 23 | xercesc::chLatin_e, xercesc::chColon, xercesc::chColon, // e:: |
|---|
| 24 | xercesc::chLatin_n, xercesc::chLatin_o, xercesc::chLatin_d, // nod |
|---|
| 25 | xercesc::chLatin_e, xercesc::chNull // e\0 |
|---|
| 26 | }; |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | // simple_type |
|---|
| 30 | // |
|---|
| 31 | template <typename B> |
|---|
| 32 | simple_type<B>:: |
|---|
| 33 | simple_type (const simple_type& other, |
|---|
| 34 | flags f, |
|---|
| 35 | container* c) |
|---|
| 36 | : B (other, f, c) |
|---|
| 37 | { |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | template <typename B> |
|---|
| 41 | simple_type<B>* simple_type<B>:: |
|---|
| 42 | _clone (flags f, container* c) const |
|---|
| 43 | { |
|---|
| 44 | return new simple_type (*this, f, c); |
|---|
| 45 | } |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | // fundamental_base |
|---|
| 49 | // |
|---|
| 50 | template <typename X, typename C, typename B> |
|---|
| 51 | fundamental_base<X, C, B>* fundamental_base<X, C, B>:: |
|---|
| 52 | _clone (flags f, container* c) const |
|---|
| 53 | { |
|---|
| 54 | return new fundamental_base (*this, f, c); |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | } |
|---|
| 58 | } |
|---|
| 59 | } |
|---|