aboutsummaryrefslogtreecommitdiff
path: root/odb/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-24 12:35:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-24 12:35:08 +0200
commit8f59ca1a8d7093655f8f7d61f101abc6df3839d5 (patch)
tree2555c001df7b81560bdc3c579f8c84260c168203 /odb/common.hxx
parent9cb4ce54829fb2f091e8690b591440b4369a1387 (diff)
Generalization work for MySQL and SQLite support
Diffstat (limited to 'odb/common.hxx')
-rw-r--r--odb/common.hxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/odb/common.hxx b/odb/common.hxx
index 8bf7b8e..f0c2d5a 100644
--- a/odb/common.hxx
+++ b/odb/common.hxx
@@ -110,15 +110,22 @@ struct object_columns_base: traversal::class_, virtual context
virtual void
composite (semantics::data_member&, semantics::class_&);
+ // Called after the last column, provided at least one column hasn't
+ // been ignored.
+ //
+ virtual void
+ flush ();
+
public:
object_columns_base ()
- : member_ (*this)
+ : top_level_ (true), member_ (*this)
{
init ();
}
object_columns_base (object_columns_base const&)
: context (), //@@ -Wextra
+ top_level_ (true),
member_ (*this)
{
init ();
@@ -159,6 +166,8 @@ private:
bool first_;
};
+ bool top_level_;
+
member member_;
traversal::names names_;
traversal::inherits inherits_;