aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/validator.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/validator.hxx')
-rw-r--r--odb/relational/validator.hxx36
1 files changed, 36 insertions, 0 deletions
diff --git a/odb/relational/validator.hxx b/odb/relational/validator.hxx
new file mode 100644
index 0000000..485602d
--- /dev/null
+++ b/odb/relational/validator.hxx
@@ -0,0 +1,36 @@
+// file : odb/relational/validator.hxx
+// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
+// license : GNU GPL v3; see accompanying LICENSE file
+
+#ifndef ODB_RELATIONAL_VALIDATOR_HXX
+#define ODB_RELATIONAL_VALIDATOR_HXX
+
+#include <odb/options.hxx>
+#include <odb/features.hxx>
+#include <odb/semantics/unit.hxx>
+
+namespace relational
+{
+ class validator
+ {
+ public:
+ struct failed {};
+
+ // The first pass is performed before processing. The second -- after.
+ //
+ void
+ validate (options const&,
+ features&,
+ semantics::unit&,
+ semantics::path const&,
+ unsigned short pass);
+
+ validator () {}
+
+ private:
+ validator (validator const&);
+ validator& operator= (validator const&);
+ };
+}
+
+#endif // ODB_RELATIONAL_VALIDATOR_HXX