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/date-time.txx | 94 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 libxsd/xsd/cxx/tree/date-time.txx (limited to 'libxsd/xsd/cxx/tree/date-time.txx') diff --git a/libxsd/xsd/cxx/tree/date-time.txx b/libxsd/xsd/cxx/tree/date-time.txx new file mode 100644 index 0000000..673efe4 --- /dev/null +++ b/libxsd/xsd/cxx/tree/date-time.txx @@ -0,0 +1,94 @@ +// file : xsd/cxx/tree/date-time.txx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +namespace xsd +{ + namespace cxx + { + namespace tree + { + // gday + // + template + gday* gday:: + _clone (flags f, container* c) const + { + return new gday (*this, f, c); + } + + // gmonth + // + template + gmonth* gmonth:: + _clone (flags f, container* c) const + { + return new gmonth (*this, f, c); + } + + // gyear + // + template + gyear* gyear:: + _clone (flags f, container* c) const + { + return new gyear (*this, f, c); + } + + // gmonth_day + // + template + gmonth_day* gmonth_day:: + _clone (flags f, container* c) const + { + return new gmonth_day (*this, f, c); + } + + // gyear_month + // + template + gyear_month* gyear_month:: + _clone (flags f, container* c) const + { + return new gyear_month (*this, f, c); + } + + // date + // + template + date* date:: + _clone (flags f, container* c) const + { + return new date (*this, f, c); + } + + // time + // + template + time* time:: + _clone (flags f, container* c) const + { + return new time (*this, f, c); + } + + // date_time + // + template + date_time* date_time:: + _clone (flags f, container* c) const + { + return new date_time (*this, f, c); + } + + // duration + // + template + duration* duration:: + _clone (flags f, container* c) const + { + return new duration (*this, f, c); + } + } + } +} -- cgit v1.1