| 1964 | |
| 1965 | template <typename Handler> |
| 1966 | bool operator()(Handler& handler) { |
| 1967 | GenericReader<SourceEncoding, typename SchemaDocumentType::EncodingType, StackAllocator> reader; |
| 1968 | GenericSchemaValidator<SchemaDocumentType, Handler> validator(sd_, handler); |
| 1969 | parseResult_ = reader.template Parse<parseFlags>(is_, validator); |
| 1970 | |
| 1971 | isValid_ = validator.IsValid(); |
| 1972 | if (isValid_) { |
| 1973 | invalidSchemaPointer_ = PointerType(); |
| 1974 | invalidSchemaKeyword_ = 0; |
| 1975 | invalidDocumentPointer_ = PointerType(); |
| 1976 | } |
| 1977 | else { |
| 1978 | invalidSchemaPointer_ = validator.GetInvalidSchemaPointer(); |
| 1979 | invalidSchemaKeyword_ = validator.GetInvalidSchemaKeyword(); |
| 1980 | invalidDocumentPointer_ = validator.GetInvalidDocumentPointer(); |
| 1981 | } |
| 1982 | |
| 1983 | return parseResult_; |
| 1984 | } |
| 1985 | |
| 1986 | const ParseResult& GetParseResult() const { return parseResult_; } |
| 1987 | bool IsValid() const { return isValid_; } |
nothing calls this directly
no test coverage detected