10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
JSONParser.h
1
#ifndef TENDUKE_JSON_JSONPARSER_H
2
#define TENDUKE_JSON_JSONPARSER_H
3
4
#include "./JSONElement.h"
5
6
#include <memory>
7
#include <string>
8
9
namespace
tenduke
{
namespace
json
{
10
14
class
JSONParser
15
{
16
public
:
17
virtual
~JSONParser
() =
default
;
18
23
virtual
std::unique_ptr<JSONElement>
from
(
24
const
char
* jsonAsString,
25
std::size_t length
26
)
const
= 0;
27
32
virtual
std::unique_ptr<JSONElement>
from
(
const
std::string &
string
)
const
= 0;
33
34
};
35
36
}}
37
38
#endif
// TENDUKE_JSON_JSONPARSER_H
tenduke::json::JSONParser
Parser for JSON documents.
Definition
JSONParser.h:15
tenduke::json::JSONParser::from
virtual std::unique_ptr< JSONElement > from(const char *jsonAsString, std::size_t length) const =0
Parses JSON from given string.
tenduke::json::JSONParser::from
virtual std::unique_ptr< JSONElement > from(const std::string &string) const =0
Parses JSON from given string.
tenduke::json
JSON support.
Definition
JSONArray.h:10
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
core
src
json
JSONParser.h
Generated by
1.17.0