diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-18 18:48:46 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-01-13 22:32:43 +0300 |
commit | 2615896faa646e5830abf2c269150e1165c66515 (patch) | |
tree | 7d95978ec0a83094c9462ed4e1f59d42f4ff8ddb /libxsd/libxsd/cxx/tree/elements.txx | |
parent | 7420f85ea19b0562ffdd8123442f32bc8bac1267 (diff) |
Switch to build2
Diffstat (limited to 'libxsd/libxsd/cxx/tree/elements.txx')
-rw-r--r-- | libxsd/libxsd/cxx/tree/elements.txx | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libxsd/libxsd/cxx/tree/elements.txx b/libxsd/libxsd/cxx/tree/elements.txx new file mode 100644 index 0000000..b4c2851 --- /dev/null +++ b/libxsd/libxsd/cxx/tree/elements.txx @@ -0,0 +1,55 @@ +// file : libxsd/cxx/tree/elements.txx +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include <xercesc/util/XMLUniDefs.hpp> + +namespace xsd +{ + namespace cxx + { + namespace tree + { + // user_data_keys_template + // + template <int dummy> + const XMLCh user_data_keys_template<dummy>::node[21] = + {xercesc::chLatin_x, xercesc::chLatin_s, xercesc::chLatin_d, // xsd + xercesc::chColon, xercesc::chColon, // :: + xercesc::chLatin_c, xercesc::chLatin_x, xercesc::chLatin_x, // cxx + xercesc::chColon, xercesc::chColon, // :: + xercesc::chLatin_t, xercesc::chLatin_r, xercesc::chLatin_e, // tre + xercesc::chLatin_e, xercesc::chColon, xercesc::chColon, // e:: + xercesc::chLatin_n, xercesc::chLatin_o, xercesc::chLatin_d, // nod + xercesc::chLatin_e, xercesc::chNull // e\0 + }; + + + // simple_type + // + template <typename C, typename B> + simple_type<C, B>:: + simple_type (const simple_type& other, + flags f, + container* c) + : B (other, f, c) + { + } + + template <typename C, typename B> + simple_type<C, B>* simple_type<C, B>:: + _clone (flags f, container* c) const + { + return new simple_type (*this, f, c); + } + + // fundamental_base + // + template <typename T, typename C, typename B, schema_type::value ST> + fundamental_base<T, C, B, ST>* fundamental_base<T, C, B, ST>:: + _clone (flags f, container* c) const + { + return new fundamental_base (*this, f, c); + } + } + } +} |