A helper class for parsing with validation.
More...
#include <schema.h>
|
typedef SchemaDocumentType::PointerType | PointerType |
|
typedef InputStream::Ch | Ch |
|
|
| 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 |
|
template<unsigned parseFlags, typename InputStream, typename SourceEncoding, typename SchemaDocumentType = SchemaDocument, typename StackAllocator = CrtAllocator>
class SchemaValidatingReader< parseFlags, InputStream, SourceEncoding, SchemaDocumentType, StackAllocator >
A helper class for parsing with validation.
This helper class is a functor, designed as a parameter of GenericDocument::Populate().
- Template 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. |
◆ SchemaValidatingReader()
template<unsigned parseFlags, typename InputStream , typename SourceEncoding , typename SchemaDocumentType = SchemaDocument, typename StackAllocator = CrtAllocator>
Constructor.
- Parameters
-
is | Input stream. |
sd | Schema document. |
The documentation for this class was generated from the following file:
- MeshProtocolSimulator/rapidjson/schema.h