summaryrefslogtreecommitdiff
path: root/odb/odb/features.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/odb/features.hxx')
-rw-r--r--odb/odb/features.hxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/odb/odb/features.hxx b/odb/odb/features.hxx
new file mode 100644
index 0000000..1093684
--- /dev/null
+++ b/odb/odb/features.hxx
@@ -0,0 +1,25 @@
+// file : odb/features.hxx
+// 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 session_object;
+ bool section;
+ bool view;
+};
+
+#endif // ODB_FEATURES_HXX