diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-18 08:42:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-10 18:46:43 +0200 |
commit | ab135a6c31cd0e8c8b63b78781baa22442c1c129 (patch) | |
tree | a98a9cdf2e844a573e00e60264b437ce124339df /odb/semantics/relational/changeset.cxx | |
parent | 08b159e18527c2d6844e569b1309b5033b4d47c9 (diff) |
Add changelog, changeset, and add_table semantics nodes
Diffstat (limited to 'odb/semantics/relational/changeset.cxx')
-rw-r--r-- | odb/semantics/relational/changeset.cxx | 47 |
1 files changed, 47 insertions, 0 deletions
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 <cutl/compiler/type-info.hxx> +#include <odb/semantics/relational.hxx> + +namespace semantics +{ + namespace relational + { + changeset:: + changeset (xml::parser& p, graph& g) + : qscope (p, g), + version_ (p.attribute<version_type> ("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_; + } + } +} |