aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-09-19 16:42:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-09-19 16:42:28 +0200
commit8fc4fda0ce88fccbe40c36be3925237a4bca36d9 (patch)
treefc4aad589c9ae36cad4544eba8e06fe7e9b18099 /odb/validator.hxx
parent55df757e98329e8e09afffe274ce2ceab269f8b3 (diff)
Split validator into 2 passes, before and after processing
This is necessary because we sometimes need information during validation (e.g., object pointer and container status) that is determined by the processor.
Diffstat (limited to 'odb/validator.hxx')
-rw-r--r--odb/validator.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/odb/validator.hxx b/odb/validator.hxx
index efb01d3..370e5e0 100644
--- a/odb/validator.hxx
+++ b/odb/validator.hxx
@@ -12,8 +12,13 @@
class validator
{
public:
+ // The first pass is performed before processing. The second -- after.
+ //
bool
- validate (options const&, semantics::unit&, semantics::path const&);
+ validate (options const&,
+ semantics::unit&,
+ semantics::path const&,
+ unsigned short pass);
validator () {}