diff options
Diffstat (limited to 'tracer/object/test.hxx')
-rw-r--r-- | tracer/object/test.hxx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tracer/object/test.hxx b/tracer/object/test.hxx new file mode 100644 index 0000000..a988411 --- /dev/null +++ b/tracer/object/test.hxx @@ -0,0 +1,44 @@ +// file : tracer/object/test.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 TEST_HXX +#define TEST_HXX + +#include <iostream> +#include <odb/core.hxx> + +#pragma odb object +struct object1 +{ + object1 (unsigned long id) + : id_ (id) + { + } + + object1 () + { + } + + #pragma odb id + unsigned long id_; +}; + +#pragma odb object +struct object2 +{ + object2 (const std::string& id) + : id_ (id) + { + } + + object2 () + { + } + + #pragma odb id + std::string id_; +}; + +#endif // TEST_HXX |