From 3b457daf6b252ef31ec0611e7375aa4badd8e63d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Mar 2013 13:10:41 +0200 Subject: Add support for copying database models --- odb/semantics/relational/table.cxx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'odb/semantics/relational/table.cxx') 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 -#include + +#include 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 (*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 (*this, s, g); + } + void add_table:: serialize (xml::serializer& s) const { -- cgit v1.1