summaryrefslogtreecommitdiff
path: root/odb/odb/validator.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/odb/validator.hxx')
-rw-r--r--odb/odb/validator.hxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/odb/odb/validator.hxx b/odb/odb/validator.hxx
new file mode 100644
index 0000000..d0aeac9
--- /dev/null
+++ b/odb/odb/validator.hxx
@@ -0,0 +1,23 @@
+// file : odb/validator.hxx
+// license : GNU GPL v3; see accompanying LICENSE file
+
+#ifndef ODB_VALIDATOR_HXX
+#define ODB_VALIDATOR_HXX
+
+#include <odb/options.hxx>
+#include <odb/features.hxx>
+#include <odb/semantics/unit.hxx>
+
+class validator_failed {};
+
+// The first pass is performed after processing pass 1 but before
+// processing pass 2. The second -- after pass 2.
+//
+void
+validate (options const&,
+ features&,
+ semantics::unit&,
+ semantics::path const&,
+ unsigned short pass);
+
+#endif // ODB_VALIDATOR_HXX