Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
internal::SchemaValidationContext< SchemaDocumentType > Struct Template Reference

#include <schema.h>

Collaboration diagram for internal::SchemaValidationContext< SchemaDocumentType >:

Public Types

enum  PatternValidatorType { kPatternValidatorOnly , kPatternValidatorWithProperty , kPatternValidatorWithAdditionalProperty }
 
typedef Schema< SchemaDocumentType > SchemaType
 
typedef ISchemaStateFactory< SchemaTypeSchemaValidatorFactoryType
 
typedef IValidationErrorHandler< SchemaTypeErrorHandlerType
 
typedef SchemaType::ValueType ValueType
 
typedef ValueType::Ch Ch
 

Public Member Functions

 SchemaValidationContext (SchemaValidatorFactoryType &f, ErrorHandlerType &eh, const SchemaType *s)
 
 ~SchemaValidationContext ()
 

Public Attributes

SchemaValidatorFactoryTypefactory
 
ErrorHandlerTypeerror_handler
 
const SchemaTypeschema
 
const SchemaTypevalueSchema
 
const ChinvalidKeyword
 
void * hasher
 
void * arrayElementHashCodes
 
ISchemaValidator ** validators
 
SizeType validatorCount
 
ISchemaValidator ** patternPropertiesValidators
 
SizeType patternPropertiesValidatorCount
 
const SchemaType ** patternPropertiesSchemas
 
SizeType patternPropertiesSchemaCount
 
PatternValidatorType valuePatternValidatorType
 
PatternValidatorType objectPatternValidatorType
 
SizeType arrayElementIndex
 
bool * propertyExist
 
bool inArray
 
bool valueUniqueness
 
bool arrayUniqueness
 

Detailed Description

template<typename SchemaDocumentType>
struct internal::SchemaValidationContext< SchemaDocumentType >

Definition at line 316 of file schema.h.

Member Typedef Documentation

◆ Ch

template<typename SchemaDocumentType >
ValueType::Ch internal::SchemaValidationContext< SchemaDocumentType >::Ch

Definition at line 321 of file schema.h.

◆ ErrorHandlerType

template<typename SchemaDocumentType >
IValidationErrorHandler<SchemaType> internal::SchemaValidationContext< SchemaDocumentType >::ErrorHandlerType

Definition at line 319 of file schema.h.

◆ SchemaType

template<typename SchemaDocumentType >
Schema<SchemaDocumentType> internal::SchemaValidationContext< SchemaDocumentType >::SchemaType

Definition at line 317 of file schema.h.

◆ SchemaValidatorFactoryType

template<typename SchemaDocumentType >
ISchemaStateFactory<SchemaType> internal::SchemaValidationContext< SchemaDocumentType >::SchemaValidatorFactoryType

Definition at line 318 of file schema.h.

◆ ValueType

template<typename SchemaDocumentType >
SchemaType::ValueType internal::SchemaValidationContext< SchemaDocumentType >::ValueType

Definition at line 320 of file schema.h.

Member Enumeration Documentation

◆ PatternValidatorType

template<typename SchemaDocumentType >
enum internal::SchemaValidationContext::PatternValidatorType
Enumerator
kPatternValidatorOnly 
kPatternValidatorWithProperty 
kPatternValidatorWithAdditionalProperty 

Definition at line 323 of file schema.h.

Constructor & Destructor Documentation

◆ SchemaValidationContext()

template<typename SchemaDocumentType >
internal::SchemaValidationContext< SchemaDocumentType >::SchemaValidationContext ( SchemaValidatorFactoryType & f,
ErrorHandlerType & eh,
const SchemaType * s )
inline

Definition at line 329 of file schema.h.

329 :
330 factory(f),
331 error_handler(eh),
332 schema(s),
333 valueSchema(),
335 hasher(),
337 validators(),
345 inArray(false),
346 valueUniqueness(false),
347 arrayUniqueness(false)
348 {
349 }
const SchemaType ** patternPropertiesSchemas
Definition schema.h:381
ISchemaValidator ** validators
Definition schema.h:377
const SchemaType * valueSchema
Definition schema.h:373
ISchemaValidator ** patternPropertiesValidators
Definition schema.h:379
PatternValidatorType valuePatternValidatorType
Definition schema.h:383
ErrorHandlerType & error_handler
Definition schema.h:371
SchemaValidatorFactoryType & factory
Definition schema.h:370
const SchemaType * schema
Definition schema.h:372
char * s

◆ ~SchemaValidationContext()

template<typename SchemaDocumentType >
internal::SchemaValidationContext< SchemaDocumentType >::~SchemaValidationContext ( )
inline

