Torque3D Documentation / _generateds / SchemaValidatingReader

SchemaValidatingReader

Engine/source/persistence/rapidjson/schema.h

A helper class for parsing with validation.

More...

Public Types

InputStream::Ch
Ch 
SchemaDocumentType::PointerType
PointerType 
GenericValue< SourceEncoding, StackAllocator >
ValueType 

Detailed Description

A helper class for parsing with validation.

This helper class is a functor, designed as a parameter of GenericDocument::Populate().

Parameters:

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.

Public Types

typedef InputStream::Ch Ch 
typedef SchemaDocumentType::PointerType PointerType 
typedef GenericValue< SourceEncoding, StackAllocator > ValueType 

Private Attributes

StackAllocator allocator_ 
ValueType error_ 
PointerType invalidDocumentPointer_ 
const Ch * invalidSchemaKeyword_ 
PointerType invalidSchemaPointer_ 
InputStream & is_ 
bool isValid_ 
ParseResult parseResult_ 
const SchemaDocumentType & sd_ 

Public Functions

SchemaValidatingReader(InputStream & is, const SchemaDocumentType & sd)

Constructor.

Parameters:

is

Input stream.

sd

Schema document.

GetError()

GetInvalidDocumentPointer()

GetInvalidSchemaKeyword()

GetInvalidSchemaPointer()

GetParseResult()

IsValid()

operator()(Handler & handler)