10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
SimpleJSONElement.h
1
#ifndef TENDUKE_JSON_NJ_NJELEMENT_H
2
#define TENDUKE_JSON_NJ_NJELEMENT_H
3
4
#include "json/JSONElement.h"
5
6
#include "nlohmann/json.hpp"
7
8
namespace
tenduke
{
namespace
json
{
9
10
class
SimpleJSONElement :
public
virtual
::tenduke::json::JSONElement
11
{
12
public
:
13
explicit
SimpleJSONElement(
::tenduke::json::JSONElement::Type
type)
14
: type(type)
15
{
16
}
17
18
std::string
asJSON
()
const override
;
19
std::string
asString
()
const override
;
20
::tenduke::json::JSONElement::Type
getType
()
const override
;
21
22
private
:
23
::tenduke::json::JSONElement::Type
type;
24
};
25
26
}}
27
28
#endif
//TENDUKE_JSON_NJ_NJELEMENT_H
tenduke::json::JSONElement
Superclass of JSON elements.
Definition
JSONElement.h:12
tenduke::json::JSONElement::Type
Type
Type of the element.
Definition
JSONElement.h:17
tenduke::json::SimpleJSONElement::asJSON
std::string asJSON() const override
Serializes the element as JSON.
Definition
SimpleJSONElement.cpp:14
tenduke::json::SimpleJSONElement::getType
::tenduke::json::JSONElement::Type getType() const override
Returns type of this element.
Definition
SimpleJSONElement.cpp:8
tenduke::json::SimpleJSONElement::asString
std::string asString() const override
Gets the value of the element as a string.
Definition
SimpleJSONElement.cpp:26
tenduke::json
JSON support.
Definition
JSONArray.h:10
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
services
common
src
json
SimpleJSONElement.h
Generated by
1.17.0