From ab135a6c31cd0e8c8b63b78781baa22442c1c129 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Mar 2013 08:42:38 +0200 Subject: Add changelog, changeset, and add_table semantics nodes --- odb/semantics/relational/changeset.cxx | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 odb/semantics/relational/changeset.cxx (limited to 'odb/semantics/relational/changeset.cxx') diff --git a/odb/semantics/relational/changeset.cxx b/odb/semantics/relational/changeset.cxx new file mode 100644 index 0000000..ecf02a2 --- /dev/null +++ b/odb/semantics/relational/changeset.cxx @@ -0,0 +1,47 @@ +// file : odb/semantics/relational/changeset.cxx +// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC +// license : GNU GPL v3; see accompanying LICENSE file + +#include +#include + +namespace semantics +{ + namespace relational + { + changeset:: + changeset (xml::parser& p, graph& g) + : qscope (p, g), + version_ (p.attribute ("version")) + { + } + + void changeset:: + serialize (xml::serializer& s) const + { + s.start_element (xmlns, "changeset"); + s.attribute ("version", version_); + qscope::serialize_content (s); + s.end_element (); + } + + // type info + // + namespace + { + struct init + { + init () + { + using compiler::type_info; + + { + type_info ti (typeid (changeset)); + ti.add_base (typeid (qscope)); + insert (ti); + } + } + } init_; + } + } +} -- cgit v1.1