aboutsummaryrefslogtreecommitdiff
path: root/odb/features.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-03-21 08:36:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:50:56 +0200
commit8d89bf37dd4ef3cb7373e1841ff57a53916fff0d (patch)
tree704b7de0338eba0e008a96a09b6d57e86846d1b1 /odb/features.hxx
parent68ff21c56fb287790440208907ad2a851a108f89 (diff)
Polymorphic inheritance support
Diffstat (limited to 'odb/features.hxx')
-rw-r--r--odb/features.hxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/odb/features.hxx b/odb/features.hxx
new file mode 100644
index 0000000..0468acb
--- /dev/null
+++ b/odb/features.hxx
@@ -0,0 +1,24 @@
+// file : odb/features.hxx
+// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
+// license : GNU GPL v3; see accompanying LICENSE file
+
+#ifndef ODB_FEATURES_HXX
+#define ODB_FEATURES_HXX
+
+#include <cstring> // std::memset
+
+// Optional features used by client code that affect generated code.
+//
+struct features
+{
+ features () {std::memset (this, 0, sizeof (features));}
+
+ bool tr1_pointer;
+ bool boost_pointer;
+ bool simple_object;
+ bool polymorphic_object;
+ bool no_id_object;
+ bool view;
+};
+
+#endif // ODB_FEATURES_HXX