A helper class for parsing with validation. More...
#include <schema.h>
Public Types | |
typedef InputStream::Ch | Ch |
typedef SchemaDocumentType::PointerType | PointerType |
typedef GenericValue< SourceEncoding, StackAllocator > | ValueType |
Public Member Functions | |
const ValueType & | GetError () const |
const PointerType & | GetInvalidDocumentPointer () const |
const Ch * | GetInvalidSchemaKeyword () const |
const PointerType & | GetInvalidSchemaPointer () const |
const ParseResult & | GetParseResult () const |
bool | IsValid () const |
template<typename Handler > | |
bool | operator() (Handler &handler) |
SchemaValidatingReader (InputStream &is, const SchemaDocumentType &sd) | |
Constructor. More... | |
Private Attributes | |
StackAllocator | allocator_ |
ValueType | error_ |
PointerType | invalidDocumentPointer_ |
const Ch * | invalidSchemaKeyword_ |
PointerType | invalidSchemaPointer_ |
InputStream & | is_ |
bool | isValid_ |
ParseResult | parseResult_ |
const SchemaDocumentType & | sd_ |
A helper class for parsing with validation.
This helper class is a functor, designed as a parameter of GenericDocument::Populate().
parseFlags | Combination of ParseFlag. |
InputStream | Type of input stream, implementing Stream concept. |
SourceEncoding | Encoding of the input stream. |
SchemaDocumentType | Type of schema document. |
StackAllocator | Allocator type for stack. |
typedef InputStream::Ch SchemaValidatingReader< parseFlags, InputStream, SourceEncoding, SchemaDocumentType, StackAllocator >::Ch |
typedef SchemaDocumentType::PointerType SchemaValidatingReader< parseFlags, InputStream, SourceEncoding, SchemaDocumentType, StackAllocator >::PointerType |
typedef GenericValue<SourceEncoding, StackAllocator> SchemaValidatingReader< parseFlags, InputStream, SourceEncoding, SchemaDocumentType, StackAllocator >::ValueType |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |