summaryrefslogtreecommitdiff
path: root/odb/semantics/relational/changeset.hxx
blob: 76fd6831239458132f1a23eadf9e7567806a22e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// file      : odb/semantics/relational/changeset.hxx
// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
// license   : GNU GPL v3; see accompanying LICENSE file

#ifndef ODB_SEMANTICS_RELATIONAL_CHANGESET_HXX
#define ODB_SEMANTICS_RELATIONAL_CHANGESET_HXX

#include <odb/semantics/relational/elements.hxx>

namespace semantics
{
  namespace relational
  {
    class changeset: public qscope
    {
    public:
      typedef relational::version version_type;

      version_type
      version () const {return version_;}

    public:
      changeset (version_type v): version_ (v) {}
      changeset (changeset const&, qscope& base, graph&);
      changeset (xml::parser&, qscope& base, graph&);

      virtual string
      kind () const {return "changeset";}

      virtual void
      serialize (xml::serializer&) const;

    public:
      using qscope::add_edge_left;
      using qscope::add_edge_right;

    private:
      version_type version_;
    };
  }
}

#endif // ODB_SEMANTICS_RELATIONAL_CHANGESET_HXX