diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-18 13:10:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-10 18:46:43 +0200 |
commit | 3b457daf6b252ef31ec0611e7375aa4badd8e63d (patch) | |
tree | 8874473de1c2cf6c1fd5a63a93c609d6f3fd0127 /odb/semantics/relational/table.cxx | |
parent | 1112388f458cbbac8a73ca840f7f62f6f517e9fa (diff) |
Add support for copying database models
Diffstat (limited to 'odb/semantics/relational/table.cxx')
-rw-r--r-- | odb/semantics/relational/table.cxx | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/odb/semantics/relational/table.cxx b/odb/semantics/relational/table.cxx index 4eeaf0d..1c6e784 100644 --- a/odb/semantics/relational/table.cxx +++ b/odb/semantics/relational/table.cxx @@ -3,7 +3,8 @@ // license : GNU GPL v3; see accompanying LICENSE file #include <cutl/compiler/type-info.hxx> -#include <odb/semantics/relational.hxx> + +#include <odb/semantics/relational/table.hxx> namespace semantics { @@ -12,11 +13,23 @@ namespace semantics // table // table:: + table (table const& t, qscope& s, graph& g) + : qnameable (t, g), uscope (t, g) + { + } + + table:: table (xml::parser& p, qscope&, graph& g) : qnameable (p, g), uscope (p, g) { } + table& table:: + clone (qscope& s, graph& g) const + { + return g.new_node<table> (*this, s, g); + } + void table:: serialize (xml::serializer& s) const { @@ -28,6 +41,12 @@ namespace semantics // add_table // + add_table& add_table:: + clone (qscope& s, graph& g) const + { + return g.new_node<add_table> (*this, s, g); + } + void add_table:: serialize (xml::serializer& s) const { |