From 08b159e18527c2d6844e569b1309b5033b4d47c9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 16 Mar 2013 07:44:43 +0200 Subject: Add initial support for database model serialization to XML --- odb/semantics/relational/table.hxx | 43 +++++++------------------------------- 1 file changed, 8 insertions(+), 35 deletions(-) (limited to 'odb/semantics/relational/table.hxx') diff --git a/odb/semantics/relational/table.hxx b/odb/semantics/relational/table.hxx index 1dc3957..a57a7db 100644 --- a/odb/semantics/relational/table.hxx +++ b/odb/semantics/relational/table.hxx @@ -14,45 +14,18 @@ namespace semantics class table: public qnameable, public uscope { public: - // Resolve ambiguity. - // - using qnameable::scope; - - protected: - table (string const& id) - : qnameable (id) - { - } - }; - - class object_table: public table - { - public: - object_table (string const& id) - : table (id) - { - } + table (string const& id): qnameable (id) {} + table (xml::parser&, qscope&, graph&); virtual string - kind () const - { - return "object table"; - } - }; + kind () const {return "table";} - class container_table: public table - { - public: - container_table (string const& id) - : table (id) - { - } + virtual void + serialize (xml::serializer&) const; - virtual string - kind () const - { - return "container table"; - } + // Resolve ambiguity. + // + using qnameable::scope; }; } } -- cgit v1.1