diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-10 15:17:16 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-07-10 15:17:16 +0200 |
commit | b8554760aa3a5c5697c77d11e507a2bb46dbf8e4 (patch) | |
tree | 3f2bcb28a59eb0d4cce4586acec4a8c639cde7e6 /odb/relational/validator.hxx | |
parent | 1b64460a2b2c5411b6052cd4c4d8e8b0d46a4086 (diff) |
Add support for custom database type mapping
New pragma qualifier, map, and specifiers: as, to, from. New tests:
<database>/custom.
Diffstat (limited to 'odb/relational/validator.hxx')
-rw-r--r-- | odb/relational/validator.hxx | 36 |
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 |