summaryrefslogtreecommitdiff
path: root/odb/semantics/relational/model.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/semantics/relational/model.cxx')
-rw-r--r--odb/semantics/relational/model.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/odb/semantics/relational/model.cxx b/odb/semantics/relational/model.cxx
index bbeea52..a9fe111 100644
--- a/odb/semantics/relational/model.cxx
+++ b/odb/semantics/relational/model.cxx
@@ -3,13 +3,29 @@
// license : GNU GPL v3; see accompanying LICENSE file
#include <cutl/compiler/type-info.hxx>
-
-#include <odb/semantics/relational/model.hxx>
+#include <odb/semantics/relational.hxx>
namespace semantics
{
namespace relational
{
+ model::
+ model (xml::parser& p)
+ : qscope (p, *this),
+ version_ (p.attribute<version_type> ("version"))
+ {
+ }
+
+ void model::
+ serialize (xml::serializer& s) const
+ {
+ s.start_element (xmlns, "model");
+ s.namespace_decl (xmlns, ""); // @@ evo
+ s.attribute ("version", version_);
+ qscope::serialize_content (s);
+ s.end_element ();
+ }
+
// type info
//
namespace