diff options
Diffstat (limited to 'tracer/include/obj2.hxx')
-rw-r--r-- | tracer/include/obj2.hxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tracer/include/obj2.hxx b/tracer/include/obj2.hxx new file mode 100644 index 0000000..d29cbad --- /dev/null +++ b/tracer/include/obj2.hxx @@ -0,0 +1,27 @@ +// file : tracer/include/obj2.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef OBJ2_HXX +#define OBJ2_HXX + +#include <odb/core.hxx> + +#pragma db object +struct object2 +{ + object2 (unsigned long id) + : id_ (id) + { + } + + object2 () + { + } + + #pragma db id + unsigned long id_; +}; + +#endif // OBJ2_HXX |