summaryrefslogtreecommitdiff
path: root/odb/semantics/relational/model.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-16 07:44:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:43 +0200
commit08b159e18527c2d6844e569b1309b5033b4d47c9 (patch)
tree224a1d6e7c989740e9be806c0f3cc7fc20266eb2 /odb/semantics/relational/model.hxx
parent9fe60de16cf9411a548c020cae5ac7b9e7938e82 (diff)
Add initial support for database model serialization to XML
Diffstat (limited to 'odb/semantics/relational/model.hxx')
-rw-r--r--odb/semantics/relational/model.hxx24
1 files changed, 16 insertions, 8 deletions
diff --git a/odb/semantics/relational/model.hxx b/odb/semantics/relational/model.hxx
index fa887d3..31715eb 100644
--- a/odb/semantics/relational/model.hxx
+++ b/odb/semantics/relational/model.hxx
@@ -11,18 +11,23 @@ namespace semantics
{
namespace relational
{
- class model: public graph<node, edge>, public qscope
+ class model: public graph, public qscope
{
public:
- model ()
- {
- }
+ typedef relational::version version_type;
+
+ version_type
+ version () const {return version_;}
+
+ public:
+ model (version_type v): version_ (v) {}
+ model (xml::parser&);
virtual string
- kind () const
- {
- return "model";
- }
+ kind () const {return "model";}
+
+ virtual void
+ serialize (xml::serializer&) const;
public:
using qscope::add_edge_left;
@@ -31,6 +36,9 @@ namespace semantics
private:
model (model const&);
model& operator= (model const&);
+
+ private:
+ version_type version_;
};
}
}