Classes | Namespaces | Macros | Typedefs
schema.h File Reference
#include "document.h"
#include "pointer.h"
#include "stringbuffer.h"
#include <cmath>
#include "internal/regex.h"
Include dependency graph for schema.h:

Go to the source code of this file.

Classes

class  GenericSchemaDocument< ValueT, Allocator >
 JSON schema document. More...
 
class  GenericSchemaDocument< ValueT, Allocator >
 JSON schema document. More...
 
class  GenericSchemaValidator< SchemaDocumentType, OutputHandler, StateAllocator >
 JSON Schema Validator. More...
 
class  internal::Hasher< Encoding, Allocator >
 
class  IGenericRemoteSchemaDocumentProvider< SchemaDocumentType >
 
class  internal::ISchemaStateFactory< SchemaType >
 
class  internal::ISchemaValidator
 
class  internal::IValidationErrorHandler< SchemaType >
 
struct  internal::Hasher< Encoding, Allocator >::Number
 
struct  internal::Schema< SchemaDocumentType >::PatternProperty
 
struct  internal::Schema< SchemaDocumentType >::Property
 
class  internal::Schema< SchemaDocumentType >
 
class  internal::Schema< SchemaDocumentType >
 
struct  internal::Schema< SchemaDocumentType >::SchemaArray
 
struct  GenericSchemaDocument< ValueT, Allocator >::SchemaEntry
 
struct  GenericSchemaDocument< ValueT, Allocator >::SchemaRefEntry
 
class  SchemaValidatingReader< parseFlags, InputStream, SourceEncoding, SchemaDocumentType, StackAllocator >
 A helper class for parsing with validation. More...
 
struct  internal::SchemaValidationContext< SchemaDocumentType >
 
struct  internal::TokenHelper< Stack, Ch >
 
struct  internal::TokenHelper< Stack, char >
 
union  internal::Hasher< Encoding, Allocator >::Number::U
 

Namespaces

 internal
 

Macros

#define RAPIDJSON_INVALID_KEYWORD_RETURN(keyword)
 
#define RAPIDJSON_INVALID_KEYWORD_VERBOSE(keyword)
 
#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_(method, arg1)
 
#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_()
 
#define RAPIDJSON_SCHEMA_HANDLE_END_(method, arg2)   return valid_ = EndValue() && (!outputHandler_ || outputHandler_->method arg2)
 
#define RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(method, arg2)
 
#define RAPIDJSON_SCHEMA_HANDLE_VALUE_(method, arg1, arg2)
 
#define RAPIDJSON_SCHEMA_HAS_REGEX   1
 
#define RAPIDJSON_SCHEMA_USE_INTERNALREGEX   1
 
#define RAPIDJSON_SCHEMA_USE_STDREGEX   0
 
#define RAPIDJSON_SCHEMA_VERBOSE   0
 
#define RAPIDJSON_STRING_(name, ...)
 
#define RAPIDJSON_STRING_(name, ...)
 

Typedefs

typedef IGenericRemoteSchemaDocumentProvider< SchemaDocumentIRemoteSchemaDocumentProvider
 IGenericRemoteSchemaDocumentProvider using SchemaDocument. More...
 
typedef GenericSchemaDocument< ValueSchemaDocument
 GenericSchemaDocument using Value type. More...
 
typedef GenericSchemaValidator< SchemaDocumentSchemaValidator
 

Macro Definition Documentation

#define RAPIDJSON_INVALID_KEYWORD_RETURN (   keyword)
Value:
RAPIDJSON_MULTILINEMACRO_BEGIN \
context.invalidKeyword = keyword.GetString(); \
RAPIDJSON_INVALID_KEYWORD_VERBOSE(keyword.GetString()); \
return false; \
RAPIDJSON_MULTILINEMACRO_END
#define RAPIDJSON_INVALID_KEYWORD_VERBOSE(keyword)
Definition: schema.h:120

Definition at line 123 of file schema.h.

#define RAPIDJSON_INVALID_KEYWORD_VERBOSE (   keyword)

Definition at line 120 of file schema.h.

#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_ (   method,
  arg1 
)
Value:
if (!valid_) \
return false; \
if (!BeginValue() || !CurrentSchema().method arg1) \
{ \
return valid_ = false; \
}
#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_()
Definition: schema.h:2464

Definition at line 2467 of file schema.h.

#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_VERBOSE_ ( )

Definition at line 2464 of file schema.h.

#define RAPIDJSON_SCHEMA_HANDLE_END_ (   method,
  arg2 
)    return valid_ = EndValue() && (!outputHandler_ || outputHandler_->method arg2)

Definition at line 2490 of file schema.h.

#define RAPIDJSON_SCHEMA_HANDLE_PARALLEL_ (   method,
  arg2 
)
Value:
for (Context* context = schemaStack_.template Bottom<Context>(); context != schemaStack_.template End<Context>(); \
context++) \
{ \
if (context->hasher) \
static_cast<HasherType*>(context->hasher)->method arg2; \
if (context->validators) \
for (SizeType i_ = 0; i_ < context->validatorCount; i_++) \
static_cast<GenericSchemaValidator*>(context->validators[i_])->method arg2; \
if (context->patternPropertiesValidators) \
for (SizeType i_ = 0; i_ < context->patternPropertiesValidatorCount; i_++) \
static_cast<GenericSchemaValidator*>(context->patternPropertiesValidators[i_])->method arg2; \
}
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition: rapidjson.h:394

Definition at line 2476 of file schema.h.

#define RAPIDJSON_SCHEMA_HANDLE_VALUE_ (   method,
  arg1,
  arg2 
)
Value:
#define RAPIDJSON_SCHEMA_HANDLE_BEGIN_(method, arg1)
Definition: schema.h:2467
#define RAPIDJSON_SCHEMA_HANDLE_PARALLEL_(method, arg2)
Definition: schema.h:2476
#define RAPIDJSON_SCHEMA_HANDLE_END_(method, arg2)
Definition: schema.h:2490

Definition at line 2493 of file schema.h.

#define RAPIDJSON_SCHEMA_HAS_REGEX   1

Definition at line 43 of file schema.h.

#define RAPIDJSON_SCHEMA_USE_INTERNALREGEX   1

Definition at line 24 of file schema.h.

#define RAPIDJSON_SCHEMA_USE_STDREGEX   0

Definition at line 33 of file schema.h.

#define RAPIDJSON_SCHEMA_VERBOSE   0

Definition at line 49 of file schema.h.

#define RAPIDJSON_STRING_ (   name,
  ... 
)
Value:
static const ValueType& Get##name##String() \
{ \
static const Ch s[] = { __VA_ARGS__, '\0' }; \
static const ValueType v(s, static_cast<SizeType>(sizeof(s) / sizeof(Ch) - 1)); \
return v; \
}
XmlRpcServer s

Definition at line 2437 of file schema.h.

#define RAPIDJSON_STRING_ (   name,
  ... 
)
Value:
static const StringRefType& Get##name##String() \
{ \
static const Ch s[] = { __VA_ARGS__, '\0' }; \
static const StringRefType v(s, static_cast<SizeType>(sizeof(s) / sizeof(Ch) - 1)); \
return v; \
}
XmlRpcServer s

Definition at line 2437 of file schema.h.

Typedef Documentation

IGenericRemoteSchemaDocumentProvider using SchemaDocument.

Definition at line 2090 of file schema.h.

GenericSchemaDocument using Value type.

Definition at line 2088 of file schema.h.

Definition at line 2886 of file schema.h.



xbot_talker
Author(s): wangxiaoyun
autogenerated on Sat Oct 10 2020 03:27:54