diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-04 17:53:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-07-04 17:53:47 +0200 |
commit | 932cd7a53b3996468fee5cfa63c2b2998dbe971a (patch) | |
tree | 55424fe09a95310bc2b8e6d1473108b64107e06c /odb/relational/header.hxx | |
parent | 1ac1ae65e6cbf42c002acb27615127bbc0b20d9e (diff) |
Implement support for database operations callbacks
New object pragma: callback. New test: common/callback. New manual
section: 10.1.4, "callback".
Diffstat (limited to 'odb/relational/header.hxx')
-rw-r--r-- | odb/relational/header.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx index 16c7855..62c2e92 100644 --- a/odb/relational/header.hxx +++ b/odb/relational/header.hxx @@ -940,6 +940,16 @@ namespace relational // Functions (concrete). // + // callback () + // + os << "static void" << endl + << "callback (database&, object_type&, callback_event);" + << endl; + + os << "static void" << endl + << "callback (database&, const object_type&, callback_event);" + << endl; + // persist () // os << "static void" << endl @@ -1090,6 +1100,7 @@ namespace relational generate () { os << "#include <odb/details/buffer.hxx>" << endl + << "#include <odb/details/unused.hxx>" << endl << endl; os << "#include <odb/" << db << "/version.hxx>" << endl |