diff options
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_; + } + } +} |