OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::JsonDocument Class Reference

JSON document. More...

#include "JSON.h"

Inheritance diagram for ot::JsonDocument:

Public Member Functions

 JsonDocument ()
 Constructor Set the document as object.
 
 JsonDocument (rapidjson::Type _type)
 Constructor.
 
 JsonDocument (JsonDocument &&_other) noexcept
 Move constructor.
 
virtual ~JsonDocument ()
 
bool fromJson (const std::string &_json)
 
bool fromJson (const char *_fromJson)
 
const JsonDocumentconstRef (void) const
 
ConstJsonObject GetConstObject () const
 
std::string toJson (void) const
 

Detailed Description

JSON document.

Constructor & Destructor Documentation

◆ JsonDocument() [1/3]

ot::JsonDocument::JsonDocument ( )
inline

Constructor Set the document as object.

◆ JsonDocument() [2/3]

ot::JsonDocument::JsonDocument ( rapidjson::Type _type)
inline

Constructor.

Parameters
_typeThe type for the json document

◆ JsonDocument() [3/3]

ot::JsonDocument::JsonDocument ( JsonDocument && _other)
inlinenoexcept

Move constructor.

◆ ~JsonDocument()

virtual ot::JsonDocument::~JsonDocument ( )
inlinevirtual

Member Function Documentation

◆ constRef()

const JsonDocument & ot::JsonDocument::constRef ( void ) const
inline

◆ fromJson() [1/2]

bool ot::JsonDocument::fromJson ( const char * _fromJson)
inline

◆ fromJson() [2/2]

bool ot::JsonDocument::fromJson ( const std::string & _json)
inline

◆ GetConstObject()

ConstJsonObject ot::JsonDocument::GetConstObject ( ) const
inline

◆ toJson()

std::string ot::JsonDocument::toJson ( void ) const
inline

The documentation for this class was generated from the following file: