diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-20 11:06:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-20 11:06:08 +0200 |
commit | 0e595e5d7bcc25b18027f3bda5d4508d42dacb39 (patch) | |
tree | 212b6a31c4d5e2dde1abd21a44debd879112065c /odb/header.cxx | |
parent | bb76e9388009ed0bb2512034f8cd48a7d19aabb3 (diff) |
Add failure case to tracer implementation
Also adjust object traits API to work with the new low-level API in libodb.
Diffstat (limited to 'odb/header.cxx')
-rw-r--r-- | odb/header.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/odb/header.cxx b/odb/header.cxx index 5d87991..5b302af 100644 --- a/odb/header.cxx +++ b/odb/header.cxx @@ -100,13 +100,13 @@ namespace // insert () // os << "static void" << endl - << "insert (database&, const object_type&);" + << "insert (database&, object_type&);" << endl; // update () // os << "static void" << endl - << "update (database&, const object_type&);" + << "update (database&, object_type&);" << endl; // erase () @@ -117,8 +117,12 @@ namespace // find () // - os << "static shared_ptr" << endl - << "find (database&, const id_type&);"; + os << "static pointer_type" << endl + << "find (database&, const id_type&);" + << endl; + + os << "static bool" << endl + << "find (database&, const id_type&, object_type&);"; os << "};"; } |