![]() |
SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
|
JSON schema document. More...
#include <schema.h>
Public Types | |
| typedef ValueT | ValueType |
| typedef IGenericRemoteSchemaDocumentProvider< GenericSchemaDocument > | IRemoteSchemaDocumentProviderType |
| typedef Allocator | AllocatorType |
| typedef ValueType::EncodingType | EncodingType |
| typedef EncodingType::Ch | Ch |
| typedef internal::Schema< GenericSchemaDocument > | SchemaType |
| typedef GenericPointer< ValueType, Allocator > | PointerType |
| typedef GenericValue< EncodingType, AllocatorType > | SValue |
| typedef GenericUri< ValueType, Allocator > | UriType |
Public Member Functions | |
| GenericSchemaDocument (const ValueType &document, const Ch *uri=0, SizeType uriLength=0, IRemoteSchemaDocumentProviderType *remoteProvider=0, Allocator *allocator=0, const PointerType &pointer=PointerType()) | |
| Constructor. More... | |
| ~GenericSchemaDocument () | |
| Destructor. | |
| const SValue & | GetURI () const |
| const SchemaType & | GetRoot () const |
| Get the root schema. | |
Friends | |
| class | internal::Schema< GenericSchemaDocument > |
| template<typename , typename , typename > | |
| class | GenericSchemaValidator |
JSON schema document.
A JSON schema document is a compiled version of a JSON schema. It is basically a tree of internal::Schema.
| ValueT | Type of JSON value (e.g. Value ), which also determine the encoding. |
| Allocator | Allocator type for allocating memory of this document. |
|
inlineexplicit |
Constructor.
Compile a JSON document into schema document.
| document | A JSON document as source. |
| uri | The base URI of this schema document for purposes of violation reporting. |
| uriLength | Length of name, in code points. |
| remoteProvider | An optional remote schema document provider for resolving remote reference. Can be null. |
| allocator | An optional allocator instance for allocating memory. Can be null. |
| pointer | An optional JSON pointer to the start of the schema document |