From f0510d2f90467de8e8f260b47d79a9baaf9bef17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 17 Sep 2009 07:15:29 +0200 Subject: Start tracking XSD with git --- libxsd/xsd/cxx/tree/elements.txx | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 libxsd/xsd/cxx/tree/elements.txx (limited to 'libxsd/xsd/cxx/tree/elements.txx') diff --git a/libxsd/xsd/cxx/tree/elements.txx b/libxsd/xsd/cxx/tree/elements.txx new file mode 100644 index 0000000..a0cb8f6 --- /dev/null +++ b/libxsd/xsd/cxx/tree/elements.txx @@ -0,0 +1,57 @@ +// file : xsd/cxx/tree/elements.txx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#include + +namespace xsd +{ + namespace cxx + { + namespace tree + { + // user_data_keys_template + // + template + const XMLCh user_data_keys_template::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 + simple_type:: + simple_type (const simple_type& other, + flags f, + container* c) + : B (other, f, c) + { + } + + template + simple_type* simple_type:: + _clone (flags f, container* c) const + { + return new simple_type (*this, f, c); + } + + // fundamental_base + // + template + fundamental_base* fundamental_base:: + _clone (flags f, container* c) const + { + return new fundamental_base (*this, f, c); + } + } + } +} -- cgit v1.1