10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::json::JSONParser Class Referenceabstract

#include <JSONParser.h>

Detailed Description

Parser for JSON documents.

Inheritance diagram for tenduke::json::JSONParser:
tenduke::json::cjson::cJSONParser tenduke::test::mocks::JSONParserMock

Public Member Functions

virtual std::unique_ptr< JSONElementfrom (const char *jsonAsString, std::size_t length) const =0
 Parses JSON from given string.
 
virtual std::unique_ptr< JSONElementfrom (const std::string &string) const =0
 Parses JSON from given string.
 

Member Function Documentation

◆ from() [1/2]

virtual std::unique_ptr< JSONElement > tenduke::json::JSONParser::from ( const char *  jsonAsString,
std::size_t  length 
) const
pure virtual

Parses JSON from given string.

Exceptions
JSONParsingExceptionwhen the JSON parsing failed for various reasons.

Implemented in tenduke::json::cjson::cJSONParser.

◆ from() [2/2]

virtual std::unique_ptr< JSONElement > tenduke::json::JSONParser::from ( const std::string &  string) const
pure virtual

Parses JSON from given string.

Exceptions
JSONParsingExceptionwhen the JSON parsing failed for various reasons.

Implemented in tenduke::json::cjson::cJSONParser.


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