summaryrefslogtreecommitdiff
path: root/odb/semantics/relational/model.hxx
diff options
context:
space:
mode:
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_;
};
}
}