Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MaximInterface
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:
-
ValueT Type of JSON value (e.g. Value), which also determine the encoding.Allocator Allocator 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:
-
document A JSON document as source. 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.
| GenericSchemaDocument | ( | GenericSchemaDocument< ValueT, Allocator > && | rhs ) |
Member Function Documentation
Generated on Tue Jul 12 2022 12:06:51 by
1.7.2