summaryrefslogtreecommitdiff
path: root/odb/semantics/relational/index.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-16 07:44:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:43 +0200
commit08b159e18527c2d6844e569b1309b5033b4d47c9 (patch)
tree224a1d6e7c989740e9be806c0f3cc7fc20266eb2 /odb/semantics/relational/index.hxx
parent9fe60de16cf9411a548c020cae5ac7b9e7938e82 (diff)
Add initial support for database model serialization to XML
Diffstat (limited to 'odb/semantics/relational/index.hxx')
-rw-r--r--odb/semantics/relational/index.hxx22
1 files changed, 14 insertions, 8 deletions
diff --git a/odb/semantics/relational/index.hxx b/odb/semantics/relational/index.hxx
index ac65eb3..802faa7 100644
--- a/odb/semantics/relational/index.hxx
+++ b/odb/semantics/relational/index.hxx
@@ -17,14 +17,6 @@ namespace semantics
class index: public key
{
public:
- index (string const& id,
- string const& t = string (),
- string const& m = string (),
- string const& o = string ())
- : key (id), type_ (t), method_ (m), options_ (o)
- {
- }
-
string const&
type () const
{
@@ -49,6 +41,20 @@ namespace semantics
return "index";
}
+ public:
+ index (string const& id,
+ string const& t = string (),
+ string const& m = string (),
+ string const& o = string ())
+ : key (id), type_ (t), method_ (m), options_ (o)
+ {
+ }
+
+ index (xml::parser&, uscope&, graph&);
+
+ virtual void
+ serialize (xml::serializer&) const;
+
private:
string type_; // E.g., "UNIQUE", etc.
string method_; // E.g., "BTREE", etc.