aboutsummaryrefslogtreecommitdiff
path: root/common/template/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-06-04 16:57:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-06-04 16:57:53 +0200
commitca42db0da0d12b1dcdee1cc82dbbd171131cb628 (patch)
tree166fb9b3d51f686688da9ff86c5a51f3cc36a477 /common/template/test.hxx
parentbdb7fa4620c9950b16e8292c22424bbf15a25613 (diff)
Initial set of tests
Diffstat (limited to 'common/template/test.hxx')
-rw-r--r--common/template/test.hxx44
1 files changed, 44 insertions, 0 deletions
diff --git a/common/template/test.hxx b/common/template/test.hxx
new file mode 100644
index 0000000..48acd44
--- /dev/null
+++ b/common/template/test.hxx
@@ -0,0 +1,44 @@
+// file : common/template/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 <string>
+#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