A helper class for parsing with validation. More...
#include <schema.h>
Public Types | |
typedef SchemaDocumentType::PointerType | PointerType |
typedef InputStream::Ch | Ch |
typedef GenericValue< SourceEncoding, StackAllocator > | ValueType |
Public Member Functions | |
SchemaValidatingReader (InputStream &is, const SchemaDocumentType &sd) | |
Constructor. More... | |
template<typename Handler > | |
bool | operator() (Handler &handler) |
const ParseResult & | GetParseResult () const |
bool | IsValid () const |
const PointerType & | GetInvalidSchemaPointer () const |
const Ch * | GetInvalidSchemaKeyword () const |
const PointerType & | GetInvalidDocumentPointer () const |
const ValueType & | GetError () const |
Private Attributes | |
InputStream & | is_ |
const SchemaDocumentType & | sd_ |
ParseResult | parseResult_ |
PointerType | invalidSchemaPointer_ |
const Ch * | invalidSchemaKeyword_ |
PointerType | invalidDocumentPointer_ |
StackAllocator | allocator_ |
ValueType | error_ |
bool | isValid_ |
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 |
Constructor.
is | Input stream. |
sd | Schema document. |
Definition at line 2446 of file schema.h.
|
inline |
|
inline |
Definition at line 2475 of file schema.h.
|
inline |
Definition at line 2474 of file schema.h.
|
inline |
Definition at line 2473 of file schema.h.
|
inline |
|
inline |
|
inline |
Definition at line 2449 of file schema.h.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |