Public Types | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator > Class Template Reference

JSON Schema Validator. More...

#include <fwd.h>

Inheritance diagram for GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >:
Inheritance graph
[legend]

Public Types

typedef EncodingType::Ch Ch
 
typedef SchemaType::EncodingType EncodingType
 
typedef SchemaDocumentType::PointerType PointerType
 
typedef SchemaDocumentType::SchemaType SchemaType
 
typedef GenericStringRef< ChStringRefType
 
typedef SchemaType::SValue SValue
 
typedef GenericValue< EncodingType, StateAllocator > ValueType
 
- Public Types inherited from internal::IValidationErrorHandler< SchemaDocumentType::SchemaType >
typedef SchemaDocumentType::SchemaType::Ch Ch
 
typedef SchemaDocumentType::SchemaType::SValue SValue
 

Public Member Functions

void AboveMaximum (int64_t actual, const SValue &expected, bool exclusive)
 
void AboveMaximum (uint64_t actual, const SValue &expected, bool exclusive)
 
void AboveMaximum (double actual, const SValue &expected, bool exclusive)
 
void AddDependencySchemaError (const SValue &sourceName, ISchemaValidator *subvalidator)
 
void AddExpectedType (const typename SchemaType::ValueType &expectedType)
 
void AddMissingDependentProperty (const SValue &targetName)
 
void AddMissingProperty (const SValue &name)
 
void BelowMinimum (int64_t actual, const SValue &expected, bool exclusive)
 
void BelowMinimum (uint64_t actual, const SValue &expected, bool exclusive)
 
void BelowMinimum (double actual, const SValue &expected, bool exclusive)
 
bool Bool (bool b)
 
virtual void * CreateHasher ()
 
virtual ISchemaValidator * CreateSchemaValidator (const SchemaType &root)
 
virtual void DestroryHasher (void *hasher)
 
virtual void DestroySchemaValidator (ISchemaValidator *validator)
 
void Disallowed ()
 
void DisallowedItem (SizeType index)
 
void DisallowedProperty (const Ch *name, SizeType length)
 
void DisallowedValue ()
 
void DoesNotMatch (const Ch *str, SizeType length)
 
bool Double (double d)
 
void DuplicateItems (SizeType index1, SizeType index2)
 
bool EndArray (SizeType elementCount)
 
bool EndDependencyErrors ()
 
void EndDisallowedType (const typename SchemaType::ValueType &actualType)
 
void EndMissingDependentProperties (const SValue &sourceName)
 
bool EndMissingProperties ()
 
bool EndObject (SizeType memberCount)
 
virtual void FreeState (void *p)
 
 GenericSchemaValidator (const SchemaDocumentType &schemaDocument, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity)
 Constructor without output handler. More...
 
 GenericSchemaValidator (const SchemaDocumentType &schemaDocument, OutputHandler &outputHandler, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity)
 Constructor with output handler. More...
 
ValueTypeGetError ()
 Gets the error object. More...
 
const ValueTypeGetError () const
 
virtual uint64_t GetHashCode (void *hasher)
 
PointerType GetInvalidDocumentPointer () const
 Gets the JSON pointer pointed to the invalid value. More...
 
const ChGetInvalidSchemaKeyword () const
 Gets the keyword of invalid schema. More...
 
PointerType GetInvalidSchemaPointer () const
 Gets the JSON pointer pointed to the invalid schema. More...
 
bool Int (int i)
 
bool Int64 (int64_t i)
 
virtual bool IsValid () const
 Checks whether the current state is valid. More...
 
bool Key (const Ch *str, SizeType len, bool copy)
 
virtual void * MallocState (size_t size)
 
void NoneOf (ISchemaValidator **subvalidators, SizeType count)
 
void NotAllOf (ISchemaValidator **subvalidators, SizeType count)
 
void NotMultipleOf (int64_t actual, const SValue &expected)
 
void NotMultipleOf (uint64_t actual, const SValue &expected)
 
void NotMultipleOf (double actual, const SValue &expected)
 
void NotOneOf (ISchemaValidator **subvalidators, SizeType count)
 
