diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-13 10:42:46 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-13 10:42:46 +0200 |
commit | a9d527ffd7e4a2222d5e80c8110f092af0cb5a74 (patch) | |
tree | cd190434be960f8bbb8547619b8b97265d844ed9 /tracer/types | |
parent | c85f0af82c3abf2e7d2dfa76351a59d9884395c0 (diff) |
Change pragma syntax
Change odb pragma namespace to db. Use qualifiers (object, value, and member)
to specify type/member name. Add support for mapping C++ types to db types.
Diffstat (limited to 'tracer/types')
-rw-r--r-- | tracer/types/test.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tracer/types/test.hxx b/tracer/types/test.hxx index 965f133..8537e16 100644 --- a/tracer/types/test.hxx +++ b/tracer/types/test.hxx @@ -15,19 +15,19 @@ typedef int num_t; typedef num_t num_type; -#pragma odb object +#pragma db object struct object1 { typedef int int_type; - #pragma odb id + #pragma db id int_type id_; }; -#pragma odb object +#pragma db object struct object2 { - #pragma odb id + #pragma db id num_type num_; }; |