![]() |
JODA
0.13.1 (59b41972)
JSON On-Demand Analysis
|
#include <RapidJsonDocument.h>
Public Member Functions | |
| RapidJsonDocument (unsigned long id, std::unique_ptr< RJDocument > &&json, std::unique_ptr< const IOrigin > &&origin) | |
| RapidJsonDocument (std::unique_ptr< RJDocument > &&json, std::unique_ptr< const IOrigin > &&origin) | |
| ~RapidJsonDocument ()=default | |
| RapidJsonDocument (RapidJsonDocument &&doc) noexcept=default | |
| RapidJsonDocument & | operator= (RapidJsonDocument &&other) noexcept=default |
| RapidJsonDocument (const RapidJsonDocument &doc)=delete | |
| RapidJsonDocument & | operator= (const RapidJsonDocument &other)=delete |
| RapidJsonDocument () | |
| const std::unique_ptr< RJDocument > & | getJson () const |
| void | setJson (std::unique_ptr< RJDocument > &&json) |
| void | setOrigin (std::unique_ptr< const IOrigin > &&orig) |
| void | removeDoc () |
| unsigned long | getId () const |
| bool | isValid () const |
| bool | isView () const |
| void | setView (std::unique_ptr< ViewLayer > &&view) |
| const std::unique_ptr< ViewLayer > & | getView () const |
| RJValue const * | Get (const RJPointer &ptr) const |
| const std::unique_ptr< const IOrigin > & | getOrigin () const |
| template<typename Handler > | |
| bool | Accept (Handler &handler) const |
Static Public Member Functions | |
| static DOC_ID | getNewID () |
Protected Attributes | |
| unsigned long | id {} |
| std::unique_ptr< const IOrigin > | origin |
| std::unique_ptr< RJDocument > | json |
| std::unique_ptr< ViewLayer > | view |
| bool | isView_ = false |
The wrapper class of JSON documents, parsed into the internal rapidJSON format
| RapidJsonDocument::RapidJsonDocument | ( | unsigned long | id, |
| std::unique_ptr< RJDocument > && | json, | ||
| std::unique_ptr< const IOrigin > && | origin | ||
| ) |
Creates a new RapidJsonDocument
| id | The ID of the document |
| origin | The origin of the document |
| json | The actual JSON content |
| RapidJsonDocument::RapidJsonDocument | ( | std::unique_ptr< RJDocument > && | json, |
| std::unique_ptr< const IOrigin > && | origin | ||
| ) |
Creates a new RapidJsonDocument
| origin | The origin of the document |
| json | The actual JSON content |
|
default |
|
defaultnoexcept |
Move constructor
| doc | other document |
|
delete |
Copy constructor
| doc | The RapidJsonDocument to copy from |
|
default |
Creates an empty dummy RapidJsonDocument
|
inline |
| unsigned long RapidJsonDocument::getId | ( | ) | const |
Returns the DOC_ID of the document
| const std::unique_ptr< RJDocument > & RapidJsonDocument::getJson | ( | ) | const |
Returns the internal representation
|
static |
returns a unique document ID
| const std::unique_ptr< const IOrigin > & RapidJsonDocument::getOrigin | ( | ) | const |
| const std::unique_ptr< ViewLayer > & RapidJsonDocument::getView | ( | ) | const |
| bool RapidJsonDocument::isValid | ( | ) | const |
| bool RapidJsonDocument::isView | ( | ) | const |
|
delete |
|
defaultnoexcept |
| void RapidJsonDocument::removeDoc | ( | ) |
Deletes the internal json document
| void RapidJsonDocument::setJson | ( | std::unique_ptr< RJDocument > && | json | ) |
Sets the internal RJDocument
| json | The document to store |
| void RapidJsonDocument::setOrigin | ( | std::unique_ptr< const IOrigin > && | orig | ) |
Sets the Origin of the document
| orig | The new origin |
| void RapidJsonDocument::setView | ( | std::unique_ptr< ViewLayer > && | view | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |