10Duke Scale C++ Client
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
9namespace tenduke { namespace json {
10
15{
16public:
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
Parser for JSON documents.
Definition JSONParser.h:15
virtual std::unique_ptr< JSONElement > from(const char *jsonAsString, std::size_t length) const =0
Parses JSON from given string.
virtual std::unique_ptr< JSONElement > from(const std::string &string) const =0
Parses JSON from given string.
JSON support.
Definition JSONArray.h:10
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7