From 8fc4fda0ce88fccbe40c36be3925237a4bca36d9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 19 Sep 2011 16:42:28 +0200 Subject: 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. --- odb/validator.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'odb/validator.hxx') 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 () {} -- cgit v1.1