void PropertyViolations (ISchemaValidator **subvalidators, SizeType count)
 
 RAPIDJSON_STRING_ (InstanceRef, 'i', 'n', 's', 't', 'a', 'n', 'c', 'e', 'R', 'e', 'f') RAPIDJSON_STRING_(Disallowed
 
d RAPIDJSON_STRING_ (Duplicates, 'd', 'u', 'p', 'l', 'i', 'c', 'a', 't', 'e', 's') bool Null()
 
bool RawNumber (const Ch *str, SizeType length, bool copy)
 
void Reset ()
 Reset the internal states. More...
 
bool StartArray ()
 
void StartDependencyErrors ()
 
void StartDisallowedType ()
 
void StartMissingDependentProperties ()
 
void StartMissingProperties ()
 
bool StartObject ()
 
bool String (const Ch *str, SizeType length, bool copy)
 
void TooFewItems (SizeType actualCount, SizeType expectedCount)
 
void TooFewProperties (SizeType actualCount, SizeType expectedCount)
 
void TooLong (const Ch *str, SizeType length, SizeType expected)
 
void TooManyItems (SizeType actualCount, SizeType expectedCount)
 
void TooManyProperties (SizeType actualCount, SizeType expectedCount)
 
void TooShort (const Ch *str, SizeType length, SizeType expected)
 
bool Uint (unsigned u)
 
bool Uint64 (uint64_t u)
 
 ~GenericSchemaValidator ()
 Destructor. More...
 
- Public Member Functions inherited from internal::ISchemaStateFactory< SchemaDocumentType::SchemaType >
virtual void DestroySchemaValidator (ISchemaValidator *validator)=0
 
virtual ~ISchemaStateFactory ()
 
- Public Member Functions inherited from internal::ISchemaValidator
virtual ~ISchemaValidator ()
 
- Public Member Functions inherited from internal::IValidationErrorHandler< SchemaDocumentType::SchemaType >
virtual void AboveMaximum (int64_t actual, const SValue &expected, bool exclusive)=0
 
virtual void AboveMaximum (uint64_t actual, const SValue &expected, bool exclusive)=0
 
virtual void AboveMaximum (double actual, const SValue &expected, bool exclusive)=0
 
virtual void AddDependencySchemaError (const SValue &souceName, ISchemaValidator *subvalidator)=0
 
virtual void AddExpectedType (const typename SchemaDocumentType::SchemaType::ValueType &expectedType)=0
 
virtual void AddMissingDependentProperty (const SValue &targetName)=0
 
virtual void AddMissingProperty (const SValue &name)=0
 
virtual void BelowMinimum (int64_t actual, const SValue &expected, bool exclusive)=0
 
virtual void BelowMinimum (uint64_t actual, const SValue &expected, bool exclusive)=0
 
virtual void BelowMinimum (double actual, const SValue &expected, bool exclusive)=0
 
virtual void DisallowedProperty (const Ch *name, SizeType length)=0
 
virtual void DoesNotMatch (const Ch *str, SizeType length)=0
 
virtual void EndDisallowedType (const typename SchemaDocumentType::SchemaType::ValueType &actualType)=0
 
virtual void EndMissingDependentProperties (const SValue &sourceName)=0
 
virtual void NoneOf (ISchemaValidator **subvalidators, SizeType count)=0
 
virtual void NotAllOf (ISchemaValidator **subvalidators, SizeType count)=0
 
virtual void NotMultipleOf (int64_t actual, const SValue &expected)=0
 
virtual void NotMultipleOf (uint64_t actual, const SValue &expected)=0
 
virtual void NotMultipleOf (double actual, const SValue &expected)=0
 
virtual void NotOneOf (ISchemaValidator **subvalidators, SizeType count)=0
 
virtual void PropertyViolations (ISchemaValidator **subvalidators, SizeType count)=0
 
virtual void TooLong (const Ch *str, SizeType length, SizeType expected)=0
 
virtual void TooShort (const Ch *str, SizeType length, SizeType expected)=0
 
virtual ~IValidationErrorHandler ()
 

Public Attributes

 a
 
 d
 
 e
 
 i
 
 l
 
 o
 
 s
 
 w
 

Private Types

typedef SchemaType::Context Context
 
typedef GenericValue< UTF8<>, StateAllocator > HashCodeArray
 
typedef internal::Hasher< EncodingType, StateAllocator > HasherType
 

Private Member Functions

void AddCurrentError (const typename SchemaType::ValueType &keyword, bool parent=false)
 
void AddError (ValueType &keyword, ValueType &error)
 
void AddErrorArray (const typename SchemaType::ValueType &keyword, ISchemaValidator **subvalidators, SizeType count)
 
void AddErrorLocation (ValueType &result, bool parent)
 
void AddNumberError (const typename SchemaType::ValueType &keyword, ValueType &actual, const SValue &expected, const typename SchemaType::ValueType &(*exclusive)()=0)
 
void AppendToken (const Ch *str, SizeType len)
 
bool BeginValue ()
 
ContextCurrentContext ()
 
const ContextCurrentContext () const
 
const SchemaTypeCurrentSchema () const
 
bool EndValue ()
 
 GenericSchemaValidator (const SchemaDocumentType &schemaDocument, const SchemaType &root, const char *basePath, size_t basePathSize, StateAllocator *allocator=0, size_t schemaStackCapacity=kDefaultSchemaStackCapacity, size_t documentStackCapacity=kDefaultDocumentStackCapacity)
 
StateAllocator & GetStateAllocator ()
 
void MergeError (ValueType &other)
 
RAPIDJSON_FORCEINLINE void PopSchema ()
 
RAPIDJSON_FORCEINLINE void PushSchema (const SchemaType &schema)
 

Private Attributes

ValueType currentError_
 
internal::Stack< StateAllocator > documentStack_
 
ValueType error_
 
ValueType missingDependents_
 
OutputHandler * outputHandler_
 
StateAllocator * ownStateAllocator_
 
const SchemaTyperoot_
 
const SchemaDocumentType * schemaDocument_
 
internal::Stack< StateAllocator > schemaStack_
 
StateAllocator * stateAllocator_
 
bool valid_
 

Static Private Attributes

static const size_t kDefaultDocumentStackCapacity = 256
 
static const size_t kDefaultSchemaStackCapacity = 1024
 

Detailed Description

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
class GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >

JSON Schema Validator.

A SAX style JSON schema validator. It uses a GenericSchemaDocument to validate SAX events. It delegates the incoming SAX events to an output handler. The default output handler does nothing. It can be reused multiple times by calling Reset().

Template Parameters
SchemaDocumentTypeType of schema document.
OutputHandlerType of output handler. Default handler does nothing.
StateAllocatorAllocator for storing the internal validation states.

Definition at line 162 of file fwd.h.

Member Typedef Documentation

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef EncodingType::Ch GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Ch

Definition at line 1924 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaType::Context GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Context
private

Definition at line 2390 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaType::EncodingType GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EncodingType

Definition at line 1922 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef GenericValue<UTF8<>, StateAllocator> GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::HashCodeArray
private

Definition at line 2391 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef internal::Hasher<EncodingType, StateAllocator> GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::HasherType
private

Definition at line 2392 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaDocumentType::PointerType GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::PointerType

Definition at line 1921 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaDocumentType::SchemaType GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::SchemaType

Definition at line 1920 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef GenericStringRef<Ch> GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StringRefType

Definition at line 1925 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef SchemaType::SValue GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::SValue

Definition at line 1923 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
typedef GenericValue<EncodingType, StateAllocator> GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::ValueType

Definition at line 1926 of file schema.h.

Constructor & Destructor Documentation

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GenericSchemaValidator ( const SchemaDocumentType &  schemaDocument,
StateAllocator *  allocator = 0,
size_t  schemaStackCapacity = kDefaultSchemaStackCapacity,
size_t  documentStackCapacity = kDefaultDocumentStackCapacity 
)
inline

Constructor without output handler.

Parameters
schemaDocumentThe schema document to conform to.
allocatorOptional allocator for storing internal validation states.
schemaStackCapacityOptional initial capacity of schema path stack.
documentStackCapacityOptional initial capacity of document path stack.

Definition at line 1936 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GenericSchemaValidator ( const SchemaDocumentType &  schemaDocument,
OutputHandler &  outputHandler,
StateAllocator *  allocator = 0,
size_t  schemaStackCapacity = kDefaultSchemaStackCapacity,
size_t  documentStackCapacity = kDefaultDocumentStackCapacity 
)
inline

Constructor with output handler.

Parameters
schemaDocumentThe schema document to conform to.
allocatorOptional allocator for storing internal validation states.
schemaStackCapacityOptional initial capacity of schema path stack.
documentStackCapacityOptional initial capacity of document path stack.

Definition at line 1966 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::~GenericSchemaValidator ( )
inline

Destructor.

Definition at line 1990 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GenericSchemaValidator ( const SchemaDocumentType &  schemaDocument,
const SchemaType root,
const char *  basePath,
size_t  basePathSize,
StateAllocator *  allocator = 0,
size_t  schemaStackCapacity = kDefaultSchemaStackCapacity,
size_t  documentStackCapacity = kDefaultDocumentStackCapacity 
)
inlineprivate

Definition at line 2394 of file schema.h.

Member Function Documentation

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AboveMaximum ( int64_t  actual,
const SValue expected,
bool  exclusive 
)
inline

Definition at line 2045 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AboveMaximum ( uint64_t  actual,
const SValue expected,
bool  exclusive 
)
inline

Definition at line 2050 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AboveMaximum ( double  actual,
const SValue expected,
bool  exclusive 
)
inline

Definition at line 2055 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddCurrentError ( const typename SchemaType::ValueType &  keyword,
bool  parent = false 
)
inlineprivate

Definition at line 2582 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddDependencySchemaError ( const SValue sourceName,
ISchemaValidator *  subvalidator 
)
inline

Definition at line 2163 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddError ( ValueType keyword,
ValueType error 
)
inlineprivate

Definition at line 2568 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddErrorArray ( const typename SchemaType::ValueType &  keyword,
ISchemaValidator **  subvalidators,
SizeType  count 
)
inlineprivate

Definition at line 2613 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddErrorLocation ( ValueType result,
bool  parent 
)
inlineprivate

Definition at line 2545 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddExpectedType ( const typename SchemaType::ValueType &  expectedType)
inline

Definition at line 2184 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddMissingDependentProperty ( const SValue targetName)
inline

Definition at line 2154 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddMissingProperty ( const SValue name)
inline

Definition at line 2127 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AddNumberError ( const typename SchemaType::ValueType &  keyword,
ValueType actual,
const SValue expected,
const typename SchemaType::ValueType &(*)()  exclusive = 0 
)
inlineprivate

Definition at line 2597 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::AppendToken ( const Ch str,
SizeType  len 
)
inlineprivate

Definition at line 2514 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::BeginValue ( )
inlineprivate

Definition at line 2430 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::BelowMinimum ( int64_t  actual,
const SValue expected,
bool  exclusive 
)
inline

Definition at line 2060 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::BelowMinimum ( uint64_t  actual,
const SValue expected,
bool  exclusive 
)
inline

Definition at line 2065 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::BelowMinimum ( double  actual,
const SValue expected,
bool  exclusive 
)
inline

Definition at line 2070 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Bool ( bool  b)
inline

Definition at line 2280 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void* GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CreateHasher ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual ISchemaValidator* GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CreateSchemaValidator ( const SchemaType root)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
Context& GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CurrentContext ( )
inlineprivate

Definition at line 2628 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const Context& GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CurrentContext ( ) const
inlineprivate

Definition at line 2629 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const SchemaType& GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::CurrentSchema ( ) const
inlineprivate

Definition at line 2625 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DestroryHasher ( void *  hasher)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DestroySchemaValidator ( ISchemaValidator *  validator)
inlinevirtual

Definition at line 2361 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Disallowed ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DisallowedItem ( SizeType  index)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DisallowedProperty ( const Ch name,
SizeType  length 
)
inline

Definition at line 2144 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DisallowedValue ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DoesNotMatch ( const Ch str,
SizeType  length 
)
inline

Definition at line 2086 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Double ( double  d)
inline

Definition at line 2295 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::DuplicateItems ( SizeType  index1,
SizeType  index2 
)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndArray ( SizeType  elementCount)
inline

Definition at line 2336 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndDependencyErrors ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndDisallowedType ( const typename SchemaType::ValueType &  actualType)
inline

Definition at line 2188 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndMissingDependentProperties ( const SValue sourceName)
inline

Definition at line 2158 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndMissingProperties ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndObject ( SizeType  memberCount)
inline

Definition at line 2322 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::EndValue ( )
inlineprivate

Definition at line 2466 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::FreeState ( void *  p)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
ValueType& GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetError ( )
inline

Gets the error object.

Definition at line 2010 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const ValueType& GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetError ( ) const
inline

Definition at line 2011 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual uint64_t GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetHashCode ( void *  hasher)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
PointerType GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetInvalidDocumentPointer ( ) const
inline

Gets the JSON pointer pointed to the invalid value.

Definition at line 2024 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const Ch* GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetInvalidSchemaKeyword ( ) const
inline

Gets the keyword of invalid schema.

Definition at line 2019 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
PointerType GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetInvalidSchemaPointer ( ) const
inline

Gets the JSON pointer pointed to the invalid schema.

Definition at line 2014 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
StateAllocator& GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::GetStateAllocator ( )
inlineprivate

Definition at line 2424 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Int ( int  i)
inline

Definition at line 2283 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Int64 ( int64_t  i)
inline

Definition at line 2289 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::IsValid ( ) const
inlinevirtual

Checks whether the current state is valid.

Implements internal::ISchemaValidator.

Definition at line 2007 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Key ( const Ch str,
SizeType  len,
bool  copy 
)
inline

Definition at line 2313 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
virtual void* GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::MallocState ( size_t  size)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::MergeError ( ValueType other)
inlineprivate

Definition at line 2589 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::NoneOf ( ISchemaValidator **  subvalidators,
SizeType  count 
)
inline

Definition at line 2203 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::NotAllOf ( ISchemaValidator **  subvalidators,
SizeType  count 
)
inline

Definition at line 2197 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::NotMultipleOf ( int64_t  actual,
const SValue expected 
)
inline

Definition at line 2033 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::NotMultipleOf ( uint64_t  actual,
const SValue expected 
)
inline

Definition at line 2037 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::NotMultipleOf ( double  actual,
const SValue expected 
)
inline

Definition at line 2041 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::NotOneOf ( ISchemaValidator **  subvalidators,
SizeType  count 
)
inline

Definition at line 2206 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
RAPIDJSON_FORCEINLINE void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::PopSchema ( )
inlineprivate

Definition at line 2535 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::PropertyViolations ( ISchemaValidator **  subvalidators,
SizeType  count 
)
inline

Definition at line 2139 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
RAPIDJSON_FORCEINLINE void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::PushSchema ( const SchemaType schema)
inlineprivate

Definition at line 2531 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::RAPIDJSON_STRING_ ( InstanceRef  ,
'i ,
'n'  ,
's ,
't'  ,
'a ,
'n'  ,
'c'  ,
'e ,
'R'  ,
'e ,
'f  
)
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
d GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::RAPIDJSON_STRING_ ( Duplicates  ,
'd ,
'u'  ,
'p'  ,
'l ,
'i ,
'c'  ,
'a ,
't'  ,
'e ,
's  
)
inline

Definition at line 2231 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::RawNumber ( const Ch str,
SizeType  length,
bool  copy 
)
inline

Definition at line 2298 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Reset ( )
inline

Reset the internal states.

Definition at line 1996 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StartArray ( )
inline

Definition at line 2330 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StartDependencyErrors ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StartDisallowedType ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StartMissingDependentProperties ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StartMissingProperties ( )
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::StartObject ( )
inline

Definition at line 2307 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::String ( const Ch str,
SizeType  length,
bool  copy 
)
inline

Definition at line 2302 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::TooFewItems ( SizeType  actualCount,
SizeType  expectedCount 
)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::TooFewProperties ( SizeType  actualCount,
SizeType  expectedCount 
)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::TooLong ( const Ch str,
SizeType  length,
SizeType  expected 
)
inline

Definition at line 2076 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::TooManyItems ( SizeType  actualCount,
SizeType  expectedCount 
)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::TooManyProperties ( SizeType  actualCount,
SizeType  expectedCount 
)
inlinevirtual
template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
void GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::TooShort ( const Ch str,
SizeType  length,
SizeType  expected 
)
inline

Definition at line 2081 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Uint ( unsigned  u)
inline

Definition at line 2286 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::Uint64 ( uint64_t  u)
inline

Definition at line 2292 of file schema.h.

Member Data Documentation

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::a

Definition at line 2227 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
ValueType GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::currentError_
private

Definition at line 2647 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::d

Definition at line 2227 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
internal::Stack<StateAllocator> GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::documentStack_
private

stack to store the current path of validating document (Ch)

Definition at line 2643 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::e

Definition at line 2227 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
ValueType GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::error_
private

Definition at line 2646 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::i

Definition at line 2227 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const size_t GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::kDefaultDocumentStackCapacity = 256
staticprivate

Definition at line 2634 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const size_t GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::kDefaultSchemaStackCapacity = 1024
staticprivate

Definition at line 2633 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::l

Definition at line 2227 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
ValueType GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::missingDependents_
private

Definition at line 2648 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::o

Definition at line 2227 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
OutputHandler* GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::outputHandler_
private

Definition at line 2645 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
StateAllocator* GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::ownStateAllocator_
private

Definition at line 2638 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const SchemaType& GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::root_
private

Definition at line 2636 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::s

Definition at line 2227 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
const SchemaDocumentType* GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::schemaDocument_
private

Definition at line 2635 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
internal::Stack<StateAllocator> GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::schemaStack_
private

stack to store the current path of schema (BaseSchemaType *)

Definition at line 2640 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
StateAllocator* GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::stateAllocator_
private

Definition at line 2637 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
bool GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::valid_
private

Definition at line 2649 of file schema.h.

template<typename SchemaDocumentType, typename OutputHandler = BaseReaderHandler< typename SchemaDocumentType::SchemaType::EncodingType>, typename StateAllocator = CrtAllocator>
GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >::w

Definition at line 2227 of file schema.h.


The documentation for this class was generated from the following files:


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46