Definition at line 351 of file schema.h.

351 {
352 if (hasher)
354 if (validators) {
355 for (SizeType i = 0; i < validatorCount; i++)
358 }
360 for (SizeType i = 0; i < patternPropertiesValidatorCount; i++)
363 }
366 if (propertyExist)
368 }
virtual void DestroySchemaValidator(ISchemaValidator *validator)=0
virtual void FreeState(void *p)=0
virtual void DestroryHasher(void *hasher)=0
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition rapidjson.h:384
Here is the call graph for this function:

Member Data Documentation

◆ arrayElementHashCodes

template<typename SchemaDocumentType >
void* internal::SchemaValidationContext< SchemaDocumentType >::arrayElementHashCodes

Definition at line 376 of file schema.h.

◆ arrayElementIndex

template<typename SchemaDocumentType >
SizeType internal::SchemaValidationContext< SchemaDocumentType >::arrayElementIndex

Definition at line 385 of file schema.h.

◆ arrayUniqueness

template<typename SchemaDocumentType >
bool internal::SchemaValidationContext< SchemaDocumentType >::arrayUniqueness

Definition at line 389 of file schema.h.

◆ error_handler

template<typename SchemaDocumentType >
ErrorHandlerType& internal::SchemaValidationContext< SchemaDocumentType >::error_handler

Definition at line 371 of file schema.h.

◆ factory

template<typename SchemaDocumentType >
SchemaValidatorFactoryType& internal::SchemaValidationContext< SchemaDocumentType >::factory

Definition at line 370 of file schema.h.

◆ hasher

template<typename SchemaDocumentType >
void* internal::SchemaValidationContext< SchemaDocumentType >::hasher

Definition at line 375 of file schema.h.

◆ inArray

template<typename SchemaDocumentType >
bool internal::SchemaValidationContext< SchemaDocumentType >::inArray

Definition at line 387 of file schema.h.

◆ invalidKeyword

template<typename SchemaDocumentType >
const Ch* internal::SchemaValidationContext< SchemaDocumentType >::invalidKeyword

Definition at line 374 of file schema.h.

◆ objectPatternValidatorType

template<typename SchemaDocumentType >
PatternValidatorType internal::SchemaValidationContext< SchemaDocumentType >::objectPatternValidatorType

Definition at line 384 of file schema.h.

◆ patternPropertiesSchemaCount

template<typename SchemaDocumentType >
SizeType internal::SchemaValidationContext< SchemaDocumentType >::patternPropertiesSchemaCount

Definition at line 382 of file schema.h.

◆ patternPropertiesSchemas

template<typename SchemaDocumentType >
const SchemaType** internal::SchemaValidationContext< SchemaDocumentType >::patternPropertiesSchemas

Definition at line 381 of file schema.h.

◆ patternPropertiesValidatorCount

template<typename SchemaDocumentType >
SizeType internal::SchemaValidationContext< SchemaDocumentType >::patternPropertiesValidatorCount

Definition at line 380 of file schema.h.

◆ patternPropertiesValidators

template<typename SchemaDocumentType >
ISchemaValidator** internal::SchemaValidationContext< SchemaDocumentType >::patternPropertiesValidators

Definition at line 379 of file schema.h.

◆ propertyExist

template<typename SchemaDocumentType >
bool* internal::SchemaValidationContext< SchemaDocumentType >::propertyExist

Definition at line 386 of file schema.h.

◆ schema

template<typename SchemaDocumentType >
const SchemaType* internal::SchemaValidationContext< SchemaDocumentType >::schema

Definition at line 372 of file schema.h.

◆ validatorCount

template<typename SchemaDocumentType >
SizeType internal::SchemaValidationContext< SchemaDocumentType >::validatorCount

Definition at line 378 of file schema.h.

◆ validators

template<typename SchemaDocumentType >
ISchemaValidator** internal::SchemaValidationContext< SchemaDocumentType >::validators

Definition at line 377 of file schema.h.

◆ valuePatternValidatorType

template<typename SchemaDocumentType >
PatternValidatorType internal::SchemaValidationContext< SchemaDocumentType >::valuePatternValidatorType

Definition at line 383 of file schema.h.

◆ valueSchema

template<typename SchemaDocumentType >
const SchemaType* internal::SchemaValidationContext< SchemaDocumentType >::valueSchema

Definition at line 373 of file schema.h.

◆ valueUniqueness

template<typename SchemaDocumentType >
bool internal::SchemaValidationContext< SchemaDocumentType >::valueUniqueness

Definition at line 388 of file schema.h.


The documentation for this struct was generated from the following file: