diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-03-16 07:44:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-10 18:46:43 +0200 |
commit | 08b159e18527c2d6844e569b1309b5033b4d47c9 (patch) | |
tree | 224a1d6e7c989740e9be806c0f3cc7fc20266eb2 /odb/semantics/relational/column.hxx | |
parent | 9fe60de16cf9411a548c020cae5ac7b9e7938e82 (diff) |
Add initial support for database model serialization to XML
Diffstat (limited to 'odb/semantics/relational/column.hxx')
-rw-r--r-- | odb/semantics/relational/column.hxx | 15 |
1 files changed, 10 insertions, 5 deletions
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<contains*> 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_; |