DeepCover Embedded Security in IoT: Public-key Secured Data Paths

Dependencies:   MaximInterface

Embed: (wiki syntax)

« Back to documentation index

GenericSchemaDocument< ValueT, Allocator > Class Template Reference

GenericSchemaDocument< ValueT, Allocator > Class Template Reference

JSON schema document. More...

#include <schema.h>

Public Member Functions

 GenericSchemaDocument (const ValueType &document, IRemoteSchemaDocumentProviderType *remoteProvider=0, Allocator *allocator=0)
 Constructor.
 GenericSchemaDocument (GenericSchemaDocument &&rhs) RAPIDJSON_NOEXCEPT
 Move constructor in C++11.
 ~GenericSchemaDocument ()
 Destructor.
const SchemaType & GetRoot () const
 Get the root schema.

Friends

class GenericSchemaValidator

Detailed Description

template<typename ValueT, typename Allocator = CrtAllocator>
class GenericSchemaDocument< ValueT, Allocator >

JSON schema document.

A JSON schema document is a compiled version of a JSON schema. It is basically a tree of internal::Schema.

Note:
This is an immutable class (i.e. its instance cannot be modified after construction).
Template Parameters:
ValueTType of JSON value (e.g. Value ), which also determine the encoding.
AllocatorAllocator type for allocating memory of this document.

Definition at line 1321 of file schema.h.


Constructor & Destructor Documentation

GenericSchemaDocument ( const ValueType &  document,
IRemoteSchemaDocumentProviderType *  remoteProvider = 0,
Allocator *  allocator = 0 
) [explicit]

Constructor.

Compile a JSON document into schema document.

Parameters:
documentA JSON document as source.
remoteProviderAn optional remote schema document provider for resolving remote reference. Can be null.
allocatorAn optional allocator instance for allocating memory. Can be null.

Definition at line 1342 of file schema.h.

GenericSchemaDocument ( GenericSchemaDocument< ValueT, Allocator > &&  rhs )

Move constructor in C++11.

Definition at line 1379 of file schema.h.

Destructor.

Definition at line 1394 of file schema.h.


Member Function Documentation

const SchemaType& GetRoot (  ) const

Get the root schema.

Definition at line 1402 of file schema.h.