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/column.hxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'odb/semantics/relational/column.hxx') diff --git a/odb/semantics/relational/column.hxx b/odb/semantics/relational/column.hxx index 621e354..19aed98 100644 --- a/odb/semantics/relational/column.hxx +++ b/odb/semantics/relational/column.hxx @@ -19,11 +19,6 @@ namespace semantics typedef std::vector contained_list; public: - column (string const& id, string const& type, bool null) - : unameable (id), type_ (type), null_ (null) - { - } - string const& type () const { @@ -89,6 +84,13 @@ namespace semantics } public: + column (string const& id, string const& type, bool null) + : unameable (id), type_ (type), null_ (null) + { + } + + column (xml::parser&, uscope&, graph&); + void add_edge_right (contains& e) { @@ -103,6 +105,9 @@ namespace semantics return "column"; } + virtual void + serialize (xml::serializer&) const; + private: string type_; bool null_; -- cgit v1.1